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

# 公开模型

> 当前 EggAPI 公开发布的唯一生成模型

当前已发布的公开目录只有一个可见模型：**nano-banana**。调用 API 时请使用后端模型 ID `nanobanana`。

| 前台公开名称 | API `model` 值 | 类型 | 任务类型 | 基础单价 |
| - | - | - | - | - |
| `nano-banana` | `nanobanana` | 图片 | `image_generate`、`image_edit` | 每张输出图 `$0.0100` |

<Note>
  后端代码里仍保留了更多内部/兜底模型配置，但它们当前没有在公开发布目录中开放，因此不会作为公开 API 选项写进文档。
</Note>

## 路由和供应商

Go backend 是网关、调度器、账本和任务中心。一次生成请求会被鉴权、入队、按当前上游供应商配置路由、计费、写入 usage，并在需要时发送 webhook。

Runtime provider routes 由 admin 系统管理。本次重写文档时，数据库发布配置中公开目录只有 nano-banana，runtime route 表为空，所以文档不会宣传其他公开模型。

## 参数

<ParamField body="model" type="string" required>
  使用 `nanobanana`。
</ParamField>

<ParamField body="prompt" type="string" required>
  提示词。最少 1 个字符，最多 2000 个字符。
</ParamField>

<ParamField body="negative_prompt" type="string">
  可选，描述需要避免的内容。最多 1000 个字符。
</ParamField>

<ParamField body="aspect_ratio" type="string">
  `16:9` 或 `9:16`。默认 `16:9`。
</ParamField>

<ParamField body="num_outputs" type="integer">
  输出图片数量，范围 `1` 到 `4`。默认 `1`。计费按实际返回图片数量累乘。
</ParamField>

<ParamField body="resolution" type="string">
  可选 `1k`、`2k` 或 `4k`。后端接受该字段；公开 nano-banana 使用时应按具体 provider 行为理解。
</ParamField>

<ParamField body="image_urls" type="string[]">
  传入一个或多个图片 URL 会进入 `image_edit` 模式。最多接受 9 个 URL。
</ParamField>

<ParamField body="webhook_url" type="string">
  可选 HTTPS 回调地址。Worker 完成后，EggAPI 会发送 `task.completed` 或 `task.failed` 事件。
</ParamField>

## 模型指南

<CardGroup cols={1}>
  <Card title="nanobanana" icon="image" href="/docs/zh/guides/models/nanobanana">
    使用公开 nano-banana 模型进行图片生成和图片编辑。
  </Card>
</CardGroup>


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