Gemini 3.1 Pro API pricing

    Google model

    Short answer

    Gemini 3.1 Pro by Google costs $2 per 1M input tokens and $12 per 1M output tokens, with a 1M token context window. It scores 78.8% on SWE-bench Verified and 77.1% on ARC-AGI-2. GLM-5.3 Flash scores about as well on SWE-bench Verified (92%) for $0.24 per 1M blended tokens versus $4.50.

    Prices updated Oct 23, 2026 (APIpulse, CC BY 4.0) · Benchmarks: ARC Prize, Vals.ai · all models

    Input$2 / 1M
    Output$12 / 1M
    Context1M
    Blended (3:1)$4.50 / 1M

    API cost calculator

    Enter your monthly usage in millions of tokens (1M tokens ≈ 750,000 words).

    Gemini 3.1 Pro$44 / month$528 / year

    Standard rates; batch processing and prompt caching can lower the bill.

    Benchmarks

    ARC-AGI-2 (reasoning)77.1% (Preview)
    SWE-bench Verified (coding)78.8%

    Cheaper models with similar scores

    Within 3 points on the same benchmark, at a lower blended price.

    Other Google models

    Frequently asked questions

    How much does the Gemini 3.1 Pro API cost?

    Gemini 3.1 Pro costs $2 per 1M input tokens and $12 per 1M output tokens. A workload of 10M input and 2M output tokens a month costs $44.

    What is the context window of Gemini 3.1 Pro?

    Gemini 3.1 Pro supports a 1M token context window.

    Is there a cheaper alternative to Gemini 3.1 Pro?

    GLM-5.3 Flash scores 92% on SWE-bench Verified, close to Gemini 3.1 Pro, at $0.24 per 1M blended tokens versus $4.50.