Generate(生成图片)
POST
/flux/v1/{model}官方文档:https://api.bfl.ml/scalar#tag/tasks/POST/v1/flux-pro
请查看官方文档,所有参数和官方文档一致。
官方价格:https://docs.bfl.ml/pricing/
价格:(和官方一致)
[flux-pro-1.1-ultra] 0.06 PTC/image
[flux-pro-1.1] 0.04 PTC/image
[flux-pro] 0.05 PTC/image
[flux-dev] 0.025 PTC/image
[flux-pro-1.0-fill] 0.05 PTC/image
[flux-pro-1.0-canny] 0.05 PTC/image
[flux-pro-1.0-depth] 0.05 PTC/image
[flux-pro-1.1-ultra-finetuned] 0.07 PTC/image
[flux-pro-1.0-finetuned] 0.06 PTC/image
[flux-pro-1.0-depth-finetuned] 0.06 PTC/image
[flux-pro-1.0-canny-finetuned] 0.06 PTC/image
[flux-pro-1.0-fill-finetuned] 0.06 PTC/image
请求参数
Path 参数
model
string
必需
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
object {0}
示例1
{
"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"
}
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
images
array [object {4}]
必需
url
string
可选
width
integer
可选
height
integer
可选
content_type
string
可选
timings
object
必需
seed
integer
必需
has_nsfw_concepts
array[boolean]
必需
prompt
string
必需
示例
{
"images": [
{
"url": "string",
"width": 0,
"height": 0,
"content_type": "string"
}
],
"timings": {},
"seed": 0,
"has_nsfw_concepts": [
true
],
"prompt": "string"
}
最后修改时间: 2 个月前