智能体Code
当前开放模型

图片生成模型列表

这里展示本站当前可供用户调用的模型 ID、已验证宽高比和单张价格。应用接入时请使用下方模型 ID,不需要进入管理员后台查看分组配置。

4

当前开放模型

41

已验证可选比例

generations / edits

支持文生图和图生图

gpt-image2-1K

Standard image generation and reference-image editing for common assets, avatars, product shots, and vertical materials.

1:1 5:4 9:16 21:9 16:9 3:2 4:3 4:5 3:4 2:3

All listed ratios have passed real generation requests.

RMB 0.03per image
gpt-image2-4K

新版 4K 原生接口直出,支持海报、商品主图、高分辨率视觉素材生成与参考图编辑。

1:1 5:4 9:16 21:9 16:9 4:3 2:3

All listed ratios have passed real generation requests.

RMB 0.05per image
nano-banana-2

Banana 2 through Tuba OpenAI-compatible image API, supports high-quality generation and editing.

1:1 1:4 1:8 2:3 3:2 3:4 4:1 4:3 4:5 5:4 8:1 9:16 16:9 21:9

All listed ratios have passed real generation requests, including the extreme 1:8 and 8:1 ratios.

RMB 0.10per image
nano-banana-pro

Banana Pro through Tuba OpenAI-compatible image API, supports premium commercial visuals and editing.

1:1 5:4 9:16 21:9 16:9 3:2 4:3 4:5 3:4 2:3

All listed ratios have passed real generation requests.

RMB 0.20per image

接口调用示例

curl https://www.chaomoapi.com/v1/images/generations \
  -H "Authorization: Bearer sk-xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image2-4K",
    "prompt": "高端智能水杯电商主图,白色背景,产品居中,柔和布光,高清质感",
    "ratio": "16:9",
    "quality": "medium",
    "response_format": "url",
    "n": 1,
    "async": true
  }'
curl https://www.chaomoapi.com/v1/images/edits \
  -H "Authorization: Bearer sk-xxxx" \
  -F "model=gpt-image2-4K" \
  -F "prompt=参考上传图片,生成更干净的商业摄影风格图片" \
  -F "ratio=16:9" \
  -F "quality=medium" \
  -F "response_format=url" \
  -F "n=1" \
  -F "async=true" \
  -F "image=@source.png"

4K、图生图和高质量模型可能超过 60 秒,生产接入建议传 async=true,再通过 GET /v1/images/{task_id} 查询结果。

查询模型 API

程序里也可以通过 GET /v1/models 查询当前密钥可用模型。返回结果只包含用户可调用的公开模型,不会返回内部路由别名。

curl https://www.chaomoapi.com/v1/models \
  -H "Authorization: Bearer sk-xxxx"

说明

当前平台仅开放图片生成能力;对话模型和文本接口没有开放。

联系方式:微信 zntcode