Chat Bp
  1. 工作流接口
Chat Bp
  • OpenAI通用接口
    • 聊天接口(Chat)
      • 聊天接口(OpenAI格式通用)
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
      • gpt-4-vision-preview
    • 图像接口(Images)
      • 图像生成
      • 图像编辑
      • 异步任务查询
    • 帮助中心
      • 常见问题及解决办法
  • gemini
    • Gemini多模态
      POST
  • Midjourney API文档
    • 快速教学-完整流程一遍过
    • 任务提交
      • 提交Imagine任务
      • 提交Action任务
      • 提交Blend任务
      • 提交Modal任务
      • 提交Describe任务
      • 提交Shorten任务
      • 提交SwapFace任务
      • 上传文件到discord
    • 任务查询
      • 指定id查询任务
      • 指定id列表查询任务
      • 获取任务图片的seed
  • Flux(文生图)
    • Replicate格式
      • 生成图片
      • 查询任务
    • OpenAI DallE3格式
      POST
  • Runway视频接口
    • 逆向
      • generate(文本)
      • generte(参考图片)
      • 查询单个任务
      • 查询任务列表
  • Luma视频接口
    • 视频生成
      POST
    • 视频扩展
      POST
    • 任务查询
      GET
  • 可灵API(官方接口)
    • 图像生成
    • 文生视频
    • 图生视频
    • 任务查询
  • 工作流接口
    • 艺术字
      POST
    • 艺术二维码
      POST
    • 风格转绘
      POST
    • 证件照
      POST
    • 高清放大
      POST
    • 模特换装
      POST
    • 局部重绘
      POST
    • 商品换背景
      POST
    • Flux-dev
      POST
    • 获取任务状态
      GET
  • suno
    • Suno 歌词生成
    • Suno 简单模式
    • Suno 进阶模式
    • suno 参考音乐模式
    • Suno 获取歌词
    • Suno 获取音乐
    • Suno 历史记录
    • Suno 用户删除记录
  • ideogram
    • Generate(文生图)
    • Remix(混合图)
    • Upscale(放大高清)
    • Describe(描述)
  1. 工作流接口

Flux-dev

POST
/cf/commit-task/Flux-dev

请求参数

Header 参数
Authorization
string 
必需
默认值:
{{Authorization}}
Body 参数application/json
checkpoint
string 
必需
lora_name
string 
Lora名称
必需
lora_weight
integer 
Lora权重
必需
positive
string 
提示词
必需
width
integer 
结果图片宽度
必需
height
integer 
结果图片高度
必需
batch_size
integer 
结果图片张数
必需
示例
{
  "checkpoint": "flux/麦橘超然majicFlus_v1.safetensors",
  "lora_name": "flux/FLUX.1-Turbo-Alpha.safetensors",
  "lora_weight": 1,
  "positive": "The image shows a young woman with long,flowing dark hair. She is wearing a light blue,ethereal gown and a delicate,ornate headpiece. Her eyes are closed and her hands are raised,with a soft blue light emanating around them. Her hair and the edges of her gown are blurred,indicating movement. There is also soft,golden light behind her hair,possibly caused by the sun. The overall tone is magical and serene.",
  "width": 768,
  "height": 1024,
  "batch_size": 1
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/cf/commit-task/Flux-dev' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "checkpoint":"flux/麦橘超然majicFlus_v1.safetensors",
    "lora_name":"flux/FLUX.1-Turbo-Alpha.safetensors",
    "lora_weight":1,
    "positive": "The image shows a young woman with long,flowing dark hair. She is wearing a light blue,ethereal gown and a delicate,ornate headpiece. Her eyes are closed and her hands are raised,with a soft blue light emanating around them. Her hair and the edges of her gown are blurred,indicating movement. There is also soft,golden light behind her hair,possibly caused by the sun. The overall tone is magical and serene.",
    "width":768,
    "height":1024,
    "batch_size": 1

}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
data
object 
必需
id
integer 
必需
task_id
string 
必需
message
string 
必需
示例
{
  "code": 200,
  "data": {
    "id": 2574,
    "task_id": "58d83085-4067-4df6-b656-70dbfd433ef5"
  },
  "message": "success"
}
修改于 2025-01-12 15:57:16
上一页
商品换背景
下一页
获取任务状态
Built with