Skip to content

feat(pricing): add Flint rates matching DeepInfra Qwen3.8-27B - #48547

Closed
siilats wants to merge 1 commit into
BerriAI:mainfrom
siilats:litellm_flint_pricing
Closed

siilats wants to merge 1 commit into
BerriAI:mainfrom
siilats:litellm_flint_pricing

Conversation

@siilats

@siilats siilats commented Oct 27, 2026

Copy link
Copy Markdown

Adds pricing for Flint so local llama.cpp runs can report a cost instead of missing pricing metadata

The rates match the existing DeepInfra Qwen3.8-27B entry selected as the accounting reference, including cached input pricing

Details

TLDR

Problem this solves

  • Flint has no catalog entry for cost reporting

How it solves it

  • Adds Flint to the main and bundled pricing catalogs
  • Uses $0.40 input, $3 output, $0.04 cached input per million tokens

User Flow

Before, a local Flint run cannot resolve its pricing

  1. Run Flint through llama.cpp with model name flint
  2. Observe missing LiteLLM pricing and an unknown reported cost

After, the same model name has an explicit accounting rate

  1. Run Flint through llama.cpp with model name flint
  2. Resolve its input, output, and cached input prices from the catalog

Pre-Submission checklist

  • JSON parses, existing entries are unchanged, and both catalogs match
  • SDK cost calculations match the selected reference rates
  • Required CI checks have passed
  • Scope is limited to the pricing entry
  • Automated reviews have finished

Screenshots / Proof of Fix

Before (cfe0100)

  1. Read the previous catalog's flint entry
  2. Observed None

After (86b732b)

  1. Register the new catalog entry with litellm.register_model({"flint": catalog["flint"]}, custom_llm_provider="openai")
  2. Run litellm.cost_per_token(model="flint", prompt_tokens=1000000, completion_tokens=1000000)
  3. Observed input and output costs of approximately (0.40, 3.0) USD
  4. Repeat with a usage object containing 250,000 cached input tokens and observe (0.31, 3.0) USD

Type

New model pricing

Caveats

Low

  • Rates are a requested Qwen accounting reference, not a published Flint service quote
  • No inference behavior or provider routing implementation is changed

@siilats
siilats marked this pull request as ready for review October 27, 2026 07:52
@codspeed

codspeed Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 35 untouched benchmarks


Comparing siilats:litellm_flint_pricing (86b732b) with main (cfe0100)

Open in CodSpeed

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Registry disposition is recorded in #48188. Copied prices from another provider do not establish official pricing for this model

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.

1 participant