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

# Gemini 3.1 Flash Lite Image 参数

> 正确设置 Lite 模型的 1K 图片尺寸、响应模态和内联编辑输入。

| 项目               | 当前规则                          |
| ---------------- | ----------------------------- |
| 模型 ID            | `gemini-3.1-flash-lite-image` |
| `imageSize`      | 省略或使用大写 `1K`                  |
| `2K` / `4K`      | 不支持                           |
| `aspectRatio`    | 可选；YingTu 已验证 `1:1`           |
| `candidateCount` | 省略或设为 `1`                     |
| 单次价格             | USD 0.025                     |

```json theme={"system"}
{
  "contents": [{
    "role": "user",
    "parts": [{"text": "适合移动端卡片的方形插画"}]
  }],
  "generationConfig": {
    "responseModalities": ["TEXT", "IMAGE"],
    "imageConfig": {"aspectRatio": "1:1", "imageSize": "1K"}
  }
}
```

编辑时把指令和来源图片放入同一个 `parts` 数组。实测支持更换背景，并以 PNG
返回 1024 × 1024 结果。

<Warning>`imageSize` 区分大小写；不要传 `1k`、`1024px`、`2K` 或 `4K`。</Warning>

即使请求了 `TEXT`，响应也可能只有图片 part。请扫描全部 parts，并按返回 MIME 保存。
