Skip to content

fix: correct Gemini 2.5 Flash TTS / Native Audio pricing to match Google's published rates - #32113

Closed
kimyoohan wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
kimyoohan:fix-gemini-tts-native-audio-pricing
Closed

kimyoohan wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
kimyoohan:fix-gemini-tts-native-audio-pricing

Conversation

@kimyoohan

Copy link
Copy Markdown

Fixes the pricing mismatches reported in #32111.

Updates 4 entries (gemini-2.5-flash-preview-tts, gemini-2.5-flash-native-audio-preview-12-2025, and their gemini/-prefixed keys) to match Google's published prices at https://ai.google.dev/gemini-api/docs/pricing (accessed 2026-07-04):

gemini-2.5-flash-preview-tts (mode: audio_speech)

field before after Google's page
input_cost_per_token 3e-07 5e-07 "Input price ... $0.50 (text)"
output_cost_per_token 2.5e-06 1e-05 "Output price ... $10.00 (audio)"

gemini-2.5-flash-native-audio-preview-12-2025

field before after Google's page
input_cost_per_token 3e-07 5e-07 "$0.50 (text)"
input_cost_per_audio_token 1e-06 3e-06 "$3.00 (audio / video)"
output_cost_per_token 2.5e-06 2e-06 "$2.00 (text)"
output_cost_per_audio_token (absent) 1.2e-05 "$12.00 (audio)"

Also updated source to the current pricing docs URL (the old https://ai.google.dev/pricing redirects).

Values were cross-verified against the primary source while building FactQuire (https://factquire.com), a source-verified facts feed for LLM APIs — each entry there carries the verbatim provider quote if useful for review: https://factquire.com/models/google/gemini-2_5-flash-preview-tts.html

🤖 Generated with Claude Code

…ublished rates

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jul 4, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@greptile-apps

greptile-apps Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR corrects pricing for four Gemini 2.5 Flash TTS and native audio model entries in model_prices_and_context_window.json to match Google's published rates and updates the source URL. The values in the primary file match the current Gemini API pricing page.

  • The gemini-2.5-flash-preview-tts entries (both with and without the gemini/ prefix) have their input token cost raised from 3e-07 to 5e-07 and output token cost raised from 2.5e-06 to 1e-05, reflecting Google's $0.50/M text input and $10.00/M audio output prices.
  • The gemini-2.5-flash-native-audio-preview-12-2025 entries have input/output text costs corrected and a previously absent output_cost_per_audio_token: 1.2e-05 field added, which is required for accurate billing when the model produces audio output.
  • The bundled fallback file litellm/model_prices_and_context_window_backup.json was not updated and still carries all four model entries with the old incorrect values; this file is the live fallback used when the remote fetch fails.

Confidence Score: 3/5

Safe to merge only after also updating the bundled backup JSON file; as-is, the fallback path will serve incorrect pricing.

The primary pricing file is correctly updated and the new values are independently verified against Google's current API pricing page. However, the bundled fallback file litellm/model_prices_and_context_window_backup.json — which is loaded directly from disk when the remote fetch fails — was not updated and still carries the old incorrect values for all four affected model entries.

litellm/model_prices_and_context_window_backup.json — needs the same four-entry pricing correction applied

Important Files Changed

Filename Overview
model_prices_and_context_window.json Pricing corrected for 4 model entries (gemini-2.5-flash-preview-tts and gemini-2.5-flash-native-audio-preview-12-2025, both with and without gemini/ prefix); input/output token costs updated to match Google's published rates and output_cost_per_audio_token added for native audio models
litellm/model_prices_and_context_window_backup.json Backup/bundled pricing file was not updated; all four affected model entries still carry the old incorrect pricing values and source URLs, which will be served as fallback when the remote fetch fails

Reviews (1): Last reviewed commit: "Fix Gemini 2.5 Flash TTS and Native Audi..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kimyoohan kimyoohan changed the title Fix Gemini 2.5 Flash TTS / Native Audio pricing to match Google's published rates fix: correct Gemini 2.5 Flash TTS / Native Audio pricing to match Google's published rates Jul 4, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants