创建任务-black-forest-labs/flux-kontext-max
方法: POST路径: /replicate/v1/models/black-forest-labs/flux-kontext-max/predictions
https://replicate.com/black-forest-labs/flux-kontext-max
请求参数
Header 参数
text
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}Body 参数 application/json
text
input
object
必需
prompt
string
必需
input_image
string
必需
aspect_ratio
string
必需
示例
{
"input"
:
{
"prompt"
:
"string"
,
"input_image"
:
"string"
,
"aspect_ratio"
:
"string"
}
}请求示例代码
Shell
bash
curl --location --request POST '/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"prompt": "string",
"input_image": "string",
"aspect_ratio": "string"
}
}'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{}