Skip to content
Anthropicclaude-opus-4-8

Claude Opus 4.8

A proven pick for hard, long-running work.

Opus 4.8 handles tough coding, reasoning, and agentic tasks, and stays a steady choice for workloads already tuned to it.

  • Complex coding
  • Agents
  • Deep reasoning

Model details

Context window
1M tokens
Max output
128K tokens
Input
Text, images
Output
Text
Capabilities
Reasoning, Vision, Tool calling, Streaming
Interfaces
OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses

Pricing

Per 1M tokens. The Inferray price is what you are charged — no gateway fee is added on top of it.

Claude Opus 4.8 pricing: the provider's list price and the Inferray price for each.
MetricList priceYou pay
Input$5$3.75
Cached input$0.50$0.38
Output$25$18.75

Why teams pick it

  • Strong coding and multi-step reasoning
  • Handles long, tool-heavy agent runs without losing the thread
  • 1M-token context for whole-repo and long-document work

Call Claude Opus 4.8

Claude Opus 4.8 answers on any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.

/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.inferray.com/v1/chat/completions \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "messages": [{"role": "user", "content": "ship it"}]
  }'
/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.inferray.com/v1/messages \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "ship it"}]
  }'
/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.inferray.com/v1/responses \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "input": "ship it"
  }'

More from Anthropic