Skip to content

Billing failure: Gemini model costs recorded as 0 in cc-switch

Quick fix

Add the model name after the slash, such as gemini-3-flash-preview, to the pricing list. The reporter confirmed this restores cost tracking.

Error output
计费失效
English translation

Billing failure

The issue logs show that no pricing information was found after google/gemini-3-flash-preview was cleaned to gemini-3-flash-preview, so the cost was recorded as 0. The reporter confirmed that pricing lookup removes the portion before the slash from the model name. Adding the name after the slash to the pricing list enables pricing; a reply also affirmed this. This configuration workaround was confirmed by the user. The issue does not specify affected versions or any code fix.

The same thread also requested local images as logos, OpenAI Chat Completions model detection, failover notifications, and highlighting of the current provider. A reply stated that failover notifications were planned and that the current channel during failover displays P1 and a normal-status indicator. No explicit response was given to the local image logo or model detection requests. These requests are outside this page's billing issue.

  1. Check the requested model name and its cleaned name in the logs. The issue's example is google/gemini-3-flash-preview, cleaned to gemini-3-flash-preview. For troubleshooting, the discussion suggests enabling debug logging to inspect the returned data.

  2. Add the model name after the slash to the pricing list. For the issue's example, add gemini-3-flash-preview. The reporter confirmed that this enables pricing.

Toolcc-switch
VersionUnknown
PlatformsUnknown

This page is distilled from 1 real issues

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.