How VisionCoder prices LLM API calls: input, output, cache-hit and cache-write tokens are priced separately; failed requests with no output are free, and output already produced is billed by actual usage. Includes the credit-to-yuan conversion, the order credits are used in, and how to recompute any charge.
What a call costs in credits, where the credits come from, when you aren’t charged, and how to recompute any charge yourself. These rules apply equally to subscription plans, credit packs and the org balance.
Internally, every amount is stored as whole micro-yuan (1 yuan = 1,000,000 micro-yuan). Credits are only a display unit, converted at that ratio. Plan quota and pack balances are both in credits, so any model can draw on the same quota.
Each model has a unit price for each of the four parts, in credits per million tokens. A call costs the sum of the four.
Each part is multiplied first, then divided, with no rounding along the way. The parts are summed at high precision and only the total is rounded up, once. We’d rather charge up to 1 micro-yuan (¥0.000001) too much than too little. Any call with usage costs at least 1 micro-yuan, so even a 1-token request is never rounded down to free.
Subscription plan quota resets every 24 hours; credit packs are one-time credits. Credits are used in a fixed order, and one call can draw on both a plan and a pack.
You pay only for calls that produced a result; a failure with no output is not charged. The exact rules for each case:
| Case | Charged? |
|---|---|
| Every route errors or times out (connection failure, upstream 5xx, upstream 429, first-token timeout) | Not charged: the reserved credit goes back where it came from and no call record is written |
| The upstream returns a 4xx (such as a parameter error) and the gateway passes it on | Not charged: the reserved credit goes back where it came from and no call record is written |
| The upstream returns an empty response, or only metadata such as an id and a role with no generated content | Not charged: it does not count as output; the reserved credit goes back and no call record is written |
| The gateway rejects the request (failed authentication, not enough credit, rate limit and so on) before it reaches an upstream | Not charged: no usage was produced |
| A failed attempt the gateway retried or hedged for resilience | Not billed to you: a request reserves once and settles once on the attempt that succeeded, and the platform absorbs the cost of failed attempts |
| The call fails after output was already produced (for example a stream cut off midway) | Charged for what was produced; when the upstream returns no complete usage, it is estimated from the content forwarded and marked as an estimate, never charged at the cap |
| The client disconnects midway | Settlement does not depend on the client: output already produced is charged as usual, and nothing is charged if none was produced |
| Images and videos | Images are charged only for images generated successfully, videos only for seconds actually generated |
The call log is your itemized bill: every line is a real charge. A failed call with no output writes no record, so it does not appear in the log.
Routing and failover: how failures switch over and unhealthy routes are circuit-broken
The platform can set a multiplier for an organization or personal space, from 0.01 to 10.00 (default 1.00, the list price; above 1.00 is a markup). A space has one multiplier, applied to every model, and both plan quota and packs are charged the multiplied credits.
You can recompute every charge yourself.