Skip to main content
POST
Generate one image from a prompt

Body

application/json
prompt
string
aspectRatio
string

landscape, square or portrait. OpenAI has no aspect-ratio parameter, so these map to sizes.

provider
string

gemini or openai.

model
string

Response

200

{ url, alt } for the stored image, served from /generated-images/{fileName}.