Endpoint
Request body
| Field | Type | Description |
|---|---|---|
model | string | Image model id, or auto |
prompt | string | Required text prompt |
response_format | string | b64_json (default) or url |
width / height | number | Optional when supported |
seed | number | Optional |
negative_prompt | string | Optional |
Example
Response
response_format is url, each item uses a data URL string in url.
Requires the images scope on the API key. Charges credits.