Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions providers/openrouter/x-ai/grok-4.20.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
costs:
- cache_read_input_token_cost: 2e-7
input_cost_per_token: 0.000002
output_cost_per_token: 0.000006
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing cache read cost despite prompt_caching feature listed

Medium Severity

The cache_read_input_token_cost field was removed from the costs section, but prompt_caching is still listed as a feature. Every other model in the OpenRouter provider that advertises prompt_caching (e.g., grok-4.yaml, grok-4.20-multi-agent.yaml, aion-2.0.yaml, nova-premier-v1.yaml) includes a corresponding cache_read_input_token_cost. This inconsistency could cause incorrect cost calculations for cached token reads.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2ac657e. Configure here.

- input_cost_per_token: 0.00000125
output_cost_per_token: 0.0000025
region: "*"
tiered_pricing:
cache_read:
- cost_per_token: 4e-7
from: 200000
input:
- cost_per_token: 0.000004
from: 200000
output:
- cost_per_token: 0.000012
from: 200000
features:
- function_calling
- json_output
Expand Down
Loading