← 返回
未分类 Key 中文

nano banana image to image

Edit or combine images by applying styles or elements from one image to another while preserving identity, pose, and lighting using AtlasCloud Nanobanana model.
使用AtlasCloud Nanobanana模型,将一个图像的样式或元素应用到另一图像进行编辑或合并,同时保留身份、姿势和光照。
guilherme-funchal guilherme-funchal 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 344
下载
💾 0
安装
1
版本
#latest

概述

Atlas Nanobanana Image-to-Image 🖼️

Edits and combines images using the AtlasCloud Nanobanana 2 Edit model (google/nano-banana-2/edit).


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 — REQUIRED: After the script finishes, run this bash command to read the generated URL:

cat {baseDir}/last_url.txt

⚠️ CRITICAL: Step 3 is mandatory and irreplaceable. The correct URL is ONLY in last_url.txt. Run cat as a separate bash command and use the exact text returned. Never use a URL from the conversation history, previous files in the context, or any other source.

Report the URL from last_url.txt to the user.


params.json — Payload Correto

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

{
  "prompt": "Replace the dress on the model in image 0 with the dress from image 1. Preserve identity, face, pose, and lighting.",
  "images": [
    "https://url-of-base-image.png",
    "https://url-of-reference-image.png"
  ],
  "aspect_ratio": "16:9",
  "output_format": "png",
  "resolution": "1k",
  "enable_base64_output": false,
  "enable_sync_mode": false,
  "enable_web_search": false,
  "enable_image_search": false
}

Available Fields

FieldRequiredDefaultOptions
------------
prompt✅ yesany text
images✅ yesarray of 1–4 URLs
aspect_rationo16:91:14:33:416:99:1621:9
resolutionno1k1k2k4k
output_formatnopngpngjpeg
enable_web_searchnofalsetruefalse
enable_image_searchnofalsetruefalse
enable_base64_outputnofalsetruefalse
enable_sync_modenofalsetruefalse

Do not include media_resolution — it causes a 500 error.


Prompt Tips for Image-to-Image

  • Refer to images by position: "image 0" (base), "image 1" (reference).
  • State clearly what to preserve: face, pose, proportions, lighting, background.
  • State clearly what to replace: the clothing, the background, the style.
  • Use negative instructions: "DO NOT change the face", "DO NOT transfer human elements from image 1".

Error Handling

ErrorProbable CauseSolution
---------
HTTP 500media_resolution present in payloadRemove media_resolution from params.json
HTTP 500Invalid or expired tokenRequest a new token from the user and refresh memory
Link does not updateStep 3 was not executedRun cat {baseDir}/last_url.txt as a bash command
TimeoutResolution too highTry again with "resolution": "1k"
Job failedImage URLs inaccessibleCheck if images are public

When to use this skill:

  • "swap the clothes in this photo"
  • "apply the style from image 1 to image 0"
  • "edit this image using another as a reference"
  • "change clothes in the photo"
  • "combine two images with AI"

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 19:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Brazilian CEP using the ViaCEP API

guilherme-funchal
使用 ViaCEP API 查询巴西 CEP 的地址信息。
★ 1 📥 467
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 117,928
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 335 📥 94,743