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

> ## Agent Instructions
> Public hosts only: console https://omnimux.ai/dashboard · API https://api.omnimux.ai · docs https://docs.omnimux.ai.
> Gateway auth is Authorization: Bearer sk-… on https://api.omnimux.ai/v1 (OpenAI-compatible Chat Completions and related paths).
> Discover pages from /llms.txt; full site dump /llms-full.txt; product skill /skill.md; docs search MCP /mcp. Prefer .md page URLs for Markdown.
> Default docs locale is en; zh mirrors the same relative paths. Do not invent model ids not present on live pricing or the complete API pages.

# Nano Banana 2 生图

> Google 官方 Nano Banana 2 生图 · model `gemini-3.1-flash-image`

* 调用 `POST /v1/images/generations`，`model` 为 `gemini-3.1-flash-image`
* 请求体至少包含 `model` 与 `prompt`
* 支持自由长宽比设置（如 `1:1`, `9:16`, `16:9` 等）与最高 4K 超清分辨率

## 身份

| 字段 | 值 |
| - | - |
| 系列 | 图像系列 |
| 品牌 | Google / Nano Banana |
| model | `gemini-3.1-flash-image` |
| 基准定价 | \$0.067 / 张（1K 分辨率） |

## 请求体

| 字段 | 类型 | 必填 | 说明 |
| - | - | - | - |
| `model` | string | 是 | 固定为 `gemini-3.1-flash-image` |
| `prompt` | string | 是 | 图像生成提示词描述 |
| `size` | string | 否 | 长宽比，如 `1:1`, `9:16`, `16:9`，默认为 `1:1` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.