跳到正文
TakoAPI
返回技能列表

nanobanana-pro-fallback

由 yazelin 提供

Image & Video Generation
1.8k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Nano Banana Pro with auto model fallback — generate/edit images via Gemini Image API.

描述

该技能的功能

Generates and edits images using Google's Gemini Image API, with an automatic fallback chain across multiple Gemini models. Accepts text prompts for new images or existing images for editing, at 1K, 2K, or 4K resolution. Supports compositing up to 14 input images into a single output.

The automatic model fallback means generation continues even when a specific Gemini model is unavailable or rate-limited.

何时使用

  • Generate a product mockup image from a text description
  • Edit a photo by describing the changes in natural language
  • Combine multiple reference images into one scene
  • Produce marketing visuals at different output resolutions
  • Script repeated image generation with timestamped filenames

示例工作流

输入

User asks: generate a 2K image of a tropical beach at sunset, save it as beach.png

智能体
  1. 1

    Run generate_image.py via uv with the prompt and filename arguments

  2. 2

    Set --resolution 2K for higher quality output

  3. 3

    Script tries gemini-2.5-flash-image first, falls back to gemini-2.0-flash-exp-image-generation if needed

  4. 4

    Script prints a MEDIA: line with the saved file path for OpenClaw to attach

输出

beach.png saved at 2K resolution, auto-attached to the chat via the MEDIA: output line

前置要求

  • GEMINI_API_KEY environment variable (from Google AI Studio)

安装

clawhub install yazelin/nanobanana-pro-fallback

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接