Flux 创建(OpenAI dall-e-3格式)
概览
- 方法: POST
- 地址: https://api.winfull.cloud-ip.cc/v1/images/generations
- 简介: 图片给定提示和/或输入图像,模型将生成新图像。相关指南:图像生成根据提示创建图像。
认证
- Header: Authorization: Bearer
<token>
请求参数
- Header: Authorization: Bearer
<token> - Body 类型: application/json
{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
// "size": "1024x1524",
"n": 1,
"aspect_ratio": "21:9"
}请求示例
curl --location --request POST 'https://api.winfull.cloud-ip.cc/v1/images/generations' \
--header 'Authorization: Bearer ' \
--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"
}'返回示例
🟢200Create image 示例
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}最后更新:2025-11-14 15:11:18
