Claude Sonnet 5 vs GPT-6 Astra

Side-by-side pricing per provider, context window, benchmark scores and speed, all on one OpenAI-compatible API.

Metric
Claude Sonnet 5Anthropicanthropic/claude-sonnet-5
GPT-6 AstraOpenAIopenai/gpt-6-astra
Creator
Anthropic
OpenAI
Released
Jul 1, 2026
Sep 4, 2026
Context window
1M
1.05M (best)
Max output
128K
128K
Input / 1MLowest provider price
$2.00 (best)
$10.00
Output / 1MLowest provider price
$10.00 (best)
$50.00
Providers
2 (best)
1
IntelligenceArtificial Analysis index
38.2
50.9 (best)
CodingArtificial Analysis index
71.5
77.1 (best)
LatencyMedian time to first token
4.4s
—
ThroughputMedian tokens per second
<1 t/s
—
Accepts
Text, Image
Text, Image
Produces
Text
Text
Tool calling
Yes
Yes
Structured output
Yes
Yes
Reasoning
Yes
Yes

Claude Sonnet 5 vs GPT-6 Astra: summary

Claude Sonnet 5 and GPT-6 Astra are both available through FastRouter's OpenAI-compatible API, so switching between them is a change of model id, not a new integration.

Claude Sonnet 5, from Anthropic, has a 1,000,000-token context window, costs from $2.00/1M input and $10.00/1M output tokens across 2 providers and scores 38.2 on the Artificial Analysis Intelligence Index.

GPT-6 Astra, from OpenAI, has a 1,050,000-token context window, costs $10.00/1M input and $50.00/1M output tokens and scores 50.9 on the Artificial Analysis Intelligence Index.

Claude Sonnet 5 is the cheapest on input, 5× cheaper than the next model, GPT-6 Astra has the largest context window, GPT-6 Astra scores highest for intelligence and GPT-6 Astra leads on coding.

Switch with one line

client = OpenAI(base_url="https://api.fastrouter.ai/api/v1", api_key="<FASTROUTER_API_KEY>") client.chat.completions.create(model="anthropic/claude-sonnet-5", messages=[...]) # or client.chat.completions.create(model="openai/gpt-6-astra", messages=[...])
Full API docs

Frequently asked questions

More comparisons

Benchmark scores sourced from ArtificialAnalysis