> ## 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 Pro Image 参数

> 配置 Nano Banana Pro 的 1K、2K、4K 请求，并为大尺寸 Base64 响应预留资源。

| 项目               | 当前规则                          |
| ---------------- | ----------------------------- |
| 模型 ID            | `gemini-3-pro-image`          |
| `imageSize`      | `1K`、`2K`、`4K`；省略按 1K         |
| `aspectRatio`    | 可选；已实测 `1:1`                  |
| `candidateCount` | 省略或设为 `1`                     |
| 1K/2K/4K 价格      | USD 0.050/USD 0.050/USD 0.090 |

```json theme={"system"}
{
  "contents": [{"role": "user", "parts": [{"text": "网格严谨、文字区域清楚的展览海报"}]}],
  "generationConfig": {
    "responseModalities": ["TEXT", "IMAGE"],
    "imageConfig": {"aspectRatio": "1:1", "imageSize": "4K"}
  }
}
```

## 大响应处理

实测 4K JPEG 解码后约 7.4 MB，JSON 中的 Base64 会更大。客户端、反向代理和日志系统
都要为此预留空间；不要把完整响应写入普通日志。短超时调用方应使用异步方法。

图片编辑仍使用 `inlineData`，来源 MIME 必须与字节一致。

<Warning>先用 1K 或 2K 验证提示词，只有最终交付需要时才发送 4K。</Warning>
