> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX.1 Kontext Max

FLUX.1 Kontext Max is a model that improves prompt adherence and font generation consistency while maintaining high efficiency and speed, making it well-suited for editing needs.

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="prompt" type="string" required={true}>
  The prompt used to generate the image.
</ParamField>

<ParamField body="images" type="string[]" required={false}>
  A list of images used to generate the image. Supports up to 4 images.
</ParamField>

<ParamField body="seed" type="integer" required={false}>
  Random seed. The default value is -1, where -1 means using a random seed. Value range: \[-1 \~ 2147483647].
</ParamField>

<ParamField body="guidance_scale" type="number" required={false}>
  Guidance scale, used to control generation. The default value is 3.5. Value range: \[1.0 \~ 20.0].
</ParamField>

<ParamField body="safety_tolerance" type="string" required={false}>
  Supported only in text-to-image mode.<br />
  The safety tolerance level for generated images, where 1 is the strictest and 5 is the most lenient. The default value is 2.<br />
  Options: `1`, `2`, `3`, `4`, `5`
</ParamField>

<ParamField body="aspect_ratio" type="string" required={false}>
  The aspect ratio of the generated image.<br />
  Options: `21:9`, `16:9`, `4:3`, `3:2`, `1:1`, `2:3`, `3:4`, `9:16`, `9:21`
</ParamField>

## Response Information

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to obtain the generation result.
</ResponseField>
