The six units
per_ten_thousand_characters exists to match how upstream vendors quote (“per 10k characters”). Priced per single character, the rate would be so small that rounding error would exceed the fee itself. Chinese characters count as 2, Latin letters and digits as 1.The algorithm
Unit conversion: 1 credit = ¥0.01, so credits = price in yuan × 100.token_split rounds twice, separately, then adds. Not sum-then-round. On short turns this makes the actual deduction slightly higher than a total-based estimate, by at most 1 credit.
3. Parameter coefficients multiply on top. Some models attach coefficients to parameter tiers (resolution, quality, and so on); the final value is ceil(base × coefficient), and multiple coefficients multiply together.
Cost matrix: overrides all of the above
Some models are configured with a cost matrix — a lookup by parameter combination (resolution / duration / quality / token band) yielding a yuan cost, then a margin:When the matrix matches no rule, nothing is charged. That is a deliberate fail-open: better to undercharge than to charge arbitrarily.
No pricing configured means no charge
A computed cost of 0 means “this model has no pricing configuration,” in which case the deduction is skipped and no consumption record is written.A worked example
One turn: 12,000 input tokens, 3,000 output tokens; model rates 4 (input) and 16 (output), in credits per million tokens.How to spend less
Match the model to the task
Light models for simple Q&A, premium ones for hard reasoning. Rate gaps are usually order-of-magnitude.
Keep contexts short
Every turn of a long session resends the history. Starting fresh beats trimming wording.
Narrow retrieval
Knowledge search and web scraping results all enter the context. Naming a platform and a source is cheaper than a full sweep.
Watch delegation and multi-task
Each delegation is an independent turn and costs stack. See multi-expert delegation.
Keep reading
Billing formulas
The full algorithm and credit deduction order
Credit system
Six credit sources and expiry rules
Subscription plans
Bundled credits and model visibility per plan
Limits
Hard limits across the platform

