Skip to content

Update Databricks model pricing and add new models (including databricks pricing test). - #17277

Merged
3 commits merged into
BerriAI:mainfrom
epistoteles:main
Dec 2, 2025
Merged

Update Databricks model pricing and add new models (including databricks pricing test).#17277
3 commits merged into
BerriAI:mainfrom
epistoteles:main

Conversation

@epistoteles

@epistoteles epistoteles commented Nov 29, 2025

Copy link
Copy Markdown
Contributor

Title

Update Databricks model pricing and add new models (including databricks pricing test).

Relevant issues

Closes #17279

The databricks model prices were outdated and/or incomplete.

The new prices are based on

https://www.databricks.com/product/pricing/foundation-model-serving

and

https://www.databricks.com/product/pricing/proprietary-foundation-model-serving

[NOTE] Some tests are failing (missing google ai library in poetry, etc.) but those have nothing to do with the .json file I edited. The newly added test in tests/test_litellm/llms/databricks/ passes, as do all other test in that folder.

Screenshot from 2025-11-29 15-17-04

Type

🐛 Bug Fix
✅ Test

Changes

  1. Pricing Correction: Updated existing Databricks models in model_prices_and_context_window.json. The USD prices (input_cost_per_token, output_cost_per_token) were inconsistent with the DBU prices. They have been recalculated as DBU * 0.07 as per Databricks pricing documentation.
  2. New Models: Added ~17 new models referenced in Databricks pricing tables but missing from the cost map, including GPT OSS series, Gemini models and Claude models.
  3. Testing: Added a new integrity test tests/test_litellm/llms/databricks/test_databricks_pricing.py which asserts that for all Databricks models, USD_Cost == DBU_Cost * 0.07 (current DBU/Databricks Units to USD rate for foundation models).

@vercel

vercel Bot commented Nov 29, 2025

Copy link
Copy Markdown

@epistoteles is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Nov 29, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Removed unnecessary sys.path modification and cleaned up comments.
@ghost
ghost merged commit 6e8e3b3 into BerriAI:main Dec 2, 2025
4 of 7 checks passed
@ghost

ghost commented Dec 2, 2025

Copy link
Copy Markdown

Thanks! @epistoteles

fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…cks pricing test). (BerriAI#17277)

* update databricks pricing and add DBU<>USD test

* Refactor test_databricks_pricing.py

Removed unnecessary sys.path modification and cleaned up comments.
This pull request was closed.
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.

[Bug]: Databricks model outdated and DBU<>USD conversion doesnt match

2 participants