# claude-opus-5 — API, Pricing & Context Window | Vivgrid

> Source: https://vivgrid.com/docs/models/claude-opus-5

Run Anthropic's claude-opus-5 on Vivgrid: the flagship Opus coding model with a 1M-token context window, 128K max output, and global acceleration.

`claude-opus-5` is Anthropic's flagship model for agentic coding, complex reasoning, and long-running tool workflows. Its **1M-token context window** and **128K-token max output** make it a strong fit for whole-repository analysis, substantial code generation, and multi-step agents.

Vivgrid serves `claude-opus-5` on the native **Messages API** (`/messages`) and on **Chat Completions** (`/chat/completions`), with geo-distributed acceleration across **AMER, EMEA, and APAC**. Teams can use one Vivgrid API key and route requests to nearby infrastructure without changing their Claude-compatible clients.

## Specifications

| Field | Value |
| --- | --- |
| Provider | Anthropic |
| Model ID | `claude-opus-5` |
| Best for | Coding |
| Available on | Chat Completions, Vibe coding |
| Context window | 1,000,000 tokens |
| Max output | 128,000 tokens |
| Modalities | Text, Image |
| Tool / function calling | Yes |
| Knowledge cutoff | 2026-06 |
| Acceleration | Geo-distributed — AMER, EMEA, APAC |

## Pricing

Pricing in USD per 1M tokens.

| Input | Cached input | Output |
| --- | --- | --- |
| $5.00 | $0.50 | $25.00 |

### What one request costs

The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.

| Request | Cost |
| --- | --- |
| Cold prompt, nothing cached | $0.1500 |
| Warm prompt, 90% of the input served from cache | $0.0690 |


## API surfaces

The Vivgrid Console catalogs `claude-opus-5` on 2 surfaces, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

| Surface | Primary endpoint | Use it for |
| --- | --- | --- |
| Chat Completions | `/chat/completions` | Agent projects, where Vivgrid injects the model, system prompt and tools server-side, and Model API calls that name the model per request. |
| Vibe coding | `/messages` | Coding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop. |

## Quick start

Get an API key from the Vivgrid Console (https://console.vivgrid.com), then call `claude-opus-5` directly.

### `/chat/completions`

```bash
curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5",
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'
```

### `/messages`

```bash
curl https://api.vivgrid.com/v1/messages \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'
```

## Choosing within the Claude 5 family

Prices are USD per 1M tokens at the base rate.

| Model | Context | Max output | Input | Output |
| --- | --- | --- | --- | --- |
| [`claude-fable-5-1`](/docs/models/claude-fable-5-1) | 1,000,000 | 128,000 | $10.00 | $50.00 |
| [`claude-opus-5-5`](/docs/models/claude-opus-5-5) | 1,000,000 | 128,000 | $4.00 | $20.00 |
| `claude-opus-5` (this page) | 1,000,000 | 128,000 | $5.00 | $25.00 |
| [`claude-sonnet-5-5`](/docs/models/claude-sonnet-5-5) | 1,000,000 | 128,000 | $2.00 | $10.00 |
| [`claude-sonnet-5`](/docs/models/claude-sonnet-5) | 1,000,000 | 128,000 | $2.00 | $10.00 |
| [`claude-haiku-5-5`](/docs/models/claude-haiku-5-5) | 1,000,000 | 128,000 | $0.10 | $0.50 |


## Ideal use cases

- Frontier coding agents and autonomous software development
- Whole-codebase analysis, migration, and large refactoring projects
- Complex reasoning and planning across long agent sessions
- Reliable tool-calling workflows with large inputs and outputs

## Related models

- [claude-opus-5-5](/docs/models/claude-opus-5-5) — the newer Opus release at a lower price
- [claude-fable-5-1](/docs/models/claude-fable-5-1) — Anthropic's most capable model
- [claude-sonnet-5-5](/docs/models/claude-sonnet-5-5) — a faster, lower-cost Claude model
