-
Async images and video: respond-async, polling and webhooks
How to get an image or a video without holding a connection open. Send Prefer, get a 202, then poll GET /v1/generations/{id} or GET /v1/videos/{id}, or receive a webhook.
-
Check your balance from code with GET /v1/credits
-
Errors you can act on
-
Every request has an ID you can quote
-
Retry safely with Idempotency-Key
-
Call any model with the OpenAI SDK