Pay-As-You-Go Billing Override (API)
This override forces a request to be treated as paid (pay-as-you-go), even when the user has an active subscription and the model is subscription-included. It is intended for API documentation and support.What It Does
- Forces a request to be treated as paid (pay-as-you-go).
- Bypasses subscription coverage for that request.
- Allows provider selection on subscription-included models when the model supports provider selection.
- Applies provider selection markup when a provider is explicitly chosen.
- Does not change which models support provider selection.
When to Use It
Usebilling_mode: "paygo" when:
- A subscriber wants to select a specific upstream provider for a model.
- A subscriber wants to pay per-request even if the model is normally covered by subscription.
Supported Inputs
HeaderX-Billing-Mode: paygo(header name is case-insensitive)x-billing-modeis also accepted
"billing_mode": "paygo"- Alias:
"billingMode": "paygo"
paygopay-as-you-gopay_as_you_gopaidpayg
API Examples
Chat Completions:Provider Selection Notes
- Provider selection only works for models that support it.
- If a model does not support provider selection,
X-Provideris ignored. - For provider-selectable models, the request is treated as paid and provider selection markup applies when a provider is explicitly chosen.
Subscription and Limits Behavior
Whenbilling_mode: "paygo" is set:
- The request is not eligible for subscription coverage.
- Subscription quota is not consumed.
- Pay-as-you-go balance checks apply as normal.
subscription.enablePaidModelsApi is false, the request is rejected (same as any other paid API request).