Skip to main content
Usage is metered on the audio your calls process, billed against your plan and prepaid credits. This page explains what each product meters; for current rates, always see the live pricing page — it is the single source of truth and avoids stale numbers.
ProductWhat’s metered
Hear (speech-to-text)Audio transcribed (batch is discounted vs. realtime)
Speak (text-to-speech)Audio synthesized (streaming and async)
Cue (turn detection + KB context)Session usage
Omni (speech-to-speech agent)Realtime session usage
PyAI Agents (managed)Realtime session usage — coming soon
Telephony (managed numbers)Carrier/PSTN usage
The legacy Flow realtime engine is retired for new customers — its /v1/realtime alias now routes to Omni.
Rates change as we improve the platform. We intentionally keep figures out of the docs so you never act on a stale number — the pricing page and your console usage are always current.

The units header

Billed responses carry an x-pyai-units header reporting exactly what was metered for that request (e.g. the amount of audio synthesized or transcribed). Read it to reconcile your own usage accounting against ours.

Credits and spend caps

  • New accounts include a starter credit balance.
  • Per-key budgets — set a monthly spend cap on any key in the console.
  • Org credit gate — when prepaid credit is exhausted, billed calls return 402 until you top up.

Sandbox tier (no billing)

A pyai_test_ key works instantly against production models with hard daily caps (requests/day, concurrent sessions, audio minutes/day) and never touches billing. Use it for evals and CI so a first call never hits the credit gate.

402 semantics

A 402 means a billing limit was reached — it is not a broken key:
CodeMeaningWhat to do
credit_exhaustedOrg out of prepaid creditAdd credit, or use a pyai_test_ key
key_budget_exceededPer-key monthly cap reachedRaise the key’s budget
insufficient_quotaPlan quota exhaustedUpgrade the plan
Do not retry a 402 — the call will keep failing until the underlying limit changes. See Errors & limits for the full catalog.