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

# Flux Kontext

> 使用 Flux Kontext 生成图像

## 说明

Flux Kontext 图像生成模型，通过异步任务方式返回结果。

## 请求示例

```bash cURL theme={null}
curl https://api.qclawrouter.com/v1/images/generations \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-kontext",
    "prompt": "A beautiful sunset over the ocean",
    "n": 1
  }'
```

## 返回示例

```json theme={null}
{
  "task_id": "task_xxx",
  "status": "pending"
}
```

提交后使用 task\_id 查询结果，详见[获取图片任务状态](/docs/cn/api-reference/task/get-image-task)。
