feat(pricing): add Veo 3.1 Lite generate model - #33358
Conversation
Greptile SummaryThis PR adds
Confidence Score: 4/5Safe to merge; the change is purely additive to two JSON cost maps with a matching test, and all pricing values align with the official Gemini API pricing page. The new entries are well-formed and consistent with each other, and the test correctly validates both provider keys in both maps. The only notable issue is the source URL in the two vertex_ai entries, which points to the Gemini Enterprise Agent Platform docs instead of the Vertex AI model-reference URL used by every other vertex_ai/veo-3.1 entry — a cosmetic inconsistency that does not affect runtime behavior. The source field in both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json for the vertex_ai/veo-3.1-lite-generate-001 entry.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds gemini/veo-3.1-lite-generate-001 and vertex_ai/veo-3.1-lite-generate-001 entries; pricing values match the Gemini API pricing page but the vertex_ai entry's source URL is inconsistent with all other vertex_ai/veo-3.1 entries |
| litellm/model_prices_and_context_window_backup.json | Backup map kept in sync with the root map; same source URL inconsistency for the vertex_ai entry is present here as well |
| tests/test_litellm/litellm_core_utils/test_get_model_cost_map.py | Adds test_veo_31_lite_generate_001_model_cost_map_entries; reads only local files (no network calls), checks both root and backup maps for all expected fields and both providers |
Reviews (1): Last reviewed commit: "feat(pricing): add Veo 3.1 Lite generate..." | Re-trigger Greptile
| "mode": "video_generation", | ||
| "output_cost_per_second": 0.05, | ||
| "output_cost_per_second_1080p": 0.08, | ||
| "source": "https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate", |
There was a problem hiding this comment.
The
source for this vertex_ai entry points to the Gemini Enterprise Agent Platform docs, while every other vertex_ai/veo-3.1-* entry in this file (generate-preview, fast-generate-preview, generate-001, fast-generate-001) uses the Vertex AI generative-ai model-reference URL. This inconsistency could mislead developers looking up this model's authoritative documentation.
| "source": "https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate", | |
| "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo", |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| "mode": "video_generation", | ||
| "output_cost_per_second": 0.05, | ||
| "output_cost_per_second_1080p": 0.08, | ||
| "source": "https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate", |
There was a problem hiding this comment.
Same inconsistency as in the root map: the
source URL for this entry uses the Gemini Enterprise Agent Platform docs path rather than the Vertex AI generative-ai model-reference URL that all other vertex_ai/veo-3.1-* entries in the backup map use.
| "source": "https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate", | |
| "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo", |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Superseded by #30782, which landed the same cost map entries plus resolution inference and tests. Thanks for the contribution! |
Relevant issues
Closes #33199
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Validated locally with:
python -m pytest tests/test_litellm/litellm_core_utils/test_get_model_cost_map.py -qpython -m black --check tests/test_litellm/litellm_core_utils/test_get_model_cost_map.pypython -m json.tool model_prices_and_context_window.jsonpython -m json.tool litellm/model_prices_and_context_window_backup.jsongit diff --checkOfficial sources:
Type
? Test
Changes
gemini/veo-3.1-lite-generate-001tomodel_prices_and_context_window.jsonand the shipped backup map.vertex_ai/veo-3.1-lite-generate-001alongside the existing Vertex AI Veo 3.1 GA entries.