> ## 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 Pro

FLUX.1 Kontext Pro 是一款在提升提示词遵循度和字体生成一致性的同时，依然保持高效速度且适合编辑需求的模型

## 请求头

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式: Bearer \{\{API 秘钥}}。
</ParamField>

## 请求体

<ParamField body="prompt" type="string" required={true}>
  用于生成图像的提示词。
</ParamField>

<ParamField body="images" type="string[]" required={false}>
  用于生成图像的图片列表。最多支持 4 张图片。
</ParamField>

<ParamField body="guidance_scale" type="number" required={false}>
  引导系数，用于控制生成。默认值为 3.5。取值范围：\[1.0 \~ 20.0]。
</ParamField>

<ParamField body="aspect_ratio" type="string" required={false}>
  生成图像的宽高比。<br />
  可选：`21:9`、`16:9`、`4:3`、`3:2`、`1:1`、`2:3`、`3:4`、`9:16`、`9:21`
</ParamField>

<ParamField body="seed" type="integer" required={false}>
  随机种子。默认值为 -1，-1 表示使用随机种子。取值范围：\[-1 \~ 2147483647]。
</ParamField>

<ParamField body="safety_tolerance" type="string" required={false}>
  仅在文生图模式下支持。<br />
  生成图像的安全容忍等级，1 为最严格，5 为最宽松，默认值为 2。<br />
  可选：`1`、`2`、`3`、`4`、`5`
</ParamField>

## 响应信息

<ResponseField name="task_id" type="string" required={true}>
  异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/docs/models/reference-get-async-task-result) 以获取生成结果
</ResponseField>
