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

Claude Sonnet 5

5% off
AnthropicModel IDclaude-sonnet-5

Summary

What is Claude Sonnet 5?

Claude Sonnet 5 is Anthropic's highly capable model combining speed, intelligence, and advanced agentic performance. It is designed for coding, complex reasoning, tool use, research, computer use, and long-running agentic workflows, with a 1M-token context window, up to 128K output tokens, adaptive thinking, vision, and extensive tool support.

Capabilities

VisionReasoningTool useFunction callingStructured outputsComputer useWeb search

Use cases

Advanced ReasoningCodingAgentsVisionTool UseAdaptive ThinkingComputer Use1M Context128K Output

Pricing

UsageRateMTok
Input tokens$2$1.9
Output tokens$10$9.5
Cache read tokens$0.2$0.19
Cache write tokens$2.5$2.38
Cache write tokens (1h)$4$3.8

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-5",
    "messages": [
      {
        "role": "user",
        "content": "your prompt"
      }
    ],
    "max_tokens": 7168,
    "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