Skip to main content

When you are charged

  • You pay only for images that are delivered.
  • Refused or failed jobs are not charged.
  • The price is fixed by model and size tier. See Models and pricing.
  • Your balance is prepaid. When it runs out, requests fail with 403 until your manager tops it up.

Check what a request cost

Every response, success or error, carries a request ID header:
Look up the charge for that ID. This endpoint needs no key:
The response has a few more fields. Use cost_usd. An unknown ID, or a request that was not charged, returns:
Log the X-Oneapi-Request-Id of every request next to your own order or job ID. It is the fastest way to reconcile invoices and to ask support about a charge.
Read the header with the OpenAI Python SDK:

Error format

Errors use the OpenAI shape. The message ends with the request ID:

Error codes

Retry rules

  • Retry 502 and 503 with a backoff, for example 30 s, then 60 s, then 120 s.
  • Do not retry 400, 401 or 403 without fixing the cause.
  • Do not retry after a client timeout. See Response time and timeouts.