Skip to content

Flux 创建(OpenAI dall-e-3格式)

概览

认证

  • 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

🚀 伝富AI-API文档 - 强大的AI接口平台