← 返回
未分类 Key 中文

nano banana text to image in Atlas AI

Generates images from text prompts using AtlasCloud Nanobanana 2 model, requiring an AtlasCloud API token and specific JSON parameters without media_resolution.
使用 AtlasCloud Nanobanana 2 模型根据文本提示生成图像,需提供 AtlasCloud API token 和特定 JSON 参数,且不含 media_resolution。
guilherme-funchal guilherme-funchal 来源
未分类 clawhub v1.0.1 1 版本 99728.3 Key: 需要
★ 0
Stars
📥 367
下载
💾 0
安装
1
版本
#latest

概述

Atlas Nanobanana Text-to-Image 🍌

Generates images using the AtlasCloud Nanobanana 2 model (google/nano-banana-2/text-to-image).


Token Setup

Before generating images, you need the user's AtlasCloud API token.

  • Check memory for atlascloud_token.
  • If not found, ask the user: "Please provide your AtlasCloud API token to get started."
  • Save the token to memory as atlascloud_token so it is not needed again.

How to Generate an Image

Step 1: Write the params to {baseDir}/params.json.

Step 2: Run the script:

node {baseDir}/generate.js <TOKEN> {baseDir}/params.json

Step 3: In the script output, find the line that starts with IMAGE_URL: between the two rows of = signs:

============================================================
IMAGE_URL: https://atlas-media.oss-us-west-1.aliyuncs.com/images/xxxx.png
============================================================

> ⚠️ CRITICAL: Use exactly the URL that appears in the IMAGE_URL: line of this execution. Never use a URL from the conversation history, previous executions, or memory. Each execution generates a different URL.

Report this URL to the user.


params.json — Payload Correto

> ⚠️ IMPORTANT: Never include media_resolution in the payload — it causes an HTTP 500 error.

{
  "prompt": "descrição detalhada da imagem",
  "aspect_ratio": "16:9",
  "output_format": "png",
  "resolution": "2k",
  "enable_base64_output": false,
  "enable_sync_mode": false,
  "enable_web_search": false,
  "enable_image_search": false
}

Available fields

FieldRequiredDefaultOptions
------------
prompt✅ yesany text
aspect_rationo16:91:14:33:416:99:1621:9
resolutionno2k1k2k4k
output_formatnopngpngjpeg
enable_web_searchnofalsetruefalse
enable_image_searchnofalsetruefalseenable_base64_outputnofalsetruefalse
enable_sync_modenofalsetruefalse

> NÃO inclua media_resolution — causa erro 500.


Error Handling

ErroCausa provávelSolução
---------
HTTP 500media_resolution presente no payloadRemova media_resolution do params.json
HTTP 500Token inválido ou expiradoSolicitar novo token ao usuário e atualizar memória
Link não atualizaURL lida de lugar erradoBuscar a linha IMAGE_URL: no output desta execução
TimeoutResolução muito altaTentar novamente com "resolution": "1k"
Job failedPrompt inválido ou API instávelSimplificar o prompt e tentar novamente

Quando usar esta skill

  • "Generate an image of..."
  • "Create a picture of..."
  • "Draw a scene with..."
  • "Generate an image of..."
  • "Create a photo of..."
  • "Create an image with prompt..."

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 09:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,898
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,913
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,022