Flux Tạo hình ảnh (định dạng OpenAI dall-e-3)
Dựa trên gợi ý và/hoặc hình ảnh đầu vào, mô hình sẽ tạo ra hình ảnh mới.Tạo hình ảnh dựa trên gợi ý. Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
"n": 1,
"aspect_ratio": "21:9"
}
Request Code Samples
curl --location --request POST '/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
// "size": "1024x1524",
"n": 1,
"aspect_ratio": "21:9"
}'
Responses
application/json {
"created": 0,
"data": [
{
"url": "string"
}
]
}
Modified at 2025-09-23 03:05:47