Models / claude-3-5-sonnet-20240620
claude-3-5-sonnet-20240620 API on RelayRouter
claude-3-5-sonnet-20240620 is a text generation (chat) model from Anthropic. On RelayRouter it is served by 3 public groups, billed per token from a prepaid balance with no platform fee, through the same base URL as every other model: https://relayrouter.io.
Facts
| Model id | claude-3-5-sonnet-20240620 |
|---|---|
| Provider | Anthropic |
| Modality | text generation (chat) |
| Protocols | Anthropic Messages API (/v1/messages) |
| Billing | Per token, prepaid balance, failed requests not billed, no platform fee |
| Payment | Credit or debit card via Stripe |
Groups and rates
| Group | Protocol | Rate |
|---|---|---|
| Claude AWS | Anthropic Messages API | settlement rate ¥5.4 per $1 of standard usage, about 21% below the ¥6.8/$ market reference |
| Claude Hermes | Anthropic Messages API | settlement rate ¥5.4 per $1 of standard usage, about 21% below the ¥6.8/$ market reference |
| Claude Official API | Anthropic Messages API | settlement rate ¥5.5 per $1 of standard usage, about 19% below the ¥6.8/$ market reference |
Rates are indicative and settle from your prepaid balance; the rate shown in the console at request time is authoritative. Market reference ¥6.8 per $1. Full table on the models page and pricing.
How to call it
Create a key in the console for a group that lists claude-3-5-sonnet-20240620, then call it with that group's native protocol. The quick start covers all three protocols.
import anthropic
client = anthropic.Anthropic(
api_key="your-relayrouter-key",
base_url="https://relayrouter.io",
)
msg = client.messages.create(
model="claude-3-5-sonnet-20240620",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(msg.content[0].text)Questions
How much does claude-3-5-sonnet-20240620 cost on RelayRouter?
The cheapest public group serving claude-3-5-sonnet-20240620 is "Claude AWS": settlement rate ¥5.4 per $1 of standard usage, about 21% below the ¥6.8/$ market reference. Usage is deducted from your prepaid balance and the exact rate at request time is shown in the console.
Which API protocol do I use for claude-3-5-sonnet-20240620?
Use the native protocol of the group you pick: Anthropic Messages API at /v1/messages. The base URL is always https://relayrouter.io and the key goes in the usual header for that SDK.
Are failed requests billed?
No. Only successfully completed calls are billed, and there is no platform fee on top of token usage.