Flux creation (OpenAI dall-e-3 format)
Given a prompt and/or an input image, the model will generate a new image.Create an image based on the prompts. Request
Body Params application/json
{
"model": "flux-context-pro",
"prompt": "a beautiful landscape with a river and mountains",
"n": 1,
"aspect_ratio": "21:9"
}
Request Code Samples
curl --location '/v1/images/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "flux-context-pro",
"prompt": "a beautiful landscape with a river and mountains",
// "size": "1024x1524",
"n": 1,
"aspect_ratio": "21:9"
}'
Responses
application/json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Modified at 2026-09-23 08:28:57