创建任务 black-forest-labs/flux-kontext-max
POST https://aiapi.winfull.top/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions 官方文档: https://replicate.com/black-forest-labs/flux-kontext-max
请求参数
Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Header 参数 生成代码 Body 参数application/json 生成代码 示例
{
"input": {
"prompt": "Make the letters 3D, floating in space on a city street",
"input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
"aspect_ratio": "match_input_image",
"output_format": "jpg",
"safety_tolerance": 2,
"prompt_upsampling": false
}
}请求示例代码
Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell
curl --location --request POST 'https://aiapi.winfull.top/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"prompt": "Make the letters 3D, floating in space on a city street",
"input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
"aspect_ratio": "match_input_image",
"output_format": "jpg",
"safety_tolerance": 2,
"prompt_upsampling": false
}
}'返回响应
🟢200成功 application/json生成代码 Body 生成代码 示例
{
"id": "5pcmjq6sfnrmc0cram79p95eg4",
"model": "black-forest-labs/flux-kontext-max",
"version": "hidden",
"input": {
"aspect_ratio": "match_input_image",
"input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
"output_format": "jpg",
"prompt": "Make the letters 3D, floating in space on a city street",
"prompt_upsampling": false,
"safety_tolerance": 2
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-29T07:21:33.309Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/5pcmjq6sfnrmc0cram79p95eg4/cancel",
"get": "https://api.replicate.com/v1/predictions/5pcmjq6sfnrmc0cram79p95eg4",
"stream": "https://stream.replicate.com/v1/files/bcwr-o4bl6hrud4sg7ceoi45imkh7lq32nbyqvnsyg736v7ghpxwqxheq",
"web": "https://replicate.com/p/5pcmjq6sfnrmc0cram79p95eg4"
}
}修改于 2025-07-30 05:04:24
