- 发出请求
- 模 型接口
- 聊天接口(Chat)
- 自动补全接口(Completions)
- 图像接口(Images)
- 向量生成接口(Embeddings)
- 音频接口(Audio)
- Suno音乐接口
- Luma视频接口
- SD图像接口
- 帮助中心
- SDXL & SD1.6
- styles
- images
- 视频生 成
- 任务管理
- 内容补全接口POST
- 获取音乐GET
- 获取音乐GET
- flux-pro-1.1POST
- flux-proPOST
- flux-devPOST
- flux-查询GET
- Generate(文生图)POST
- Remix(混合图)POST
- Upscale(放大高清)POST
- Describe(描述)POST
- 图像生成POST
- 文生视频POST
- 图生视频POST
- 查询任务GET
- 图片描述POST
- 文生图POST
- 合成图POST
- 放大图片POST
- ideogram任务查询POST
flux-pro
POST
/v1/flux-pro
请求参数
Header 参数
Authorization
string
必需
示例值:
123456
Body 参数application/json
prompt
string
必需
width
integer
必需
height
integer
必需
steps
integer
必需
prompt_upsampling
boolean
必需
seed
integer
必需
guidance
number
必需
safety_tolerance
integer
必需
interval
integer
必需
output_format
string
必需
示例
{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/flux-pro' \
--header 'Authorization: 123456' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
示例
{
"id": "string"
}
修改于 2025-02-19 06:58:42