Anthropic: Claude Sonnet 4.5 (batch)
anthropic/claude-sonnet-4.5:batchClaude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with...
- Modalities
- text+image+file->text
- In / out price
- $1.5 / $7.5per 1M
- Context
- 1M
- Released
- Sep 29, 2025
- Knowledge cutoff
- 2025-01-31
Providers
Every request enters through InfAPI. One key calls every model in the catalog. Upstream groups, ratios, and tiers are not shown.
| Endpoint | Input | Output | Context | Status |
|---|---|---|---|---|
| InfAPI | $1.5 | $7.5 | 1M | Available |
- Input
- Text, Image, File
- Output
- Text
- Tokenizer
- Claude
- Max output
- 64,000
- Endpoint
- Chat
Pricing
Listed price for this model on this gateway. Token prices are per 1M tokens.
| Item | Price | Unit |
|---|---|---|
| Inputprompt | $1.5 | per 1M tokens |
| Outputcompletion | $7.5 | per 1M tokens |
| Web searchweb_search | $0.01 | per search |
| Cache readinput_cache_read | $0.15 | per 1M tokens |
| Cache writeinput_cache_write | $1.88 | per 1M tokens |
| Cache write (1h)input_cache_write_1h | $3 | per 1M tokens |
Long-context tiers
After 200,000 input tokens
| Item | Price | Unit |
|---|---|---|
| Inputprompt | $3 | per 1M tokens |
| Outputcompletion | $11.25 | per 1M tokens |
| Cache readinput_cache_read | $0.3 | per 1M tokens |
| Cache writeinput_cache_write | $3.75 | per 1M tokens |
| Cache write (1h)input_cache_write_1h | $6 | per 1M tokens |
API
API
The gateway speaks the OpenAI Chat Completions API. Point any compatible SDK at https://infapi.cc/v1 and send the model slug below.
Get your API key
Create a key on the keys page and set it as an environment variable: Keys
export INFAPI_API_KEY=sk-...Make your first request
Use anthropic/claude-sonnet-4.5:batch
import requests
response = requests.post(
"https://infapi.cc/v1/chat/completions",
headers={
"Authorization": "Bearer $INFAPI_API_KEY",
"Content-Type": "application/json",
},
json={
"model": "anthropic/claude-sonnet-4.5:batch",
"messages": [
{
"role": "user",
"content": "Introduce yourself in three sentences."
}
],
"temperature": 1,
"max_tokens": 512,
"top_p": 1
},
)
response.raise_for_status()
print(response.json()["choices"][0]["message"]["content"])Endpoint
POST https://infapi.cc/v1/chat/completions
Authorization: Bearer $INFAPI_API_KEY
Using third-party SDKs
Point the OpenAI SDK at https://infapi.cc/v1 with $INFAPI_API_KEY. The HTTP samples above are the request shape this gateway accepts.
from openai import OpenAI
client = OpenAI(
base_url="https://infapi.cc/v1",
api_key="$INFAPI_API_KEY",
)
response = client.chat.completions.create(
model="anthropic/claude-sonnet-4.5:batch",
messages=[{"role": "user", "content": "Introduce yourself in three sentences."}],
temperature=1,
max_tokens=512,
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://infapi.cc/v1",
apiKey: "$INFAPI_API_KEY",
});
const response = await client.chat.completions.create({
"model": "anthropic/claude-sonnet-4.5:batch",
"messages": [
{
"role": "user",
"content": "Introduce yourself in three sentences."
}
],
"temperature": 1
});
console.log(response.choices[0]?.message?.content);Supported parameters
include_reasoningInclude reasoning
Include a reasoning summary in the response.
max_tokensMax tokens
Upper bound on generated tokens. Output stops at the limit.
reasoningReasoning
Enable or configure reasoning. The fields differ by model.
response_formatResponse format
For example json_object or json_schema, to constrain the shape.
stopStop
Stop when these strings are produced. A string or an array of strings.
structured_outputsStructured outputs
Generate a parseable structure that follows a JSON Schema.
temperatureTemperature
Sampling temperature. Lower is steadier, higher is more varied. Often 0 to 2.Default 1
tool_choiceTool choice
Whether to call a tool: auto, none, or a named function.
toolsTools
Function definitions the model may call via tool_calls.
top_kTop-K
Sample only from the K most likely tokens.
top_pTop-p
Sample only from tokens whose cumulative probability reaches top_p.Default 1
FAQ
What is this model?
Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-ar…
How much does it cost?
$1.5 / $7.5
What inputs and outputs does it support?
text+image+file->text
When was it released?
Sep 29, 2025