Flux-Dev
POST
/302/submit/flux-devCreated by black forest labs, founded by former Stability.ai members, for image generation, from: https://blackforestlabs.ai/
Average runtime 5-10s
Price: 0.05 PTC / call
请求参数
Header 参数
Authorization
string
必需
API Key for 302.AI backend
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
image_size
object
可选
width
integer
必需
height
integer
必需
num_inference_steps
integer
可选
guidance_scale
number
可选
示例
{
"prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture.",
"image_size": {
"width": 1024,
"height": 1024
},
"num_inference_steps": 28,
"guidance_scale": 3.5
}
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
completed_at
string
必需
created_at
string
必需
error
string
必需
id
string
必需
model
string
必需
output
string
必需
started_at
string
必需
status
string
必需
示例
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
最后修改时间: 2 个月前