Anthropic: Claude 4.1 Opus
claude-opus-4.1
Claude 4.1 Opus costs $19.50 per million input tokens and $97.50 per million output tokens, supports 200K context, and is available through the OpenAI-compatible API.
Claude Opus 4.1 is a powerful model from Anthropic that delivers sustained performance for complex coding and other long-running tasks that require thousands of steps, expanding the capabilities of AI agents.
Modalities
Text + Image → Text
Input / output price
$19.50 / $97.50 per 1M
Context
200K · max output 32K
Capabilities
Pricing
Billed per token actually used and deducted from your credits.
| Item | USD per 1M tokens |
|---|---|
| Input | $19.50 |
| Output | $97.50 |
| Cached input | $1.95 |
Calculator
Drag the sliders to estimate what this model will cost.
- Per request
- $0.1365
- Per day
- $68.25
- Per month (30 days)
- $2047.50
Claude 4.1 Opus: input $19.5/M · output $97.5/M · cached input $1.95/M
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "claude-opus-4.1", "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-4.1.
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4.1",
"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_penaltyseedFAQ
- How is Claude 4.1 Opus billed?
- Input is $19.50 and output is $97.50 per million tokens; cached input is $1.95. The charge for every request is listed in Usage Logs in the console.
- How long is the context window?
- 200K 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.