> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic

> Anthropic builds the Claude model family (Claude Fable, Claude Opus, Claude Sonnet, Claude Haiku) with strong emphasis on safety and nuanced reasoning.

Anthropic offers 16 models through Lava's AI Gateway, supporting Chat Completions (Native). Authentication uses x-api-key with default anthropic-version header. See the [Anthropic API docs](https://docs.anthropic.com/en/api) for provider-specific parameters.

> [!NOTE]
>
> Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.anthropic.com%2Fv1%2Fmessages', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'claude-sonnet-5-5',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions (Native)

**Target URL:** `https://api.anthropic.com/v1/messages`

| | |
| - | - |
| **Content Type** | `application/json` |
| **Streaming** | Yes (set `stream: true` in request body) |

| Model | Input / 1M tokens | Output / 1M tokens |
| - | - | - |
| claude-fable-5-1 | \$10.00 | \$50.00 |
| claude-fable-5 | \$10.00 | \$50.00 |
| claude-fable-5-2 | \$8.00 | \$40.00 |
| claude-opus-5 | \$5.00 | \$25.00 |
| claude-opus-4-8 | \$5.00 | \$25.00 |
| claude-opus-4-7 | \$5.00 | \$25.00 |
| claude-opus-4-6 | \$5.00 | \$25.00 |
| claude-opus-4-5 | \$5.00 | \$25.00 |
| claude-opus-4-5-20251101 | \$5.00 | \$25.00 |
| claude-opus-5-5 | \$4.00 | \$20.00 |
| claude-sonnet-4-6 | \$3.00 | \$15.00 |
| claude-sonnet-5-5 | \$2.00 | \$10.00 |
| claude-sonnet-5 | \$2.00 | \$10.00 |
| claude-haiku-4-5 | \$1.00 | \$5.00 |
| claude-haiku-4-5-20251001 | \$1.00 | \$5.00 |
| claude-haiku-5-5 | \$0.10 | \$0.50 |

## Next Steps

> [card] [All Providers](https://lava.so/docs/gateway/supported-providers.md)
>
> Browse all supported AI providers

> [card] [Forward Proxy](https://lava.so/docs/gateway/forward-proxy.md)
>
> Learn how to construct proxy URLs and authenticate requests


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.