当前位置: 首页 > Skill >

Nano Banana Pro Image Generation&Editing

Nano Banana Pro Image Generation&Editing

Nano Banana Pro Image Generation&Editing

使用谷歌的 Nano Banana Pro(Gemini 3 Pro Image / Imagen Pro)生成和编辑图像——专为专业需求优化的高端 AI 图像生成模型。

1.0.9 2026.11.20 493
获取Skill文件查看使用说明
作 者:顾景 许可证: 更新时间:2026.11.20
本文目录展开

Nano Banana Pro Image Generation & Editing

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) — the premium AI image generation model designed for professional asset production, utilizing advanced reasoning ("Thinking") to follow complex instructions and render high-fidelity text in images.

Nano Banana Pro excels at infographics, menus, diagrams, marketing assets, and any task requiring precise text rendering and complex multi-object composition.

Data usage note: This skill sends text prompts and image URLs/data to Atlas Cloud API for image generation. No data is stored locally beyond the downloaded output files.

Security note: API keys are read exclusively from environment variables (ATLASCLOUD_API_KEY) and passed via HTTP headers — never embedded in URL query strings or command arguments. All user-provided text (prompts, file paths) must be passed through JSON request bodies to prevent shell injection. When constructing curl commands, always use a JSON payload (-d '{...}') rather than string interpolation in the shell. File paths should be validated before use. The skill does not execute any user-provided code — it only sends structured API requests and downloads output files.

Nano Banana Pro vs Nano Banana 2

Feature Nano Banana Pro Nano Banana 2
Focus Professional quality, complex tasks Speed, high-volume generation
Text rendering Superior — best for infographics, menus Good
Thinking mode Enabled by default Not available
Reference images (object) Up to 6 Up to 10
Character consistency images Up to 5 Up to 14
Resolution Up to 4K Up to 4K

Choose Nano Banana Pro when quality and text precision matter. Choose Nano Banana 2 when speed and cost matter.

Pricing

Resolution Atlas Cloud Standard Atlas Cloud Developer
1K $0.126 $0.098
2K $0.126 $0.098
4K $0.126 $0.098

Atlas Cloud uses flat-rate pricing regardless of resolution.

Available Models

Model ID Tier Price Best For
google/nano-banana-pro/text-to-image Standard $0.126/image Production, high-quality output
google/nano-banana-pro/text-to-image-developer Developer $0.098/image Prototyping, experiments
google/nano-banana-pro/edit Standard $0.126/image Production editing
google/nano-banana-pro/edit-developer Developer $0.098/image Budget editing, experiments

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:

Parameter Type Required Default Options
prompt string Yes - Image description
aspect_ratio string No 1:1 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolution string No 1k 1k, 2k, 4k
output_format string No png png, jpeg

Image Editing — same as above plus:

Parameter Type Required Description
images array of strings Yes 1-10 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-pro/text-to-image",
    "prompt": "A professional infographic showing quarterly revenue growth with bar charts and annotations",
    "aspect_ratio": "16:9",
    "resolution": "2k"
  }'
# Returns: { "code": 200, "data": { "id": "prediction-id" } }

# Step 2: Poll (every 3-5 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-pro/edit",
    "prompt": "Replace the text on the sign with: Grand Opening Sale — 50% Off",
    "images": ["https://example.com/storefront.jpg"],
    "resolution": "2k"
  }'

Polling logic:

  • processing / starting / running → wait 3-5s, retry (Pro model may take longer than Nano Banana 2 due to Thinking mode)
  • 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 pro", type="Image", prompt="...")
atlas_generate_image(model="google/nano-banana-pro/text-to-image", params={...})
atlas_get_prediction(prediction_id="...")

Implementation Guide

  1. Check API key: Ensure ATLASCLOUD_API_KEY is set. If not, ask the user to sign up at https://www.atlascloud.ai and set export ATLASCLOUD_API_KEY="your-key".

  2. Extract parameters:

    • Prompt: the image description — Nano Banana Pro handles complex, detailed prompts well
    • Aspect ratio: infer from context (infographic→3:4 or 9:16, banner→16:9, menu→3:4, social post→1:1)
    • Resolution: default 1k, use 2k/4k for professional output
    • For editing: identify source image URL(s) or local file path
  3. Choose model tier:

    • Standard for production use
    • Developer if user wants to save costs or is experimenting
  4. Sanitize inputs: Ensure user-provided prompts and file paths do not contain shell metacharacters. Always pass prompts inside JSON payloads (never via shell interpolation). Validate that image file paths exist and are readable before encoding.

  5. Execute: POST to Atlas Cloud generateImage API → poll prediction (may take 10-30s due to Thinking mode) → download result

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

Prompt Tips for Nano Banana Pro

Nano Banana Pro excels at understanding complex, structured prompts. Take advantage of its Thinking mode:

  • Text in images: Include exact text in quotes — Pro renders text with high fidelity. Example: "A cafe chalkboard menu reading: 'Today's Special — Matcha Latte $5.50'"
  • Infographics: Describe data, layout, and annotations. Example: "An infographic showing 3 steps of coffee brewing with numbered icons and captions"
  • Marketing assets: Specify brand colors, text placement, and style. Example: "A product banner with dark background, gold accents, text 'Limited Edition' top-center"
  • Complex compositions: Describe spatial relationships and multiple objects. Example: "A still life with a ceramic vase left-center, three oranges arranged in front, and a linen cloth draped over the table edge"
  • Style: "photorealistic", "editorial illustration", "minimalist flat design", "watercolor"
  • Lighting: "studio lighting", "natural window light", "dramatic chiaroscuro"

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,000
Skill 文件
  • SKILL.md
    • Nano Banana Pro Image Generation & Editing
    • Nano Banana Pro vs Nano Banana 2
    • Pricing
    • Available Models
    • Atlas Cloud API
      • Setup
      • Parameters
      • Workflow: Submit → Poll → Download
      • Atlas Cloud MCP Tools (if available)
    • Implementation Guide
    • Prompt Tips for Nano Banana Pro
  • 项目或源文件

相关 Skill

更多
WaveSpeedAI Nano Banana Pro Image Generation/Editing WaveSpeedAI Nano Banana Pro Image Generation/Editing 通过WaveSpeed AI使用谷歌Nano Banana Pro模型生成和编辑图像,支持文生图和自然语言图像编辑。
Agnes AI 免费图片视频生成 Agnes AI 免费图片视频生成 Generate images and videos using Agnes AI models (agnes-image-2.0-flash, agnes-image-2.1-flash, agnes-video-v2.0). Trigger when user wants to generate images from text, edit images, create videos from text or images, or mentions '生图', '生视频', 'image generation', 'video generation', 'Agnes AI', 'agnes-ai.com'.
Router9 Router9 All-in-one AI skills via Router9 API — speech recognition, text-to-speech, image description, OCR, image generation, and file storage. Use when the user asks...
gpt-image-prompting-guide gpt-image-prompting-guide 基于 OpenAI 官方《GPT Image Generation Models Prompting Guide》的专业提示词生成技能。帮助用户按照官方最佳实践创建高质量、可控的 GPT Image 2 提示词。
即梦-文生图 CLI 技能,让你的智能体通过 即梦 CLI 生成图片 即梦-文生图 CLI 技能,让你的智能体通过 即梦 CLI 生成图片 Provides comprehensive guidance for executing text-to-image generation via the dreamina CLI for 即梦 (Dreamina/Jimeng). The dreamina CLI is ByteDance's command-line tool for submitting image generation tasks to 即梦 models (3.0 through 5.0), supporting credit management, synchronous and asynchronous task submission, result polling, and session-based project organization. Use when the user wants to run an approved prompt through the CLI to generate an image; mentions "dreamina", "即梦CLI", "命令行生图", "生成