🎁 Sign up, get $1. Join Discord, get $5!
Models
Playground
Activity
Docs
Resource
Console
C

Claude Sonnet 4.6

5% off
AnthropicModel IDclaude-sonnet-4-6

Summary

What is Claude Sonnet 4.6?

Claude Sonnet 4.6 is Anthropic's balanced model for advanced reasoning, coding, agentic workflows, research, vision, and tool-enabled applications. It features a 1M-token context window, up to 128K output tokens, adaptive thinking, and strong performance across complex knowledge and software development tasks.

Capabilities

VisionReasoningTool useFunction callingStructured outputs

Use cases

Advanced ReasoningCodingAgentsVisionTool UseAdaptive Thinking1M Context128K Output

Pricing

UsageRateMTok
Input tokens$3$2.85
Output tokens$15$14.25
Cache read tokens$0.3$0.28
Cache write tokens$3.75$3.56
Cache write tokens (1h)$6$5.7

Integration

Code Example

curl -X POST 'https://octopusx.ai/v1/messages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'anthropic-version: 2023-06-01' \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      {
        "role": "user",
        "content": "your prompt"
      }
    ],
    "max_tokens": 4096,
    "stream": false
  }'
# Result: content[].text (json)

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

Authorization: Bearer ${API_KEY}

Endpoint Path

POST

Supported Parameters

ParameterTypeRequiredDefaultDescription
textareaRequired—Prompt

Response extraction

content[].textjson