Skip to content

Why do some API quotes show price_usd while video quotes show only credits?

Image and chat retail quotes can include price_usd and a USD list-credit reference. H3 video quotes currently return their calculated credits and balance without that same retail USD field. Do not assume a missing field means the video is free, nor interpret an internal provider cost as the customer selling price. Use the documented credit quote.

UNDERSTAND API CREDITS AND COSTSAISwapLab team · Editorial methodUpdated 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Handle optional fields explicitly; Calculate allocation when needed; Keep version context.
Workflow diagram: Handle optional fields explicitly → Calculate allocation when needed → Keep version context. Read the article for evidence and limits.

Quote shapes differ by model pricing method

Images have configured per-image retail rates, chat estimates input and output token ceilings, and video uses duration and quality cost inputs converted into credits. Your client should validate the response for the selected model rather than require every optional field on every route or silently substitute zero when one is absent.

What to do next

  1. 01

    Handle optional fields explicitly

    Read credits and balance as the central approval information. For image or text, display price_usd only when the response actually supplies a valid number.

  2. 02

    Calculate allocation when needed

    For a video budget, use the chosen listed pack's USD-per-credit allocation and label it as such. Do not invent a direct per-call card payment or upstream invoice figure.

  3. 03

    Keep version context

    Read the current credit denomination from catalog or usage and store it with the quote. Avoid comparing old unit amounts from screenshots without conversion.

A concrete example

Illustrative parser error: a dashboard uses quote.price_usd || 0 for all models and displays free for H3. The correct interface displays the returned video credits and a separately labeled pack allocation where appropriate.

Before you call it ready

  • Missing optional USD fields are not treated as zero cost.
  • The model-specific quote shape is handled.
  • Retail allocation and supplier cost are separate.

When to stop or choose another method

If the response lacks information your product requires for spending approval, stop and obtain a supported estimate. Do not fabricate a currency value merely to fill a UI field.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation