gemini-3.1-pro-preview API price comparison

Compare gemini-3.1-pro-preview token prices across supported API token platforms.

Provider: Google ยท Category: chat

Cheapest overall

AICodeMirror

1.98 USD/M tokens combined per 1M tokens

Lowest input

Xcode Best

0.30 USD/M tokens input per 1M tokens

Lowest output

AICodeMirror

1.62 USD/M tokens output per 1M tokens

Last refreshed

Jun 28, 2026

11 listed platforms

Best listed option

gemini-3.1-pro-preview is currently cheapest overall on AICodeMirror, with input at 0.36 USD/M tokens and output at 1.62 USD/M tokens per million tokens.

That is about 98% below the highest listed combined price on this page.

Pricing insight

Across 11 listed routes, gemini-3.1-pro-preview is cheapest overall on AICodeMirror at 1.98 USD/M tokens. The median combined price is 14.00 USD/M tokens, so the cheapest route is about 86% below the median listed route.

  • Lowest total cost

    AICodeMirror

    Best first check for balanced coding-agent sessions: 1.98 USD/M tokens.

  • Prompt-heavy work

    Xcode Best

    Useful for large repositories and long context reads: 0.30 USD/M tokens input.

  • Response-heavy work

    AICodeMirror

    Useful for long answers, edits, and agent loops: 1.62 USD/M tokens output.

Median combined price

14.00 USD/M tokens

Baseline for judging whether the cheapest route is unusually low.

Cache price coverage

82%

9 of 11 routes publish cache read or write prices.

Fresh rows

3/11

Routes crawled in the last 72 hours.

Prices are crawler-backed and normalized; confirm final prices on the target platform before large purchases.

Use case fit

gemini-3.1-pro-preview fits Gemini CLI, multimodal, and long-context workflows. For large files or codebase analysis, input token price can become the main cost driver.

Platform price comparison

PlatformRatioInputOutputTotal
AICodeMirror 0.09x 0.36 USD/M tokens 1.62 USD/M tokens 1.98 USD/M tokens
Xcode Best 0.09x 0.30 USD/M tokens 1.77 USD/M tokens 2.07 USD/M tokens
Micu 0.19x 0.65 USD/M tokens 3.90 USD/M tokens 4.55 USD/M tokens
RightCodes 0.35x 1.20 USD/M tokens 7.20 USD/M tokens 8.40 USD/M tokens
Atlas Cloud 0.58x 2.00 USD/M tokens 12.00 USD/M tokens 14.00 USD/M tokens
DawCode 0.58x 2.00 USD/M tokens 12.00 USD/M tokens 14.00 USD/M tokens
DMXAPI 0.58x 2.00 USD/M tokens 12.00 USD/M tokens 14.00 USD/M tokens
APINebula 0.76x 2.60 USD/M tokens 15.60 USD/M tokens 18.20 USD/M tokens
Yunwu 0.88x 3.00 USD/M tokens 18.00 USD/M tokens 21.00 USD/M tokens
PackyCode 1.75x 6.00 USD/M tokens 36.00 USD/M tokens 42.00 USD/M tokens
ClaudeCN 4.08x 14.00 USD/M tokens 84.00 USD/M tokens 98.00 USD/M tokens

FAQ

Where is gemini-3.1-pro-preview cheapest?

AICodeMirror has the lowest listed combined price at 1.98 USD/M tokens per 1M tokens.

What do input and output prices mean?

Input is charged for prompt tokens you send. Output is charged for tokens generated by the model.

How often are prices refreshed?

Prices are crawler-backed and this page was last refreshed Jun 28, 2026. Always confirm before large purchases.

Related models