← All models

claude-sonnet-5

Anthropic · Text

claude-sonnet-5 is available on GetModel via an OpenAI-compatible API, billed pay-as-you-go. Get one key and call it from any OpenAI SDK.

Pricing

ItemPrice
Input$6.75 / 1M tokens
Output$6.75 / 1M tokens

Pricing by group

Group InputOutput
Claude Code low-cost (Kiro) $6.75$6.75
Default $11.25$11.25

How to call

curl https://getmodel.ai/v1/chat/completions \
  -H "Authorization: Bearer $GETMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-5","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Details

ProviderAnthropic
TypeText
Endpointsopenai / anthropic
Available groupsDefault / Claude Code low-cost (Kiro)

FAQ

How much does the claude-sonnet-5 API cost?

claude-sonnet-5 on GetModel costs $6.75 / 1M tokens (Input), $6.75 (Output), billed pay-as-you-go with no subscription.

How do I call claude-sonnet-5 via API?

Point any OpenAI-compatible client at https://getmodel.ai/v1 with your GetModel API key and set the model to "claude-sonnet-5".

Can I use claude-sonnet-5 together with other models?

Yes — one GetModel API key works for claude-sonnet-5 and 30+ other models. Just change the model field.

Related models