Speed
Output tokens / second
Custom pricing for production workloads
Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to anthropic/claude-sonnet-5.
Claude Sonnet 5 API combines strong reasoning, adaptive thinking, and high-resolution vision for complex coding, agent loops, and long-document analysis.
anthropic/claude-sonnet-5https://api.aimlapi.com/v1Claude Sonnet 5 is Anthropic's high-performance language model for coding, agentic workflows, and complex reasoning. It delivers performance approaching Claude Opus quality at Sonnet pricing, with a 1M token context window, adaptive thinking, and high-resolution vision built in.
The model is available via AI/ML API using the model ID anthropic/claude-sonnet-5 and ships under Anthropic's standard commercial terms.
[Performance Benchmarks embed]
Coding and code review
Claude Sonnet 5 is optimized for writing, debugging, and reviewing code across all major languages. The 1M context window means entire codebases can be loaded for refactoring or cross-file analysis in a single prompt.
Claude Sonnet 5 is documented as suited for coding workflows, including initial planning, implementation, debugging, maintenance, and large-scale refactors across complex multi-file codebases.
It is also suited for autonomous AI workflows and production-grade agents, with strong instruction following, tool selection, error correction, and sustained multi-step task handling for customer-facing agents and internal automation.
Another documented use case is browser-based computer use, where it can handle tasks such as competitive analysis, procurement workflows, and customer onboarding.
It is further suited to professional work involving finance, research, content, and business operations, including analyzing financial data, synthesizing information from multiple sources, and generating or editing documents and spreadsheets.
See how Claude Sonnet 5 compares in generation speed. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 8 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $2 | 1M tokens |
| Output | $10 | 1M tokens |
| Cached input | $0.2 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2 | $10 | |
| $0.1 | $0.5 | |
| $2 | $10 | |
| $4 | $20 | |
| $10 | $50 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "anthropic/claude-sonnet-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "anthropic/claude-sonnet-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "anthropic/claude-sonnet-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Claude Sonnet 5 costs $2 input and $10 output per 1M tokens on AI/ML API, billed as you go with no subscription.
GPT-Image-1.5 is 4x Faster than the previous models – DALL-E 3 and GPT-Image-1. Detailed high resolution images now take near 30 seconds to be generated.
TTS-1-HD produces higher-fidelity audio with more natural prosody and tone, while TTS-1 is optimized for speed and lower cost.
GPT-Image-1.5 was released on December 16, 2025. OpenAI made the model available globally to all ChatGPT users and through the API on this date, marking a significant upgrade to their image generation capabilities.
It returns audio in mp3, opus, aac, flac, wav, pcm formats.
1. Register on our platform
2. Verify your account
3. Create an API key
4. Copy the code from this page
5. Paste it in your project
Use anthropic/claude-sonnet-5 as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.
Claude Sonnet 5 accepts up to 1,000,000 tokens of context and returns up to 128,000 output tokens.