Calling Relay API for Image Generation: Image Generation Plug-in .Skill and GPT Image 2.5 / Nano Banana 2.1

Preface

In Agent-based image generation, the common approach is to integrate a specific cloud provider’s official SDK or maintain multiple sets of HTTP invocation scripts. When switching models, the Base URL, authentication methods, and request bodies often require modification. If you are already using a third-party “relay API” (which aggregates multiple image models behind a single set of Keys and gateway addresses), what you need more is to let the Agent follow a unified workflow for text-to-image, image-to-image, and multi-image tasks, rather than repeatedly pasting endpoints and parameter descriptions in conversations.

The following introduces the Image Generation Plugin.Skill (ID: @user_2c58fc0f/ch12893719743826428329324) on SkillHub. It connects to models like GPT Image 2.5 and Nano Banana 2.1 via user-provided relay interfaces, attaching image capabilities to any Agent that supports Skills.

What is this

Image Generation Plugin.Skill is a community Skill (Source: community) under the SkillHub design-media category. The current page version is v5.2.1, published by user_2c58fc0f (displayed as HenryChen on the SkillHub page).

In one sentence: It enables Agents to call image models via a relay API to accomplish text-to-image, image-to-image, and multi-image creation. The Skill tag indicates requires_api_key=true, meaning you need to provide a valid API Key (and the corresponding relay service).

Official Page: https://www.skillhub.cn/skills/user_2c58fc0f/ch12893719743826428329324

Core Features

The following capabilities are derived from the official SkillHub description; implementation details not separately expanded upon on the page are not described here.

  1. Relay Access to Multiple Image Models: Utilizes models such as GPT Image 2.5 and Nano Banana 2.1 via a relay gateway (the page uses the term “etc.” and does not list a complete model table).
  2. Text-to-Image: Generates images based on natural language descriptions.
  3. Image-to-Image: Modifies or redraws existing images based on prompts (aligned with common capabilities of similar Skills; specific parameters depend on the Skill’s instructions).
  4. Multi-Image Creation: Supports multi-image related creative scenarios (referred to as “multi-image creation capabilities” in the official intro, without step-by-step examples provided on the public page).

Installation and Activation

SkillHub recommends installing the skillhub CLI first, then installing the Skill into the skills directory actually read by the current Agent. Installing to the wrong directory will prevent the Agent from recognizing it; a restart or reload is required for it to take effect. The installation process follows https://skillhub.cn/install/skillhub.md.

1. Check or Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed, you can use the official one-click script (full installation includes CLI and default Skills):

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

If only the CLI is needed:

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

2. Install this Skill

Install @user_2c58fc0f/ch12893719743826428329324 to the skills directory of your current environment. --dir must point to the directory configured for your Agent. For example, the common path for Cursor is ~/.cursor/skills/:

skillhub install @user_2c58fc0f/ch12893719743826428329324 --dir ~/.cursor/skills/

Common directories for other clients (also from SkillHub installation docs; replace --dir according to the tool you are actually using):

  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • Windsurf: ~/.codeium/windsurf/skills/ or .windsurf/skills/ under the project

After installation, restart or refresh the Skills list as required by your Agent.

3. API Key and Relay Service

The Skill is marked requires_api_key=true: You need to prepare the API Key provided by your relay service provider, as well as the required Base URL / Model ID information. The public SkillHub page does not list a fixed configuration file name or field schema. When enabling image generation in a conversation for the first time, you should provide the Agent with the endpoint, model name, and Key from your relay provider’s documentation, and confirm whether the Skill writes configurations locally (refer to the SKILL.md inside the installation package).

Typical Usage

The public page does not include copy-paste ready one-click curl examples, but the reproducible process is as follows:

  1. Complete the CLI installation and skillhub install from the previous section.
  2. In the Agent conversation, specify the use of Image Generation Plugin.Skill and provide the task type, e.g., “Text-to-image, vertical poster, title [Title]” or “Reference this image for image-to-image, keep composition, change background.”
  3. Complete the Relay API Key and Model Identifier as prompted by the Agent (only provide the Key in environments you trust; do not commit to public repositories).
  4. The generation result is generally an image file or a URL accessible to the Agent. The save path depends on the Skill script and the Agent workspace policy.

If you are using Cursor, after installing to the directory ~/.cursor/skills/, simply describe your image requirements directly within the same project. The Agent will load the Skill and call the relay interface.

Scenarios and Notes

Who it is for

  • Users already using or planning to use third-party image relay APIs who want the Agent to follow a unified Skill workflow rather than hand-writing multiple invocation codes.
  • Users who need to quickly switch between model capabilities mentioned on the page, such as GPT Image 2.5 and Nano Banana 2.1, within conversations to perform tasks like illustration, version updates, and multi-image creation.

Limitations and Notes

  • Depends on External Relay: Image quality, rate limits, billing, and compliance are determined by the gateway you choose; the Skill itself does not replace the service provider’s SLA.
  • Key Security: requires_api_key=true means the Key will enter the Agent’s running context; use only in trusted environments and follow the relay provider’s key rotation recommendations.
  • Version and Statistics: The SkillHub page is currently at v5.2.1; download counts and ratings for community Skills change over time, so refer to the page display prior to installation.
  • Do not speculate on undisclosed details: For example, specific OpenAI-compatible paths, native Gemini protocol fields, or NewAPI / One API adaptation methods. This article does not include unverified configuration items until the Skill is installed and its SKILL.md has been read.

Conclusion

Image Generation Plugin.Skill encapsulates “Relay API + multi-model image capabilities” into a Skill that Agents can load, targeting text-to-image, image-to-image, and multi-image creation. The installation ID is @user_2c58fc0f/ch12893719743826428329324, and an API Key must be provided by the user. Details and installation entry: https://www.skillhub.cn/skills/user_2c58fc0f/ch12893719743826428329324

羽毛球分组比赛记分
小程序二维码

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

Xiaoye