Skip to main content
Use your API key to call POST /v1/images/generations. Replace model with the image model ID shown on the Models page.
Common parameters: model and prompt are required; n controls the number of images; resolution and ratio control the output dimensions; response_format selects url or b64_json output.
You may also send additional parameters supported by the selected model’s upstream API. Parameter names, values, and limits vary by model; refer to the original documentation from that model’s upstream provider.