# Claude Opus 4.7 API — pricing & specs

Claude Opus 4.7, made by Anthropic, accepts text and image input and returns text. On KeepRouter, Claude Opus 4.7 costs $5.00 per 1M input tokens and $25.00 per 1M output tokens, billed pay-as-you-go with no monthly fee; actual request cost depends on measured usage. Call it through a compatible KeepRouter endpoint supported by its active route, with the model id `claude-opus-4-7`.

| Spec | Value |
|---|---|
| Maker | Anthropic |
| Modality | Text, vision |
| Input price | $5.00 per 1M tokens |
| Output price | $25.00 per 1M tokens |
| Cached input | $0.5000 per 1M tokens |
| Capabilities | Vision (image input), Chat completions, Streaming where supported, Tool calling where supported |
| Endpoint | POST /v1/chat/completions or POST /v1/messages (compatible chat routes) |
| Model id | `claude-opus-4-7` |

## Call it via the compatible chat endpoint

Use POST /v1/chat/completions or, on compatible chat routes, POST /v1/messages; streaming and tool support depend on the model's active route.

### cURL

```bash
curl https://keeprouter.com/v1/chat/completions \
  -H "Authorization: Bearer $KEEPROUTER_KEY" -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-4-7","messages":[{"role":"user","content":"Hello"}]}'
```

### Python

```python
from openai import OpenAI
client = OpenAI(base_url="https://keeprouter.com/v1", api_key="$KEEPROUTER_KEY")
r = client.chat.completions.create(model="claude-opus-4-7", messages=[{"role":"user","content":"Hello"}])
```

### JavaScript

```js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://keeprouter.com/v1", apiKey: process.env.KEEPROUTER_KEY });
const r = await client.chat.completions.create({ model: "claude-opus-4-7", messages: [{ role: "user", content: "Hello" }] });
```

## Source and verification boundary

[Official Anthropic website](https://www.anthropic.com/). KeepRouter's live catalog is authoritative for the customer price and enabled endpoint shown here; the maker remains authoritative for upstream model capabilities and limits.

## Guides

- [Call Claude Opus 4.7 with the OpenAI SDK](https://keeprouter.com/use-cases/openai-sdk.md)
- [Use Claude Opus 4.7 in Claude Code](https://keeprouter.com/use-cases/claude-code.md)

## Related models

- [Claude Opus 4.8](https://keeprouter.com/models/claude-opus-4-8.md) by Anthropic — $5.00 per 1M input tokens and $25.00 per 1M output tokens
- [Claude Opus 4.6](https://keeprouter.com/models/claude-opus-4-6.md) by Anthropic — $5.00 per 1M input tokens and $25.00 per 1M output tokens
- [Claude Sonnet 4.6](https://keeprouter.com/models/claude-sonnet-4-6.md) by Anthropic — $3.00 per 1M input tokens and $15.00 per 1M output tokens
- [Claude Opus 4.5](https://keeprouter.com/models/claude-opus-4-5.md) by Anthropic — $5.00 per 1M input tokens and $25.00 per 1M output tokens
- [Claude Sonnet 4.5](https://keeprouter.com/models/claude-sonnet-4.5.md) by Anthropic — $3.00 per 1M input tokens and $15.00 per 1M output tokens
- [Claude Haiku 4.5](https://keeprouter.com/models/claude-haiku-4-5.md) by Anthropic — $1.00 per 1M input tokens and $5.00 per 1M output tokens

## More

- [All models & pricing](https://keeprouter.com/models.md)
- [Quickstart](https://keeprouter.com/docs/quickstart.md)
- [Get an API key](https://keeprouter.com/login?returnTo=%2Fconsole%2Fkeys%3Fmodel%3Dclaude-opus-4-7)

_Catalog facts and prices last changed 2026-08-01._
