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
| Tokens | Claude Sonnet 5claude-sonnet-5 | Gemini 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 window | 1,000,000 tokens | 1,048,576 tokens |
| Max output | 128,000 tokens | 65,536 tokens |
| Input | text, image | text, image, audio, video |
| Released | 2026-06-30 | 2026-02-19 |
| Anthropic lifecycle | active, retires no sooner than 2027-06-30 | — |
| Formats | Anthropic SDK, OpenAI SDK | Gemini SDK, OpenAI SDK |
| Developer | Anthropic |
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
| Work | Claude Sonnet 5 | Gemini 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"}]}'Model pages: Claude Sonnet 5, Gemini 3.1 Pro Preview. Pricing by family: Claude, Gemini. More comparisons: Claude Sonnet 5 vs Claude Sonnet 4.6, Claude Sonnet 5 vs Claude Opus 4.8, Claude Sonnet 5 vs Claude Fable 5, Claude Opus 5.5 vs Gemini 3.1 Pro Preview.
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.