fix(xai): correct grok-4.5 cached-input pricing

cache_read_input_token_cost was 5e-07 ($0.50/1M) and
cache_read_input_token_cost_above_200k_tokens was 1e-06 ($1.00/1M).
xAI's current pricing page lists $0.30/1M and $0.60/1M respectively
for these two tiers; base input/output pricing was already correct.

Verified 2026-08-10 against:
- https://docs.x.ai/developers/pricing
- https://docs.x.ai/developers/models/grok-4.5
- https://docs.x.ai/docs/models (this entry's own `source` field)

All three currently agree on $0.30 / $0.60.
This commit is contained in:
Andrew Avery 2026-08-10 10:21:28 -05:00
parent f6b9518ddb
commit 6c54ea72ae

View file

@ -40192,8 +40192,8 @@
"supports_web_search": true
},
"xai/grok-4.5": {
"cache_read_input_token_cost": 5e-07,
"cache_read_input_token_cost_above_200k_tokens": 1e-06,
"cache_read_input_token_cost": 3e-07,
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"input_cost_per_token": 2e-06,
"input_cost_per_token_above_200k_tokens": 4e-06,
"litellm_provider": "xai",
@ -40213,8 +40213,8 @@
"supports_web_search": true
},
"xai/grok-4.5-latest": {
"cache_read_input_token_cost": 5e-07,
"cache_read_input_token_cost_above_200k_tokens": 1e-06,
"cache_read_input_token_cost": 3e-07,
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"input_cost_per_token": 2e-06,
"input_cost_per_token_above_200k_tokens": 4e-06,
"litellm_provider": "xai",