claude-sonnet-5-5
Claude Sonnet 5.5 (Anthropic): 1M-token context, 128K output, vision, tools, and adaptive thinking (set its depth with reasoning_effort low|medium|high|max).
Not accepted by the vendor on this model: temperature, top_p, a forced tool_choice (required or a named tool; use auto), and response_format with a JSON schema.
thinking takes only {"type": "adaptive"}.
| Slug | claude-sonnet-5-5 |
| Kind | chat |
| Vendor | anthropic |
| Endpoint | POST /v1/chat/completions |
View pricing and billing conditions
Example request
curl https://api.sociaro.com/v1/chat/completions \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"messages": [{"role": "user", "content": "hello"}]
}'# Requires Python 3 and requests (pip install requests).
import os
import requests
payload = {'model': 'claude-sonnet-5-5',
'messages': [{'role': 'user', 'content': 'hello'}]}
response = requests.post(
'https://api.sociaro.com/v1/chat/completions',
headers={
'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
'Content-Type': 'application/json',
},
json=payload,
timeout=120,
)
response.raise_for_status()
print(response.text)// Run as an .mjs file with Node.js 22 or later.
const payload = {
"model": "claude-sonnet-5-5",
"messages": [
{
"role": "user",
"content": "hello"
}
]
};
const response = await fetch("https://api.sociaro.com/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());Parameters
messagesmax_tokensmax_completion_tokensstreamstream_optionsstoptoolstool_choiceparallel_tool_callsuserthinkingreasoning_effortcache_controlcontext_managementweb_search_options
Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| per 1M input tokens | $2.40 |
| per 1M output tokens | $12.00 |
| per 1M cached input tokens | $0.12 |
| per 1M cache-write tokens | $3.00 |
| per 1K web searches | $12.00 |
View this model in the pricing catalogue. Your billing logs show the actual charge for each request.