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
- 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.
- 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.
- 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.
