Skip to content
EN

创建任务-flux-kontext-max

方法: POST路径: /bfl/v1/flux-kontext-max

官方文档: https://docs.bfl.ai/api-reference/tasks/edit-or-create-an-image-with-flux-kontext-pro#body-input-image

请求参数

Header 参数

text
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 application/json

text
prompt
string
必需
示例
{
"prompt"
:
"string"
}

请求示例代码

Shell

bash
curl --location --request POST '/bfl/v1/flux-kontext-max' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "string"
}'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
id
string
必需
polling_url
string
必需

示例

json
{"id":"b9b172a8-e39c-47b2-8f1a-cb8925f3532e","polling_url":"https://api.us1.bfl.ai/v1/get_result?id=b9b172a8-e39c-47b2-8f1a-cb8925f3532e"}