Anthropic: Claude Opus 5

claude-opus-5

Claude Opus 5 is Anthropic's flagship model for advanced coding, long-running agentic tasks, research, and complex knowledge work.

Modalities

Text + Image → Text

Input / output price

$6.50 / $32.50 per 1M

Context

1M · max output 128K

Capabilities

ReasoningVisionTool callingLong context

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$6.50
Output$32.50
Cached input$0.650

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.0455
Per day
$22.75
Per month (30 days)
$682.50

Claude Opus 5: input $6.5/M · output $32.5/M · cached input $0.65/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-opus-5", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to claude-opus-5.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Claude Opus 5 billed?
Input is $6.50 and output is $32.50 per million tokens; cached input is $0.650. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
1M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.