Basic request
With system prompt
Streaming
List models
Check rate limits
Generating images and videos
Image models use a separate async endpoint. POST to/v1/images/generations, get a job id back, poll /v1/jobs/{id} until status is succeeded.
recraft-v4, ideogram-v3, or flux-kontext-pro with an image_url). /v1/videos/generations takes the same shape plus duration_s, with veo-3.1-fast.