Inference
Create image
Creates an image based on the provided text prompt.
post/v1/images/generations
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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
Changes
No recorded changes to this operation across all 1 revision of this API.