Inference

Create image

Creates an image based on the provided text prompt.

post/v1/images/generations

Request

Request body

modelstring required
promptstring required
sizestring
ninteger

Example request

{
  "model": "black-forest-labs/FLUX.1-schnell",
  "n": 1,
  "prompt": "A serene mountain landscape at sunset with a lake reflecting the orange sky",
  "size": "1024x1024"
}

Response

createdinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.