Balanced Sonnet 4 model offering strong reasoning and coding abilities at an efficient price point. Ideal for everyday production workloads that need a good mix of speed and intelligence.
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 6,000 | $6.00 |
| Output Tokens | 30,000 | $30.00 |
| Cached Tokens | 600 | $0.60 |
* 1 credit β $0.001 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 2000,
"system": "You are a helpful assistant that provides clear and concise answers.",
"messages": [
{
"role": "user",
"content": "Explain the key differences between microservices and monolithic architecture, with pros and cons of each."
}
]
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects with role and content |
model | string | Yes | claude-sonnet-4 | Model identifier |
temperature | float | No | 1.0 | Sampling temperature (0-1) |
max_tokens | integer | Yes | - | Maximum tokens in response (required, up to 16384) |
stream | boolean | No | false | Enable streaming responses |
system | string | No | - | System prompt for setting behavior |
top_p | float | No | 0.999 | Nucleus sampling parameter (0-1) |
Balanced conversation with Claude Sonnet 4
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 2000,
"system": "You are a helpful assistant that provides clear and concise answers.",
"messages": [
{
"role": "user",
"content": "Explain the key differences between microservices and monolithic architecture, with pros and cons of each."
}
]
}'Review and improve code
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Review this Python function for bugs, performance issues, and suggest improvements:\n\ndef process_data(items):\n result = []\n for item in items:\n if item not in result:\n result.append(item)\n return sorted(result)"
}
],
"temperature": 0.3
}'POST /llm/anthropic/v1/messages