Appearance
Billing and credits
Pixapi meters model usage with credits. A request may consume credits based on the selected model, output count, resolution, duration, quality, and provider cost.
Credit lifecycle
- Your app sends a request with a model id and parameters.
- Pixapi estimates whether the account has enough credits.
- The model provider is called.
- Credits are consumed after successful output, or according to the model-specific task policy.
Cost examples
| Model family | Typical unit | Notes |
|---|---|---|
gemini-2.5-flash-image | per image | Fast image generation and editing. |
gemini-3.1-flash-lite-image | per image | Fastest and lowest-cost Gemini 3.1 Flash Lite Image image generation. |
gemini-3.1-flash-image-preview | per image | Balanced Gemini image generation with aspect-ratio control. |
gemini-3-pro-image-preview | per image | Premium Gemini image generation and editing. |
gpt-image-1.5 | per image | Higher-quality image generation can cost more at larger sizes. |
veo3.1-lite / veo3.1-fast / veo3.1-quality | per second × resolution | Cost depends on model, seconds, and resolution. |
seedance-2 / seedance-2-fast / seedance-2-mini | per second × resolution | Cost depends on model, seconds, and resolution. |
kling-3.0-turbo / kling-v3 / kling-v3-omni | per second × resolution | Cost depends on model, seconds, and resolution. |
wan2.6 / wan2.6-flash | per second × resolution | Cost depends on model, seconds, and resolution. |
grok-video-3 / grok-video-1.5-preview | per second × resolution | Cost depends on model, seconds, and resolution. |
happyhorse-1.1 | per second × resolution | Cost depends on seconds and resolution. |
Use the live pricing page for current plan limits and credit packages. Review account balance in Credits and subscription details in Billing.
Refunded credits
If a generation task fails after credits were consumed or reserved, Pixapi returns the affected credits to the account and marks the ledger row as Refunded. See Image generation failures for common failure causes and retry guidance.
Insufficient credits
If the account does not have enough credits, Pixapi returns:
json
{
"error": {
"code": "insufficient_credits",
"message": "Not enough credits for this request."
}
}Your application should show Credits, Billing, or an upgrade action instead of retrying automatically.
