- OpenAI通用接口
- gemini
- Midjourney API文档
- Flux(文生图)
- Replicate格式
- OpenAI DallE3格式POST
- Runway视频接口
- Luma视频接口
- 可灵API(官方接口)
- 工作流接口
- suno
- ideogram
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?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--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