Enhanced Claude 3.7 Sonnet with improved reasoning and coding capabilities. A strong mid-tier model offering reliable performance across a wide range of tasks.
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-3-7-sonnet",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Write a Python async function that fetches multiple URLs concurrently using aiohttp and returns results as a dictionary mapping URL to response status and body."
}
],
"temperature": 0.3
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects with role and content |
model | string | Yes | claude-3-7-sonnet | 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) |
Generate code with Claude 3.7 Sonnet
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-3-7-sonnet",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Write a Python async function that fetches multiple URLs concurrently using aiohttp and returns results as a dictionary mapping URL to response status and body."
}
],
"temperature": 0.3
}'Analyze data with structured output
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-3-7-sonnet",
"max_tokens": 2000,
"system": "You are a data analyst. Provide insights in a structured format.",
"messages": [
{
"role": "user",
"content": "Analyze the following sales data and identify trends, anomalies, and actionable recommendations: [sales data]"
}
]
}'POST /llm/anthropic/v1/messages