TokenAgents / API Docs

Nano Banana

支持文生图与图生图的多用途模型。

Replicategoogle/nano-bananatext-to-imageimage-to-image

Nano Banana

支持文生图与图生图的多用途模型。

Provider
Replicate
模型 ID
google/nano-banana
适用场景
text-to-image / image-to-image
模型信息
当前模型在 TokenAgents 中的映射说明。
模型 ID
google/nano-banana
Provider
Replicate
Credits
text-to-image:2 credits
image-to-image:4 credits
Shell 调用示例
按当前模型直接调用的 curl 模板。
curl
curl -X POST "{{baseUrl}}/api/ai/generate" \
  -H "Content-Type: application/json" \
  -H "Cookie: {{sessionCookie}}" \
  -d '{
    "provider": "replicate",
    "mediaType": "image",
    "scene": "image-to-image",
    "model": "google/nano-banana",
    "prompt": "Turn this reference into a polished product poster",
    "options": {
      "referenceImages": ["{{uploadedImageUrl}}"]
    }
  }'
使用建议
  • 图生图需上传参考图。