Token导航 LogoToken导航TokenDH.com
开发敏感数据unknown未标认证来源可访问许可证需确认审计未展示

nano-banana-2纳米香蕉 2

Agent Skill

nano-banana-2 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 Local Agent 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

282

周安装

12

下载量

99
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nano-banana-2(纳米香蕉 2)
来源仓库:https://skills.volces.com
仓库路径:nano-banana-2
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

用于处理图像、截图和视觉素材相关工作。

  • 适合分析图片内容或辅助图像处理流程。
  • 使用时需注意图像来源和版权合规性。适用宿主包括 Local Agent,接入前应确认版本、权限和运行环境要求。
  • 涉及敏感图像时应先确认脱敏要求。nano-banana-2 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议核实维护状态及是否触发文件读写。

SKILL.md

Nano Banana 2 Image Generation & Editing

Generate and edit images using Google's Nano Banana 2 (Imagen) — the latest AI image generation model with industry-leading text rendering, multi-object composition, and photorealistic output.

This skill supports two providers. Choose based on which API key is available.


Provider Selection

  1. If ATLASCLOUD_API_KEY is set → use Atlas Cloud
  2. If GEMINI_API_KEY is set → use Google AI Studio
  3. If both are set → prefer Atlas Cloud (flat-rate pricing)
  4. If neither is set → ask the user to configure one:

- Atlas Cloud: Sign up at https://www.atlascloud.ai, Console → API Keys → Create key, then export ATLASCLOUD_API_KEY="your-key" - Google AI Studio: Get key from https://aistudio.google.com/apikey, then export GEMINI_API_KEY="your-key"


Pricing Comparison

ResolutionGoogle AI Studiofal.aiAtlas Cloud StandardAtlas Cloud Developer
1K (default)$0.067$0.08$0.072$0.056
2K$0.101$0.12$0.072$0.056
4K$0.151$0.16$0.072$0.056

Atlas Cloud uses flat-rate pricing — same price regardless of resolution. Google AI Studio uses token-based pricing that scales with resolution. At 4K, Atlas Cloud Developer tier is up to 63% cheaper than Google AI Studio.


Available Models

Atlas Cloud Models

Model IDTierPriceBest For
google/nano-banana-2/text-to-imageStandard$0.072/imageProduction, stable output
google/nano-banana-2/text-to-image-developerDeveloper$0.056/imagePrototyping, experiments
google/nano-banana-2/editStandard$0.072/imageProduction editing
google/nano-banana-2/edit-developerDeveloper$0.056/imageBudget editing, experiments

Google AI Studio Model

Model IDPriceNotes
gemini-3.1-flash-image-previewToken-based (~$0.067-$0.151/image)Handles both generation and editing

Mode 1: Atlas Cloud API

Setup

  1. Sign up at https://www.atlascloud.ai
  2. Console → API Keys → Create new key
  3. Set env: export ATLASCLOUD_API_KEY="your-key"

Parameters

Text-to-Image:

ParameterTypeRequiredDefaultOptions
promptstringYes-Image description
aspect_ratiostringNo1:11:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolutionstringNo1k1k, 2k, 4k
output_formatstringNopngpng, jpeg
seedintegerNorandomFor reproducible results

Image Editing — same as above plus:

ParameterTypeRequiredDescription
imagesarray of stringsYes1-14 image URLs to edit

Workflow: Submit → Poll → Download

# Step 1: Submit
curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-2/text-to-image",
    "prompt": "A serene Japanese garden with cherry blossoms",
    "aspect_ratio": "16:9",
    "resolution": "2k"
  }'
# Returns: { "code": 200, "data": { "id": "prediction-id" } }

# Step 2: Poll (every 3 seconds until "completed" or "succeeded")
curl -s "https://api.atlascloud.ai/api/v1/model/prediction/{prediction-id}" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY"
# Returns: { "code": 200, "data": { "status": "completed", "outputs": ["https://...url..."] } }

# Step 3: Download
curl -o output.png "IMAGE_URL_FROM_OUTPUTS"

Image editing example:

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-2/edit",
    "prompt": "Change the sky to a dramatic sunset",
    "images": ["https://example.com/photo.jpg"],
    "resolution": "2k"
  }'

Polling logic:

  • processing / starting / running → wait 3s, retry
  • completed / succeeded → done, get URL from data.outputs[]
  • failed → error, read data.error

Atlas Cloud MCP Tools (if available)

If the Atlas Cloud MCP server is configured, use built-in tools:

atlas_quick_generate(model_keyword="nano banana 2", type="Image", prompt="...")
atlas_generate_image(model="google/nano-banana-2/text-to-image", params={...})
atlas_get_prediction(prediction_id="...")

Mode 2: Google AI Studio API

Setup

  1. Get API key from https://aistudio.google.com/apikey
  2. Set env: export GEMINI_API_KEY="your-key"

Parameters

ParameterLocationOptions
aspectRatiogenerationConfig.imageConfig1: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
imageSizegenerationConfig.imageConfig512px, 1K, 2K, 4K (uppercase K required)
responseModalitiesgenerationConfig["TEXT", "IMAGE"] for image output

Text-to-Image

curl -s -X POST \
  "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"parts": [{"text": "A serene Japanese garden with cherry blossoms"}]}],
    "generationConfig": {
      "responseModalities": ["TEXT", "IMAGE"],
      "imageConfig": {"aspectRatio": "16:9", "imageSize": "2K"}
    }
  }'

Response: base64 image in candidates[0].content.parts[]. Text parts have .text, image parts have .inline_data.mime_type and .inline_data.data.

Save the image:

# Extract base64 data from response and decode
echo "$BASE64_DATA" | base64 -d > output.png

Image Editing (Google AI Studio)

curl -s -X POST \
  "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"parts": [
      {"text": "Change the sky to a dramatic sunset"},
      {"inline_data": {"mime_type": "image/png", "data": "BASE64_ENCODED_IMAGE"}}
    ]}],
    "generationConfig": {"responseModalities": ["TEXT", "IMAGE"]}
  }'

To encode a local image for editing:

BASE64_IMAGE=$(base64 -i input.png)

Python Example

from google import genai
from google.genai import types

client = genai.Client()
response = client.models.generate_content(
    model="gemini-3.1-flash-image-preview",
    contents="A serene Japanese garden with cherry blossoms",
    config=types.GenerateContentConfig(
        response_modalities=['TEXT', 'IMAGE'],
        image_config=types.ImageConfig(aspect_ratio="16:9", image_size="2K"),
    )
)
for part in response.parts:
    if part.text:
        print(part.text)
    elif image := part.as_image():
        image.save("output.png")

Implementation Guide

  1. Determine provider: Check which API key is available (see Provider Selection above).
  2. Extract parameters:

- Prompt: the image description - Aspect ratio: infer from context (banner→16:9, portrait→9:16, square→1:1, phone wallpaper→9:16, desktop→16:9) - Resolution: default 1k, use 2k/4k for high quality - For editing: identify source image URL(s) or local file path

  1. Choose model tier (Atlas Cloud only):

- Standard for production use - Developer if user wants to save costs or is experimenting

  1. Execute:

- Atlas Cloud: POST to generateImage API → poll prediction → download result - Google AI Studio: POST to generateContent API → parse base64 from response → save to file

  1. Present result: show file path, offer to open

Prompt Tips

  • Style: "oil painting", "photorealistic", "anime style", "watercolor"
  • Lighting: "golden hour", "studio lighting", "neon glow"
  • Composition: "close-up", "wide angle", "bird's eye view"
  • Mood: "serene", "dramatic", "whimsical"
  • Text in images: Nano Banana 2 renders text well — include it in quotes in your prompt

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

91.88%
按下载量换算91

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills