POST
/
v3
/
async
/
flux-1-kontext-max
FLUX.1 Kontext Max
curl --request POST \
  --url https://api.novita.ai/v3/async/flux-1-kontext-max \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "prompt": "<string>",
  "image": "<string>",
  "seed": 123,
  "guidance_scale": 123,
  "safety_tolerance": "<string>"
}'
{
  "task_id": "<string>"
}
FLUX.1 Kontext [max] 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.
seed
integer
The random seed to use for the generation. Range [-1 ~ 2147483647].
guidance_scale
number
The guidance scale to use for the generation. Default is 3.5. Range [1.0 ~ 20.0].
safety_tolerance
string
The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. Default is 2.
Enum: 1, 2, 3, 4, 5

Response

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