← All models

claude-sonnet-5

· Text

claude-sonnet-5

Pricing

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

How to call

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

Provider
TypeText
Endpointsopenai / anthropic