StackProofStackProof

Model price comparisons · August 2026

Claude Opus 4.8 vs Gemini 3.1 Pro: API pricing compared

Same task, same tokens, two invoices. Every figure on this page is computed from our open pricing dataset, not copied from a blog post.

Gemini 3.1 Pro is 2.22x cheaper than Claude Opus 4.8 on a realistic task profile of 1,500 input and 500 output tokens per call, 3 calls per task: $0.02700 against $0.06000 per task, a 55% saving on identical work. Run a million tasks a month and that is the difference between $27,000 and $60,000.

ModelInput $/1M tokOutput $/1M tokOutput multiple$/task$/1M tasks
Claude Opus 4.8Anthropic · frontier$5$255x$0.06000$60,000
Gemini 3.1 ProGoogle · frontier$2$126x$0.02700$27,000

Monthly bill at three volumes

Tasks / monthClaude Opus 4.8Gemini 3.1 ProGap
10,000$600$270$330
100,000$6,000$2,700$3,300
1,000,000$60,000$27,000$33,000

Where the money goes on each

Claude Opus 4.8 prices output at 5x its input rate, so on this profile output is 63% of its task cost. Gemini 3.1 Pro prices output at 6x input, putting output at 67% of cost. The model with the higher output multiple rewards capping response length more; the one with the higher input share rewards prompt caching and context trimming more. Cost tells you nothing about quality: run both on twenty of your real cases before deciding, and treat the cheaper model as the default until it demonstrably fails.

Break-even against a dedicated GPU

Against a $2/hour dedicated instance ($1,460/month fixed), self-hosting overtakes Claude Opus 4.8 at 24,333 tasks per month and overtakes Gemini 3.1 Pro at 54,074 tasks per month. The full method is in the self-hosting break-even guide.

Pricing the self-hosted side? Compare on-demand GPU rates:

Compare GPU cloud pricing →

Plug your own token counts into the $/task calculator, or read the full ten-model pricing comparison.

Compare against other models

Frequently asked

Which is cheaper, Claude Opus 4.8 or Gemini 3.1 Pro?
Gemini 3.1 Pro. On a task of 1,500 input and 500 output tokens across 3 calls, Gemini 3.1 Pro costs $0.02700 per task against $0.06000 for Claude Opus 4.8, which makes it 2.22x cheaper (a 55% saving).
How much do Claude Opus 4.8 and Gemini 3.1 Pro charge per million tokens?
Claude Opus 4.8: $5 per million input tokens and $25 per million output tokens. Gemini 3.1 Pro: $2 input and $12 output. These are published list rates as of August 2026, excluding cached, batch and long-context tiers.
What does a million tasks cost on Claude Opus 4.8 vs Gemini 3.1 Pro?
At the same fixed profile, one million tasks cost $60,000 on Claude Opus 4.8 and $27,000 on Gemini 3.1 Pro. The gap comes entirely from list-price differences, not from any difference in the work done.