#43575·litellm

[Bug]: gemini-robotics-er-2-preview bills thinking tokens at 2x Google's current output rate

Author: madhu19991Created Sep 28, 2026Updated Sep 29, 2026
Labelsllm translation

Description

gemini/gemini-robotics-er-2-preview in model_prices_and_context_window.json has output_cost_per_reasoning_token: 1e-05 against output_cost_per_token: 5e-06, so every thinking token is billed at twice the current output rate

Google's pricing page (https://ai.google.dev/gemini-api/docs/pricing, Gemini Robotics ER 2 Preview, paid tier) lists the output price as "$5.00 through December 31, 2026. $10.00 starting January 1, 2027" and labels it "Output price (including thinking tokens)". Thinking is billed at the same rate as output. The 1e-05 value is the 2027 rate, applied early and only to reasoning tokens

Other Gemini entries with the same dated pricing already carry the current rate for both fields. For example gemini/gemini-3.8-flash is listed by Google as "$3.75 through December 31, 2026. $7.50 starting January 1, 2027" and the map has 3.75e-06 for both output_cost_per_token and output_cost_per_reasoning_token

Expected: output_cost_per_reasoning_token is 5e-06 (or dropped, since _resolve_reasoning_token_cost falls back to the output rate)

Config

None needed, it reproduces from the bundled or remote cost map

LiteLLM Version

main as of f191e08d67 (2026-09-28). The entry was added in deaade232d

Steps to Repro

bash
python -c "
import litellm
from litellm.types.utils import Usage, CompletionTokensDetailsWrapper
from litellm.litellm_core_utils.llm_cost_calc.utils import generic_cost_per_token
u = Usage(prompt_tokens=0, completion_tokens=1000, total_tokens=1000, completion_tokens_details=CompletionTokensDetailsWrapper(reasoning_tokens=1000, text_tokens=0))
print(generic_cost_per_token(model='gemini/gemini-robotics-er-2-preview', usage=u, custom_llm_provider='gemini')[1] * 1000, 'USD per 1M thinking tokens')
"

This prints 10.0. Google's current rate is 5.00