Skip to content

feat: add Venice AI models and token prices to providers - #26970

Closed
Kutsukey wants to merge 12 commits into
BerriAI:litellm_internal_stagingfrom
Kutsukey:feat/add-venice-models
Closed

feat: add Venice AI models and token prices to providers#26970
Kutsukey wants to merge 12 commits into
BerriAI:litellm_internal_stagingfrom
Kutsukey:feat/add-venice-models

Conversation

@Kutsukey

@Kutsukey Kutsukey commented May 1, 2026

Copy link
Copy Markdown

Relevant issues

Fixes #24229

Pre-Submission checklist

  • I have Added testing in the tests/test_litellm/ directory (Note: This is a JSON data addition, no new logic tests required)
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai

Screenshots / Proof of Fix

N/A - This is a pure JSON configuration update. Data was fetched directly from the Venice AI API (/models?type=text) to ensure accurate token limits and correct /1M pricing conversions.

Type

🆕 New Feature

Changes

  • Added the latest Venice AI models to model_prices_and_context_window.json.
  • Handled the $ per 1M tokens conversion to map correctly to LiteLLM's standard input_cost_per_token format.

Copilot AI review requested due to automatic review settings May 1, 2026 08:12
@CLAassistant

CLAassistant commented May 1, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Venice AI model metadata (context windows, capabilities, and per-token pricing) into LiteLLM’s central pricing/context registry so Venice models can be referenced consistently across the codebase.

Changes:

  • Added a large set of venice/* model entries (token limits, pricing, capability flags) to the main pricing/context registry.
  • Mirrored the same Venice model entries into the backup pricing/context registry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
model_prices_and_context_window.json Adds Venice model entries with pricing + context/capability metadata to the primary registry.
litellm/model_prices_and_context_window_backup.json Mirrors the same Venice additions in the backup registry for parity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread model_prices_and_context_window.json Outdated
Comment on lines +40172 to +40176
"venice/grok-41-fast": {
"max_tokens": 30000,
"max_input_tokens": 1000000,
"max_output_tokens": 30000,
"input_cost_per_token": 2.3000000000000002e-07,
Comment thread model_prices_and_context_window.json Outdated
Comment on lines +39785 to +39788
"max_output_tokens": 32000,
"input_cost_per_token": 1e-06,
"output_cost_per_token": 3.2000000000000003e-06,
"litellm_provider": "venice",
Comment on lines +40010 to +40014
"venice/grok-41-fast": {
"max_tokens": 30000,
"max_input_tokens": 1000000,
"max_output_tokens": 30000,
"input_cost_per_token": 2.3000000000000002e-07,
Comment on lines +39623 to +39626
"max_output_tokens": 32000,
"input_cost_per_token": 1e-06,
"output_cost_per_token": 3.2000000000000003e-06,
"litellm_provider": "venice",
@greptile-apps

greptile-apps Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds 73 Venice AI model entries to the pricing/context-window registry with correct per-token pricing, token limits, and capability flags (supports_vision, supports_reasoning). The PR also cleans up several pre-existing issues: removes duplicate JSON entries for zai.glm-5 and minimax.minimax-m2.5/Bedrock variants, restores supports_reasoning: true to the Bedrock MiniMax entries, removes redundant duplicate supports_max_reasoning_effort keys from claude-opus-4-7 and claude-opus-4-7-20260416, and backfills max_tokens on several audio-transcription and Gemini models.

Confidence Score: 5/5

Safe to merge; the only outstanding finding is a P2 schema-comment regression.

All previous P1 findings (zero pricing, missing vision/reasoning flags, missing trailing newline, MiniMax supports_reasoning removal) have been addressed in this revision. The sole remaining issue is a P2 documentation/schema-description overwrite that does not affect runtime behaviour.

No files require special attention beyond the P2 schema comment on line 14 of model_prices_and_context_window.json.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds 73 Venice AI model entries with pricing and capability flags; also fixes duplicate Bedrock/MiniMax entries, adds max_tokens to several audio/Gemini models, removes duplicate supports_max_reasoning_effort JSON keys, and accidentally overwrites the max_tokens schema description.
litellm/model_prices_and_context_window_backup.json Mirror of the main pricing file; receives the same Venice AI additions and ancillary fixes.

Reviews (7): Last reviewed commit: "fix(venice): fix minimax reasoning regre..." | Re-trigger Greptile

Comment thread model_prices_and_context_window.json Outdated
Comment thread model_prices_and_context_window.json Outdated
@codecov

codecov Bot commented May 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

I checked the official and current Venice AI Model Catalog as well as the /models API endpoint. The model venice/grok-code-fast-1 no longer exists on their platform (it was likely deprecated or renamed to grok-41-fast since the original issue was opened in March). I have added all currently active models to prevent any routing errors. I also fixed the floating-point artifacts and added the missing newlines requested by Greptile.

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 1, 2026
- BerriAI/litellm#26972 merge-after-nits: virtual keys filter routed through React Query cache

- BerriAI/litellm#26970 needs-discussion: Venice AI additions contaminated by databricks row churn + capability-flag drop

- BerriAI/litellm#26968 merge-after-nits: tighten router-settings-override fallback validation + mock-testing strip
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

Comment thread model_prices_and_context_window.json
Comment on lines +39997 to +40005
"output_cost_per_token": 2e-07,
"litellm_provider": "venice",
"mode": "chat"
},
"venice/arcee-trinity-large-thinking": {
"max_tokens": 65536,
"max_input_tokens": 256000,
"max_output_tokens": 65536,
"input_cost_per_token": 3.125e-07,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Suspiciously high pricing on several models

venice/claude-opus-4-6-fast is priced at 6× more than venice/claude-opus-4-6 — unusual since "fast" variants are normally cheaper, not pricier. Similarly, venice/openai-gpt-54-pro and venice/openai-gpt-55-pro are priced roughly 12× higher than venice/openai-gpt-4o-2024-11-20. This pattern suggests a possible unit-conversion error (e.g. applying the per-1M divisor twice, or the source already being in per-token units). Please verify these values against the raw Venice API response.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified these values directly against the live Venice API /models response and their official Model Catalog. There is no conversion error. Venice explicitly prices claude-opus-4-6-fast at $36.00/$180.00 per 1M tokens (exactly 6x the base tier) because it is a dedicated/premium routing endpoint. The GPT-5.x Pro pricing also exactly matches their raw API response.

@Kutsukey
Kutsukey force-pushed the feat/add-venice-models branch from 392031a to ffc55f8 Compare May 1, 2026 17:13
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

Comment thread model_prices_and_context_window.json
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

Comment thread model_prices_and_context_window.json
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

Comment thread model_prices_and_context_window.json
Comment thread model_prices_and_context_window.json
Comment thread model_prices_and_context_window.json
@Kutsukey
Kutsukey force-pushed the feat/add-venice-models branch from 03ec390 to 9c455bf Compare May 1, 2026 18:24
@Kutsukey
Kutsukey force-pushed the feat/add-venice-models branch from 68cdf59 to 83c872a Compare May 1, 2026 18:48
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

Comment thread model_prices_and_context_window.json
@Kutsukey

Kutsukey commented May 1, 2026

Copy link
Copy Markdown
Author

@greptileai

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions Bot added the stale label Jul 31, 2026
@github-actions github-actions Bot closed this Aug 7, 2026
@Kutsukey
Kutsukey deleted the feat/add-venice-models branch August 7, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Venice models support "venice/grok-code-fast-1" in "model_prices_and_context_window.json"

3 participants