1. 7API
  2. Models
  3. Claude
  4. Claude Sonnet 5

Claude Sonnet 5 API

Model ID: claude-sonnet-5 · Developer: Anthropic · Available on 7API: yes, as of 2026-11-20

Call Claude Sonnet 5 with any OpenAI- or Anthropic-compatible client. Use base URL https://7api.st/v1 (OpenAI) or https://7api.st (Anthropic) and send "model": "claude-sonnet-5".

Specifications

Model IDclaude-sonnet-5
Context window1,000,000 tokens
Max output64,000 tokens
InputText
Tool callingYes
StreamingYes
Reasoning effortlow, medium, high, xhigh, max
API formatsChat Completions, Responses, Anthropic Messages

Pricing

USD per 1M tokens
Input$0.50
Output$0.50
Cached input$0.05

For example, an agent turn with 150,000 cached input tokens, 2,000 new input tokens and 800 output tokens costs about $0.0089 on Claude Sonnet 5. Billing is pay per token from a prepaid balance. See Pricing and billing.

Example

Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(base_url="https://7api.st/v1", api_key="YOUR_7API_KEY")
r = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Write a haiku about caching."}],
)
print(r.choices[0].message.content)

In Claude Code: /model claude-sonnet-5. Setup guides: Claude Code, OpenCode, Codex, Cursor.