Billing rules

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.

Key points

Credits and yuan

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.

Four-part pricing

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.

How one call is priced

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.

How credits are used

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.

  1. Subscription plan first: the plan quota left in the current period is used up first.
  2. Then credit packs: the rest comes from packs. With several packs, the one that expires first goes first. Packs aren’t limited by the plan’s daily cap and last until they run out.
  3. Reject if still short: if the org allows member fallback, the org balance is charged next. If that isn’t enough either, the call fails with 402 “quota used up”.

Failed calls are free

You pay only for calls that produced a result; a failure with no output is not charged. The exact rules for each case:

CaseCharged?
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 onNot 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 contentNot 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 upstreamNot charged: no usage was produced
A failed attempt the gateway retried or hedged for resilienceNot 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 midwaySettlement does not depend on the client: output already produced is charged as usual, and nothing is charged if none was produced
Images and videosImages 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

Multipliers

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.

Verify your bill

You can recompute every charge yourself.

中文