flux生成图像
POST
{{BASE_URL}}/flux/submit
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
width
integer
必需
height
integer
必需
示例
{
"prompt": "千智",
"width": 512,
"height": 512
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/flux/submit' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "千智",
"width": 512,
"height": 512
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
示例
{
"id": "8pjvh3rv41rm20ch50ys5n148w"
}
修改于 2025-03-28 12:56:11