POST
/
v3
/
async
/
flux-1-kontext-pro
FLUX.1 Kontext Pro
curl --request POST \
  --url https://api.novita.ai/v3/async/flux-1-kontext-pro \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "prompt": "<string>",
  "image": "<string>",
  "guidance_scale": 123,
  "aspect_ratio": "<string>"
}'
{
  "task_id": "<string>"
}
FLUX.1 Kontext [pro] is a model with greatly improved prompt adherence and typography generation meet premium consistency for editing without compromise on speed.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

prompt
string
required
The prompt to generate an image from.
image
string
required
The image to generate an image from.
guidance_scale
number
The guidance scale to use for the generation. Default is 3.5. Range [1.0 ~ 20.0].
aspect_ratio
string
The aspect ratio of the generated image.
Enum: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21

Response

task_id
string
required
Use the task_id to request the Task Result API to retrieve the generated outputs.