Skip to content

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

  1. Your app sends a request with a model id and parameters.
  2. Pixapi estimates whether the account has enough credits.
  3. The model provider is called.
  4. Credits are consumed after successful output, or according to the model-specific task policy.

Cost examples

Model familyTypical unitNotes
gemini-2.5-flash-imageper imageFast image generation and editing.
gemini-3.1-flash-lite-imageper imageFastest and lowest-cost Gemini 3.1 Flash Lite Image image generation.
gemini-3.1-flash-image-previewper imageBalanced Gemini image generation with aspect-ratio control.
gemini-3-pro-image-previewper imagePremium Gemini image generation and editing.
gpt-image-1.5per imageHigher-quality image generation can cost more at larger sizes.
veo3.1-lite / veo3.1-fast / veo3.1-qualityper second × resolutionCost depends on model, seconds, and resolution.
seedance-2 / seedance-2-fast / seedance-2-miniper second × resolutionCost depends on model, seconds, and resolution.
kling-3.0-turbo / kling-v3 / kling-v3-omniper second × resolutionCost depends on model, seconds, and resolution.
wan2.6 / wan2.6-flashper second × resolutionCost depends on model, seconds, and resolution.
grok-video-3 / grok-video-1.5-previewper second × resolutionCost depends on model, seconds, and resolution.
happyhorse-1.1per second × resolutionCost 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.