Billing, quotas and PAYG
Every generation request passes through quota, PAYG and rate-limit checks before model routing starts.
Request lifecycle
- Authenticate the API key
The request is attached to a customer account and API key.
- Resolve the public model
The public
modelID is checked against enabled catalog entries and plan access. - Decide billing
Subscription quota is reserved first. If unavailable and PAYG is enabled, wallet eligibility is checked before upstream and authoritative usage is debited after completion.
- Call the model route
The request is routed only after billing and rate-limit checks pass.
- Settle usage
Final usage settles subscription quota or debits PAYG. Failed requests are not charged and their quota reservations are released.
Quota and PAYG rules
- Subscription plans use fixed
5hand7dquota windows that start with the first successful request. - Each model can consume a different request multiplier per API call.
- PAYG fallback requires wallet credit and account-level PAYG enabled.
- Streaming PAYG requires final usage data to settle correctly.
Rate limits
- Account-level and API-key-level limits are enforced per minute.
- A
429response means the request was blocked before generation. - Create separate keys per integration to make rate-limit diagnostics easier.