Claude Sonnet 5 vs GPT-6 Astra

A side-by-side comparison of Claude Sonnet 5 and GPT-6 Astra: input/output pricing, capabilities and available endpoints, served live from 聚合 AI 中转站. Both are reachable with the same API key.

Pricing comparison

ItemClaude Sonnet 5GPT-6 Astra
Input (per 1M tokens)$1.8$6.5
Output (per 1M tokens)$9$32.5
Cache read explicit (per 1M tokens)$0.18$0.65
Cache write 5m (per 1M tokens)$2.25$8.125

Specifications

ItemClaude Sonnet 5GPT-6 Astra
Context window1,000,000922,000
Max output128,000

Capability comparison

ItemClaude Sonnet 5GPT-6 Astra
function_callingYesYes
prompt_cachingYesYes
visionYesYes

Which should you pick

Which is cheaper, Claude Sonnet 5 or GPT-6 Astra?

On input, Claude Sonnet 5 is cheaper ($1.8 vs $6.5 per 1M tokens). On output, Claude Sonnet 5 is cheaper ($9 vs $32.5 per 1M tokens). All prices are per million tokens in USD.

Which has the larger context window, Claude Sonnet 5 or GPT-6 Astra?

Claude Sonnet 5 does — Claude Sonnet 5 accepts 1,000,000 input tokens and GPT-6 Astra accepts 922,000.

What can Claude Sonnet 5 do that GPT-6 Astra cannot?

both support function_calling, prompt_caching, vision.

Can I switch between Claude Sonnet 5 and GPT-6 Astra without changing my code?

Yes. Both are available on 聚合 AI 中转站 through one API key and the same OpenAI-compatible endpoint — switching means changing the model field from "claude-sonnet-5" to "gpt-6-astra", nothing else.

Both are available on 聚合 AI 中转站 under one API key — switching between them means changing the model field and nothing else, so you can use each where it fits rather than picking one.

Claude Sonnet 5 · GPT-6 Astra · All models