Skip to content

Gemini: Context Tier Configuration, The 200K threshold price difference #592

Closed

Description

@pascalandy

Just had a great session with OpenCode and Gemini 2.5 Pro 06-05

Quick thought on Gemini pricing: you know there are cheaper rates for prompts under 200K tokens. It seems we're currently paying the higher rate regardless of context size.

Could we get a configuration option in OpenCode to utilize the lower-cost tier when our context is under 200K? This would help us optimize costs significantly.

Pricing details here: https://ai.google.dev/gemini-api/docs/pricing

Input price $1.25, prompts <= 200k tokens
$2.50, prompts > 200k tokens
Output price (including thinking tokens) $10.00, prompts <= 200k tokens
$15.00, prompts > 200k

Cheers!

Activity

  1. self-assigned this
    on Jul 2, 2025
  2. AVGVSTVS96 commented on Jul 3, 2025

    @AVGVSTVS96

    Oh, I thought the pricing changes automatically based on the context length. Maybe you mean the cost display is showing the higher tier pricing regardless of context size?

  3. pascalandy commented on Jul 3, 2025

    @pascalandy
    Author

    I thought the pricing changes automatically based on the context length.

    Maybe you are right about this. I'm not aware, and that's the whole point. How can we make sure about which tier we are paying?

  4. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions