Models & pricingClaude 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

ItemPer 1M tokens
InputOfficial$5.00, our price$1.00
OutputOfficial$25.00, our price$5.00
Cache readOfficial$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

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 IDclaude-opus-4-8
ProviderAnthropic
Context window1M tokens
Max output128K tokens
EndpointsAnthropic Messages, Chat Completions, Responses
CapabilitiesThinking, 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

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
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.

Python
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.

Python
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
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

Other Anthropic models

All models and prices