Skip to content
Anthropic logo

Claude Sonnet 4 6

Text Generation • Anthropic

  • AI Gateway
  • Text Generation

Claude Sonnet 4.6 is Anthropic's balanced model offering strong coding, reasoning, and agentic capabilities with improved instruction following.

Description adapted from Cloudflare Docs, licensed CC BY 4.0.

Model Info
Model IDclaude-sonnet-4-6
AuthorAnthropic
TaskText Generation
EndpointPOST /v1/chat/completions

Usage

Call the model through the gateway's chat completions endpoint — see Unified API (OpenAI compat) for the full guide, and the API reference for every parameter.

curl -X POST "$TRUEMEMORY_API_URL/v1/chat/completions" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
Navigation

Type to search…

↑↓ navigate↵ selectEsc close