v1

latestOpenAPI 3.1.02026-07-261216083.9 KB
Images

Generate Image (v1)

Generate one or more images from a text prompt. Supports both synchronous and asynchronous modes.

post/v1/images/generations

Headers

x-api-keystring

Request body

modelstring required

Image generation model (e.g., flux-1-schnell)

promptstring required

The text prompt for image generation

qualitystring nullable

Provider-specific quality preset

sizestring nullable

Target image resolution (e.g., 1024x1024)

ninteger nullable

Number of images to generate

response_format'url' | 'b64_json'

Output format per image

stepsinteger nullable

Number of diffusion steps

seedinteger nullable

Random seed for reproducibility

negative_promptstring nullable

Negative prompt for image generation

guidancenumber nullable

Guidance scale for image generation

asyncboolean

Queue the request and return a task ID instead of waiting for the image result

Response

Successful Response

createdinteger required

Unix timestamp of request creation