快稳稳-全链路API聚合
  1. 文生图接口
快稳稳-全链路API聚合
  • 项目说明
  • 发出请求
  • 模型接口
    • OpenAI
      • 文本生成
      • 图片生成(dall-e-3)
      • 图片生成(gpt-image-1)
      • 函数调用【Function calling】
      • response_format
      • N测试【N参数】
      • Responses接口
      • 联网搜索
      • 图片编辑(网页版)
      • Audio接口(输入)
      • Audio接口(输出)
      • 文本转语音(TTS)
      • 语音转文本(STT)whisper-1
      • 语音转文本(STT)gpt-4o-transcribe
      • 向量-创建文本嵌入
      • 向量-批量创建嵌入
    • Anthropic
      • 文本生成
      • 函数调用
      • 文本生成(v1/messages)
      • 文本生成(强制返回思考)
      • Web search(联网搜索)
    • Google
      • 文本生成
      • 函数调用
      • 文本生成(强制返回思考)
      • 联网搜索
      • 音频理解
      • 视频理解
      • 全能多模态版本
      • 视频生成 /chat
    • GPTs相关
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
      • GPTs对话
      • 搜索相关 GPTs
      • 查询 GPTs 详情
    • 文生音乐
      • Udio(Chat格式)
    • 文生视频
      • 文生视频(可灵)
      • 智谱清言GLM
      • 文生视频(runway)
      • 文生视频(luma)
    • 文生图接口
      • recraftv3
        POST
      • flux
        POST
      • ideogram
        POST
      • stable-diffusion(OpenAI图像格式)
        POST
    • Midjourney
      • Midjourney接入向导
      • 补充 其他参数以及回调
  • Python配置方式
    • Python基础对话
    • Python使用gpt-4o识别图片
    • Python使用Claude识别图片
  • 帮助中心
    • 常见问题及解决办法
  1. 文生图接口

flux

主站接口
https://api.kwwai.top/v1
主站接口
https://api.kwwai.top/v1
POST
https://api.kwwai.top/v1
/images/generations
最后修改时间:2025-06-21 07:54:44
image_size Available options: 1024x1024, 512x1024, 768x512, 768x1024, 1024x576, 576x1024
seed Required range: 0 < x < 9999999999
prompt_enhancement: default: false(Rewrite prompts into detailed, model-friendly versions when switched on.)

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string 
必需
所需图像的文本描述。最大长度为 1000 个字符。
n
integer 
可选
要生成的图像数。必须介于 1 和 10 之间。
size
string 
可选
生成图像的大小。必须是256x256、512x512或 1024x1024之一。
示例
{
    "model": "black-forest-labs/flux-schnell",
    "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
    "go_fast": true,
    "num_outputs": 1,
    "aspect_ratio": "1:1",
    "output_format": "webp",
    "output_quality": 80
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.kwwai.top/v1/images/generations' \
--header 'Authorization: Bearer sk-s2SfI00pQXDYMXHWQclaK8Epf27Jb1vQch1zqKgEMUTBNTWf' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "black-forest-labs/flux-schnell",
    "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
    "go_fast": true,
    "num_outputs": 1,
    "aspect_ratio": "1:1",
    "output_format": "webp",
    "output_quality": 80
}'

返回响应

🟢200Create image
application/json
Body
created
integer 
必需
data
array [object {1}] 
必需
url
string 
必需
示例
{
    "created": 1589478378,
    "data": [
        {
            "url": "https://..."
        },
        {
            "url": "https://..."
        }
    ]
}
修改于 2025-06-21 07:54:44
上一页
recraftv3
下一页
ideogram
Built with