Skip to content

fix(pricing): add kimi-k3 to the pricing fallback#709

Open
ozymandiashh wants to merge 1 commit into
mainfrom
fix/kimi-k3-pricing
Open

fix(pricing): add kimi-k3 to the pricing fallback#709
ozymandiashh wants to merge 1 commit into
mainfrom
fix/kimi-k3-pricing

Conversation

@ozymandiashh

Copy link
Copy Markdown
Collaborator

kimi-k3 usage renders $0: the model id is in neither the bundled LiteLLM snapshot nor pricing-fallback.json (verified across all 143 kimi/moonshot keys). Observed on real data: 14 kimi-k3 calls via the hermes provider priced at $0 that reprice to $18.29 with the correct rates.

Adds the official Moonshot rates to the fallback: $3.00/1M input, $15.00/1M output, $0.30/1M cache read (source: https://platform.kimi.ai/docs/pricing/chat-k3, figures verified against the live page), plus a calculateCost pin in tests.

Noted while verifying, not included: kimi-k2.7-code (bare id, without the -highspeed suffix that IS priced) also shows up unpriced on real data; left out pending an official figure.

kimi-k3 usage (reachable via the hermes provider) rendered $0 because the
model is in neither the LiteLLM snapshot nor the fallback. Adds the official
Moonshot rates: $3.00/1M input, $15.00/1M output, $0.30/1M cache read
(https://platform.kimi.ai/docs/pricing/chat-k3), with a calculateCost pin.
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