Skip to content

Add Claude Sonnet, Gemini 2.5 Pro models with special prices >200k tokens#258

Open
niharm wants to merge 1 commit intoanomalyco:devfrom
niharm:add-200k-model-prices
Open

Add Claude Sonnet, Gemini 2.5 Pro models with special prices >200k tokens#258
niharm wants to merge 1 commit intoanomalyco:devfrom
niharm:add-200k-model-prices

Conversation

@niharm
Copy link
Copy Markdown
Contributor

@niharm niharm commented Oct 1, 2025

There are a couple of major models that have special prices above 200k:

  • Claude Sonnet 4
  • Claude Sonnet 4.5
  • Gemini 2.5 Pro
Screenshot 2025-09-30 at 5 50 14 PM Screenshot 2025-09-30 at 5 50 08 PM

There are a couple of approaches here:

  1. The approach taken by, e.g., llm-prices.com, which is to make the 200k models their own row
Screenshot 2025-09-30 at 5 51 00 PM
  1. The approach taken by, e.g., LiteLLM, which is to add columns for the special prices
Screenshot 2025-09-30 at 5 52 01 PM
  1. A more comprehensive solution, in which models can have special pricing columns that don't apply to all columns (say, a hash of special_prices).

In this PR, I implemented option 1 since I thought it was the least disruptive. LMK thoughts!

Gemini 2.5 Pro:
  - Input: $1.25 → $2.50
  - Output: $10.00 → $15.00
  - Cache read: $0.31 → $0.625

  Sonnet 4:
  - Input: $3.00 → $6.00
  - Output: $15.00 → $22.50
  - Cache read: $0.30 → $0.60
  - Cache write: $3.75 → $7.50

  Sonnet 4.5:
  - Input: $3.00 → $6.00
  - Output: $15.00 → $22.50
  - Cache read: $0.30 → $0.60
  - Cache write: $3.75 → $7.50

@fwang
Copy link
Copy Markdown
Contributor

fwang commented Oct 1, 2025

appreciate looking into the options! i'm leaning towards 2 or 3.. lemme give it some thought

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