Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Jun 19, 2025

Description

Fixes #4836

This PR corrects the pricing for the Gemini 2.5 Flash model to match the official Google AI pricing documentation.

Changes Made

  • Updated gemini-2.5-flash pricing in packages/types/src/providers/gemini.ts:

    • Input price: $0.15/M → $0.30/M tokens
    • Output price: $0.60/M → $2.50/M tokens
    • Cache reads price: $0.0375/M → $0.075/M tokens (matching text/image/video caching)
    • Cache writes price: kept at $1.0/M tokens (storage price)
  • Updated gemini-2.5-flash pricing in packages/types/src/providers/vertex.ts with the same values

Testing

  • All existing tests pass
  • Linting passes
  • Type checking passes
  • Changes are minimal and focused only on pricing values

Verification of Acceptance Criteria

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No breaking changes
  • Only pricing values were updated, no functional changes

Important

Update Gemini 2.5 Flash pricing in gemini.ts and vertex.ts to match official documentation.

  • Pricing Updates:
    • Updated gemini-2.5-flash pricing in gemini.ts and vertex.ts:
      • Input price: $0.15/M → $0.30/M tokens
      • Output price: $0.60/M → $2.50/M tokens
      • Cache reads price: $0.0375/M → $0.075/M tokens
      • Cache writes price remains $1.0/M tokens

This description was created by Ellipsis for af99164. You can customize this summary. It will automatically update as commits are pushed.

@daniel-lxs daniel-lxs requested a review from mrubens as a code owner June 19, 2025 20:09
@daniel-lxs daniel-lxs requested review from cte and jr as code owners June 19, 2025 20:09
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Jun 19, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Review] in Roo Code Roadmap Jun 19, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 19, 2025
@mrubens mrubens merged commit db334c1 into main Jun 19, 2025
20 of 21 checks passed
@mrubens mrubens deleted the fix/issue-4836-gemini-flash-pricing branch June 19, 2025 20:20
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Jun 19, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Gemini 2.5 Flash - incorrect pricing

3 participants