# Claude Opus 4

> Claude Opus 4 is Anthropic's first-generation Claude 4 Opus model, optimized for complex reasoning, advanced coding, and deep analysis tasks.

**ID**: `anthropic/claude-opus-4`  
**Creator**: Anthropic  
**Category**: text  
**Context**: 200K tokens  
**Pricing**: $15.00 / $75.00 per 1M · billed by your provider (BYOK)  
**Released**: 2025-05-22  
**Web page**: https://anyrouter.dev/model/anthropic/claude-opus-4

**Input modalities**: text  
**Output modalities**: text  

**Capabilities**: chat, streaming, function-calling, coding

**Aliases**: `claude-opus-4`, `claude-opus-4-0`, `anthropic/claude-opus-4-0`, `claude-opus-4-20250514`, `anthropic/claude-opus-4-20250514`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-opus-4",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| cline-byok | $15.00/M (list) | $75.00/M (list) |
| vercel-byok | $15.00/M (list) | $75.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.
