---
title: "Claude Opus 4.8 API pricing and how to call it | MYUSAPI"
description: "claude-opus-4-8 at $1 input and $5 output per 1M tokens (list price $5 / $25). 1M context, with requests you can copy and run."
url: https://myusapi.com/en/models/claude-opus-4-8
---

# Claude Opus 4.8 API: pricing and how to call it

Claude Opus 4.8 has the model ID claude-opus-4-8. On MYUSAPI it costs $1.00 per 1M input tokens and $5.00 per 1M output tokens, prepaid and charged by usage. The model is never swapped or downgraded, and you are billed by the usage the upstream reports.

## Claude Opus 4.8 API pricing

| Item | Per 1M tokens |
| --- | --- |
| Input | Official $5.00, our price $1.00 |
| Output | Official $25.00, our price $5.00 |
| Cache read | Official $0.50, our price $0.05 |
| Cache write (5 minutes) | $1.25 |
| Cache write (1 hour) | $2.00 |

USD. The struck figure is Anthropic’s official standard list price; bold is ours, with input and output at 20% of list. [Source of the list price](https://platform.claude.com/docs/en/models/opus-4-8/overview)

Example: a job that uses 1M input tokens and 200K output tokens costs $2.00 at our rates and $10.00 at list price.

Official rates: Official standard prices checked on 2026-10-21.

Our independently set rates per million tokens: input / output $1 / $5; cache read / 5-minute write / 1-hour write $0.05 / $1.25 / $2. Web search (Messages protocol): official $10 per 1,000; ours $0.005 per search; failed searches are free; results count as input tokens. Resale keys apply their display multiplier. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal and none is served as low, which can use more thinking tokens (Chat Completions, Responses).

## Specifications

- Model ID: claude-opus-4-8
- Provider: Anthropic
- Context window: 1M tokens
- Max output: 128K tokens
- Endpoints: Anthropic Messages, Chat Completions, Responses
- Capabilities: Thinking, Tools, Vision

An active legacy Opus model for long-context coding and knowledge work.

## How to call the Claude Opus 4.8 API

Sign up, add credit and put your key in the MYUSAPI_API_KEY environment variable.

[Sign up and get an API key](https://myusapi.com/en/signup)

Tested 2026-11-12: the cURL requests on this page answered for claude-opus-4-8. The Python samples were not run.

### Anthropic Messages (cURL)

The address is https://myusapi.com/v1/messages. Add "stream": true to the body to stream.

```
curl https://myusapi.com/v1/messages \
  -H "x-api-key: $MYUSAPI_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-4-8","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
```

### Anthropic SDK (Python)

Set base_url to https://myusapi.com, with no /v1.

```
import os
import anthropic

client = anthropic.Anthropic(
    base_url="https://myusapi.com",
    api_key=os.environ["MYUSAPI_API_KEY"],
)

message = client.messages.create(
    model="claude-opus-4-8",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)
```

### OpenAI SDK (Python, Chat Completions)

A project already on the OpenAI SDK changes only base_url (https://myusapi.com/v1) and the model ID.

```
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://myusapi.com/v1",
    api_key=os.environ["MYUSAPI_API_KEY"],
)

reply = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)
```

### Chat Completions (cURL)

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

Whether your key can call it now is what GET https://myusapi.com/v1/models returns.

## Use Claude Opus 4.8 in Claude Code

Set ANTHROPIC_MODEL to claude-opus-4-8; the Claude Code guide has the full steps.

[Set up Claude Code with MYUSAPI: base URL and API key](https://myusapi.com/en/docs/claude-code)

## Other Anthropic models

- [Claude Opus 5.5 API](https://myusapi.com/en/models/claude-opus-5-5): $1.00 input, $5.00 output per 1M tokens
- [Claude Fable 5.2 API](https://myusapi.com/en/models/claude-fable-5-2): $2.64 input, $13.20 output per 1M tokens
- [Claude Fable 5.1 API](https://myusapi.com/en/models/claude-fable-5-1): $3.30 input, $16.50 output per 1M tokens
- [Claude Sonnet 5.5 API](https://myusapi.com/en/models/claude-sonnet-5-5): $0.50 input, $2.50 output per 1M tokens
- [Claude Haiku 5.5 API](https://myusapi.com/en/models/claude-haiku-5-5): $0.025 input, $0.125 output per 1M tokens

[All models and prices](https://myusapi.com/en/models)
