Models / Compare

Claude Sonnet 5 vs Gemini 3.1 Pro Preview

Claude Sonnet 5 costs less on output ($3.00 against $7.20 per million tokens); input costs the same on both ($1.20). Both on one key at UplinkSwitch, each next to its developer's list price.

Prices · per million tokens, USD

TokensClaude Sonnet 5claude-sonnet-5Gemini 3.1 Pro Previewgemini-3.1-pro-preview
Input$1.20Anthropic lists $2.00 · 40% under$1.20Google lists $2.00 · 40% under
Cached input$0.12Anthropic lists $0.20 · 40% under$0.12Google lists $0.20 · 40% under
Output$3.00Anthropic lists $10.00 · 70% under$7.20Google lists $12.00 · 40% under
Context window1,000,000 tokens1,048,576 tokens
Max output128,000 tokens65,536 tokens
Inputtext, imagetext, image, audio, video
Released2026-06-302026-02-19
Anthropic lifecycleactive, retires no sooner than 2027-06-30—
FormatsAnthropic SDK, OpenAI SDKGemini SDK, OpenAI SDK
DeveloperAnthropicGoogle
List price: each developer's published rate, read October 2026. A model with no cached rate bills cached tokens at its input rate. Live from GET https://api.uplinkswitch.com/v1/catalog. Lifecycle from Anthropic's model deprecations, read 2026-10-19.

What the same work costs · USD, here and at list

WorkClaude Sonnet 5Gemini 3.1 Pro Preview
1,000 chat requests$3.90list $9.00$6.00list $10.00
100 long documents$6.60list $12.00$7.44list $12.40
A month of both, daily$315.00list $630.00$403.20list $672.00
A chat request is 2,000 input and 500 output tokens; a long document is 50,000 in and 2,000 out; the month is 1,000 chats and 100 documents a day for 30 days, uncached. Over that month Claude Sonnet 5 costs $88.20 less here.

Newest in the line

  • Claude Sonnet 5.5 is the newest in Claude Sonnet 5's line: $1.20 in and $3.00 out per million tokens here, against $2.00 and $10.00 at list.

Same key, same URL

One base URL and one key serve both models. The request below calls Claude Sonnet 5; put gemini-3.1-pro-preview in the model field to call Gemini 3.1 Pro Preview instead.

shell
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"model":"claude-sonnet-5","messages":[{"role":"user","content":"Hello"}]}'

Questions

Which costs less, Claude Sonnet 5 or Gemini 3.1 Pro Preview?
Claude Sonnet 5 costs less on output ($3.00 against $7.20 per million tokens); input costs the same on both ($1.20).
Can I switch between them by changing the model id?
Yes. Both answer in the OpenAI SDK format at the same base URL with the same key. Change the model id from claude-sonnet-5 to gemini-3.1-pro-preview and nothing else.
Is there a subscription?
No. Prepaid credit from $10, with no subscription or monthly fee. Each top-up locks your prices for 30 days.
Is Claude Sonnet 5 better than Gemini 3.1 Pro Preview?
Better depends on the job; this page compares what the catalog can measure. Claude Sonnet 5 costs less on output ($3.00 against $7.20 per million tokens); input costs the same on both ($1.20). Claude Sonnet 5 takes 1,000,000 tokens of context against 1,048,576 for Gemini 3.1 Pro Preview. Claude Sonnet 5 is the newer release. Both run on the same key, so the fair test is your own prompt sent to each model id.
Did Claude Sonnet 5’s price go up?
No. Anthropic made Sonnet 5's launch price, $2.00 input and $10.00 output per million tokens, its standard price; the rise to $3 and $15 planned for 2026-09-01 will not happen (Anthropic pricing, read 2026-10-19). Here Sonnet 5 is $1.20 and $3.00.