4Z API

创建任务 black-forest-labs/flux-kontext-dev

接口: POST https://4zapi.com/replicate/v1/models/black-forest-labs/flux-kontext-dev/predictions

官方文档: https://replicate.com/black-forest-labs/flux-kontext-dev

参数

  • Authorization (header, string): Bearer API Key

请求体 (application/json)

  • input (object): 输入内容

请求示例

{
  "input": {
    "aspect_ratio": "match_input_image",
    "go_fast": true,
    "guidance": 2.5,
    "input_image": "https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg",
    "num_inference_steps": 30,
    "output_format": "jpg",
    "output_quality": 80,
    "prompt": "Change the car color to red, turn the headlights on"
  }
}