echoflow-banana: Using EchoFlow to Invoke Nano Banana Pro for Image Generation and Editing in Agents

Preface

When working in environments like Cursor or Claude Code to “generate an image,” “modify this image,” or “combine multiple images into one,” the common approach is to hand-write HTTP requests, concatenate base64 strings yourself, and then parse the image field in the response. On the model side, if you’re using Gemini 3 Pro Image (Nano Banana Pro in Skill documentation), you also need to handle details like chat completions and response_modalities. The community Skill @user_9feec992/echoflow-banana (v1.0.0) consolidates the above workflow into a SKILL.md plus bundled script: it calls the image model through the Qingyun EchoFlow relay API, allowing the Agent to directly execute commands according to the documentation when users mention intents such as image generation, image editing, or multi-image combination.

What is this

One-line positioning: Use Nano Banana Pro / Gemini 3 Pro Image capabilities through the Qingyun EchoFlow API (default https://api.echoflow.cn/v1) to accomplish text-to-image generation, single image editing, and multi-image composition.

Maintenance and source: Published by the SkillHub community, located at @user_9feec992/echoflow-banana, categorized under design-media, source community, publisher user_9feec992. The SkillHub page marks requires_api_key=true; the key must be obtained from the EchoFlow console (documentation points to https://api.echoflow.cn/).

Problem solved: Provides the Agent with reproducible installation instructions, environment variable conventions, and a uv-based generate_image.py, avoiding the need to integrate with EchoFlow from scratch every time.

Core Features

All the following capabilities come from the SKILL.md and scripts/generate_image.py in the installed Skill package (v1.0.0):

  1. Text-to-image generation: Only --prompt and --filename are needed; when there is no input image, the generation flow is used.
  2. Single image editing: Pass in a local image via -i / --input-image, combined with an editing prompt.
  3. Multi-image composition: -i can be specified repeatedly, with a maximum of 14 input images.
  4. Resolution: --resolution supports 1K, 2K, 4K (default 1K). In editing mode, if the default 1K is not changed, the script will automatically select a level based on the maximum input edge length (≥3000px → 4K, ≥1500px → 2K, otherwise 1K).
  5. Model selection: Default is gemini-3.1-flash-image-preview; optional gemini-3-pro-image-preview (documented as having higher quality but may encounter 429 errors).
  6. Trigger semantics: The Skill description states it should be activated when users request to generate/create/edit/combine images, or use expressions such as “image generation, picture generation, AI drawing, Nano Banana Pro, Gemini image generation.”

The script calls via POST {api_base}/chat/completions, with the request body containing response_modalities and image_config.image_size; the response supports parsing images from base64 embedded in markdown, Gemini parts, or OpenAI-style b64_json and saving them as PNG.

Installation and Activation

1. Install the SkillHub CLI and install this Skill

The SkillHub skill page suggests installing @user_9feec992/echoflow-banana by following https://skillhub.cn/install/skillhub.md. The general process is as follows.

Check the CLI:

command -v skillhub && skillhub --version

If not installed, you can execute (full installation includes default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install the Skill to the current Agent’s skills directory (must use --dir, otherwise the default ./skills/ may not be recognized):

skillhub install echoflow-banana --namespace user_9feec992 --dir <your skills directory>

Common paths (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, the Skill will be placed in a directory like @user_9feec992/echoflow-banana/, containing SKILL.md and scripts/generate_image.py.

2. Runtime dependencies

The Skill metadata requires:

  • uv installed on the local machine (used for uv run to execute scripts and automatically pull httpx>=0.25.0, pillow>=10.0.0).
  • Environment variable ECHOFLOW_API_KEY (or pass --api-key on the command line; documentation recommends using the environment variable first to avoid leakage in process lists and shell history).

Linux installation of uv example (documentation requires checking the installation script before executing):

curl -LsSf https://astral.sh/uv/install.sh | sh

Set the key:

export ECHOFLOW_API_KEY="sk-..."

Official Skill distribution address (API metadata): https://api.skillhub.cn/user_9feec992/echoflow-banana
SkillHub display page: https://www.skillhub.cn/skills/user_9feec992/echoflow-banana

Typical Usage

Replace {baseDir} with the parent path of scripts in the skill directory (i.e., the root directory of @user_9feec992/echoflow-banana).

Generate an image:

uv run {baseDir}/scripts/generate_image.py --prompt "a serene mountain landscape at sunset" --filename "mountain.png"

Edit a single image:

uv run {baseDir}/scripts/generate_image.py --prompt "add a rainbow in the sky" --filename "edited.png" -i "input.png"

Multi-image composition (up to 14 images):

uv run {baseDir}/scripts/generate_image.py --prompt "combine these into one scene" --filename "combined.png" -i img1.png -i img2.png -i img3.png

4K and Pro model:

uv run {baseDir}/scripts/generate_image.py -p "futuristic city" -f "city.png" -r 4K
uv run {baseDir}/scripts/generate_image.py -p "abstract art" -f "art.png" -m "gemini-3-pro-image-preview"

Main CLI parameters:

Parameter Description Default
--prompt, -p Description or editing instruction (required) —
--filename, -f Output PNG path (required) —
--input-image, -i Input image, can be repeated, ≤14 —
--resolution, -r 1K / 2K / 4K 1K
--model, -m Model name gemini-3.1-flash-image-preview
--api-base API root address https://api.echoflow.cn/v1

On success, the script will print the saved path and output a line MEDIA: <absolute path>, making it easy for the Agent to pass the result file to subsequent steps.

For more detailed OpenAI-compatible interface documentation, see references/echoflow_api.md in the skill package; the bundled script actually uses the chat completions image path, coexisting with the /images/generations example in the reference documentation, with generate_image.py behavior as the standard.

Use Cases and Notes

Who it’s for

  • Teams or individuals already using EchoFlow who want the Agent to uniformly use ECHOFLOW_API_KEY.
  • Those who need to quickly accomplish text-to-image generation, local editing, or multi-image composition in conversations, and can accept third-party relay APIs and pay-as-you-go billing (pricing subject to the EchoFlow console).

Limitations and notes

  1. Key: The script only reads ECHOFLOW_API_KEY or --api-key, and will not fall back to OPENAI_API_KEY / GEMINI_API_KEY.
  2. --api-base: Authorization will be sent to the specified host; documentation requires using only the default trusted endpoint or a self-built trusted gateway.
  3. Rate limiting: The Pro preview model may return 429; reference documentation suggests backoff and retry.
  4. Input image count: If more than 14 images are provided, the script will directly exit with an error.
  5. SkillHub data (scraped on the writing date): Rating 100000, Downloads 2130, Installs 85; you can verify the version and instructions on the SkillHub page before installation.

Conclusion

@user_9feec992/echoflow-banana wraps the Nano Banana Pro (Gemini 3 Pro Image) image capabilities on EchoFlow into an Agent-executable uv run workflow: after installing to the corresponding skills directory, configuring ECHOFLOW_API_KEY and uv, you can use the same set of parameters to cover generation, editing, and up to 14-image composition. For details and installation entry points:

  • https://www.skillhub.cn/skills/user_9feec992/echoflow-banana
  • https://api.skillhub.cn/user_9feec992/echoflow-banana
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye