nano banana text to image in Atlas AI
v1.0.1生成s images from text prompts using AtlasCloud Nanobanana 2 模型, requiring an AtlasCloud API 令牌 and specific JSON parameters without media_resolution.
运行时依赖
安装命令
点击复制技能文档
Atlas Nanobanana Text-to-Image 🍌
生成s images using the AtlasCloud Nanobanana 2 模型 (google/nano-banana-2/text-to-image).
令牌 设置up
Before generating images, you need the user's AtlasCloud API 令牌.
检查 memory for atlascloud_令牌. If not found, ask the user: "Please provide your AtlasCloud API 令牌 to 获取 启动ed." Save the 令牌 to memory as atlascloud_令牌 so it is not needed agAIn. How to 生成 an Image
Step 1: Write the params to {baseDir}/params.json.
Step 2: 运行 the script:
node {baseDir}/生成.js <令牌> {baseDir}/params.json
Step 3: In the script 输出, find the line that 启动s with IMAGE_URL: between the two rows of = 签名s:
============================================================ IMAGE_URL: https://atlas-media.oss-us-west-1.aliyuncs.com/images/xxxx.png ============================================================
⚠️ CRITICAL: Use exactly the URL that 应用ears in the IMAGE_URL: line of this execution. Never use a URL from the conversation 历史, previous executions, or memory. Each execution 生成s a different URL.
报告 this URL to the user.
params.json — Payload Correto
⚠️ 导入ANT: Never include media_resolution in the payload — it causes an HTTP 500 error.
{ "prompt": "descrição detalhada da imagem", "aspect_ratio": "16:9", "输出_格式化": "png", "resolution": "2k", "enable_base64_输出": false, "enable_同步_mode": false, "enable_网页_搜索": false, "enable_image_搜索": false }
AvAIlable fields Field Required Default Options prompt ✅ yes — any text aspect_ratio no 16:9 1:1 resolution no 2k 1k 输出_格式化 no png png enable_网页_搜索 no false true enable_image_搜索 no false true enable_同步_mode no false true
NÃO inclua media_resolution — causa erro 500.
Error Handling Erro Causa provável Solução HTTP 500 media_resolution presente no payload Remova media_resolution do params.json HTTP 500 令牌 inválido ou expirado Solicitar novo 令牌 ao usuário e atualizar memória Link não atualiza URL lida de lugar errado Buscar a linha IMAGE_URL: no 输出 desta execução Timeout Resolução muito alta Tentar novamente com "resolution": "1k" Job fAIled Prompt inválido ou API instável Simplificar o prompt e tentar novamente Quando usar esta 技能 "生成 an image of..." "创建 a picture of..." "Draw a scene with..." "生成 an image of..." "创建 a photo of..." "创建 an image with prompt..."