Usage and limits
Two separate wallets — characters for text to speech, minutes for speech to text — what counts as chargeable, and what to do when you hit a limit.
Inference has separate text-to-speech and speech-to-text wallets, both separate from your Kejue Voice call minutes, and each is counted in its own unit:
- Text to speech is counted in input characters — Unicode characters of the
inputtext exactly as you send it, spaces and punctuation included. How long the speech comes out never changes the charge. - Speech to text is counted in audio duration, accounted in milliseconds — there's no rounding up to a whole minute per request.
Speech length for a character count is only ever an estimate (it depends on the voice and the text, roughly 14 characters per second of speech today). It is shown beside character figures so you can picture them, and it never affects what is charged.
Three reads cover it:
GET /v1/inference/limits— each wallet'sunit(charactersormilliseconds), available balance, reserved amount, current and maximum concurrency, your monthly allowance, and when the next cycle starts. Allowances run on UTC calendar months and don't roll over. The*_msfields give the same amounts as audio time — exact for speech to text, an estimate for text to speech (audio_is_estimate).GET /v1/inference/usage— daily usage, totals for the range with time to first output, and your 100 most recent requests. Each total and day carrieschargedin the modality'sunit, pluscharactersandmilliseconds(audio generated or accepted).daysis 1, 7, or 30, in UTC calendar days including today.GET /v1/inference/requests/{id}— one request, with what it cost (charged, inunit) and, for text to speech, the audio it produced (audio_ms). The one to reach for when a client lost its response and you need to know what happened.
What gets charged
Credit is reserved before your request reaches a model, so a request can never spend credit you don't have. Synchronous requests and realtime sessions also count toward their live concurrency cap. Async file jobs use separate workspace job and chunk limits.
| Request | Reserves | Charges |
|---|---|---|
| Text to speech | The whole input, in characters — or the request is refused with 402 and nothing is reserved | The whole input, once audio starts. Nothing if no audio is produced. Cancelling or hitting the audio cap after audio started still charges the full input |
| Synchronous file transcription | The validated input duration | Input accepted for processing — including a failure whose outcome we can't be sure of. A clean refusal before processing releases the minutes |
| Async file job | The full validated input duration | Unique committed audio intervals. Failed or cancelled jobs settle committed partial output and release the remainder |
| Live transcription | The session's cap | The audio we accepted. Unused minutes are released when the session ends |
| Live speech | The session's max_characters budget (default 10,000), clamped to your balance | Each speak message's characters, when it is accepted. A message that would pass the budget is refused and costs nothing. Unused budget is released when the session ends |
max_audio_seconds on text to speech is only an optional safety cap on how
much audio one request or session may produce; it never changes what is charged.
Don't assume a request was free because your client lost the response. If
you disconnect mid-stream, the work already started or accepted is charged.
Check GET /v1/inference/requests/{id} rather than guessing.
For synchronous and realtime requests, the recorded charge may trail the work done: text to speech charges the full input as soon as audio starts, and speech to text may trail delivered audio by up to ten seconds. Unused reserved credit may take about two minutes to become available again.
Time to first output
The Usage page charts text-to-speech characters, speech-to-text audio duration, and the 95th-percentile time to first output.
first_output_ms is measured from when your request arrives at us, so it
includes admission — and your own browser and network time are on top of that.
For live sessions it's measured from your first commit or speak.
For speech to text, "first output" means a final transcript, not an interim hypothesis.
When you hit a limit
| Error | What to do |
|---|---|
402 inference_quota_exhausted | Add credit (characters for text to speech, minutes for speech to text), or wait for the monthly grant |
429 inference_concurrency_exhausted | Wait for Retry-After, or ask for a higher cap |
409 inference_job_limit | Review async job, upload and storage quotas with an authorized operator; allow running work or pending cleanup to finish before retrying |
404 inference_model_not_found | The name is unknown, unpublished, or the wrong kind. List names with GET /v1/inference/models |
404 inference_voice_not_found | That voice isn't approved for that model. List voices with GET /v1/inference/voices?model=MODEL |
503 inference_model_unavailable | The model is published but has no capacity right now. Retry later |
503 inference_capacity_unavailable | Check the request, then retry deliberately once capacity recovers |
409 inference_request_exists | You reused an idempotency key. Inspect the existing request; a new computation needs a new key |
Raising a workspace concurrency cap doesn't create capacity. If you need more throughput than you have, ask us — it isn't a settings change.
See also
Access and API keys · Text to speech · Speech to text
Asynchronous transcription jobs
File jobs use the existing STT wallet. The
server validates the original audio before reserving its exact duration.
Invalid files are uncharged. A prepared job without enough credit becomes
awaiting_credits and starts no recognition; add credit and POST its /resume
operation before the original deadline. Upload and outstanding-job budgets
apply separately, including to unsubmitted uploads and jobs awaiting credit.
Async holds share the wallet balance with other STT work, but do not consume interactive session concurrency. Their separate processing slots keep queued backlog distinct from active recognition. A five-hour successful job charges 18,000,000 audio milliseconds, or 300 STT minutes, including silence.
Only unique committed audio intervals are charged. Recognition or alignment retries add no second charge; for word-mode jobs the requested word metadata must also be committed. Per-chunk rounding does not accumulate extra duration. On cancellation or failure, the committed partial duration is settled and the remaining hold is released. If nothing was committed, the STT charge is zero. Paid partial results remain retrievable until expiry.
Authorized operators manage separate async job, upload, storage and chunk
quotas on the workspace Inference page. The defaults include one active job,
one ASR chunk and two alignment chunks. See
Workspace quotas and shared capacity
for the full defaults, versioned edits and reset behavior. GET /v1/inference/limits
continues to describe wallet and live-request limits; it is not a readout of
these private admin controls or a promise of available GPU capacity.
Authorized operators set shared async capacity through Inference capacity → Async transcription. The saved database policy permits zero through four ASR chunks, with separate per-instance and workspace bounds. CPU preparation and alignment budgets are each bounded to two. Worker autoscaling follows useful eligible and in-flight work within these budgets; its replica ceilings do not allocate additional GPU capacity. Healthy shared model instances can accept file chunks alongside Voice or realtime sessions while preserving reserved headroom and configured global, workspace and instance limits. They share GPU compute; reserved admission capacity does not guarantee strict Voice preemption or unchanged latency. A higher workspace quota can allow more admitted work without making every chunk run concurrently.
Job request_id links to the existing request ledger once the financial
reservation exists. The job’s public state and progress describe processing;
a running financial reservation is not a live microphone session. Transcript
retention belongs to the job, not the usage ledger. Deleting content retains
authorized billing/audit metadata and does not reverse valid committed charges.