Create Task Black Forest Labs/Flux Kontext Pro

official文档: https://replicate.com/black-forest-labs/flux-kontext-pro

Endpoint

POST http://v98store.com/replicate/v1/models/black-forest-labs/flux-kontext-pro/predictions

cURL Command

curl -X POST 'http://v98store.com/replicate/v1/models/black-forest-labs/flux-kontext-pro/predictions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "input": { "prompt": "Make this a 90s cartoon", "input_image": "https://replicate.delivery/pbxt/N55l5TWGh8mSlNzW8usReoaNhGbFwvLeZR3TX1NL4pd2Wtfv/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2, "prompt_upsampling": false } }'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

{
  "input": {
    "prompt": "Make this a 90s cartoon",
    "input_image": "https://replicate.delivery/pbxt/N55l5TWGh8mSlNzW8usReoaNhGbFwvLeZR3TX1NL4pd2Wtfv/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png",
    "aspect_ratio": "match_input_image",
    "output_format": "jpg",
    "safety_tolerance": 2,
    "prompt_upsampling": false
  }
}

Responses

200 -

Example

undefined