Flux-Pro
POST
/302/submit/flux-proCreated by black forest labs, founded by former Stability.ai members, for image generation, from: https://blackforestlabs.ai/
Average runtime 5-10s
Price: 0.1 PTC / call
请求参数
Header Params
Authorization
string
required
API Key for 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
image_size
object
optional
width
integer
required
height
integer
required
num_inference_steps
integer
optional
guidance_scale
number
optional
Example
{
"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
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
completed_at
string
required
created_at
string
required
error
string
required
id
string
required
model
string
required
output
string
required
started_at
string
required
status
string
required
Example
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Last modified: 2 个月前