Agnes Text-to-Image: Integrating Agnes T2I and I2I into Agents

Introduction

In environments like Cursor or Claude Code, creating illustrations often involves writing manual HTTP requests, maintaining model names and parameters yourself, or repeatedly pasting API documentation into conversations. Agnes provides a standalone image generation interface where the models for text-to-image and image-to-image differ. Once integrated into an Agent, it is better triggered via natural language. Below is an introduction to the SkillHub community Skill agnes文生图 (@user_c28beb7a/agnes-image-gen), which encapsulates Agnes’s image capabilities into a SKILL workflow loadable by Agents.

What is this

agnes文生图 is a community Skill published on SkillHub (Category: design-media, Current Version: v2.0.5), maintained by the publisher user_c28beb7a. It calls Agnes AI’s image generation models: using agnes-image-2.1-flash for text-to-image and agnes-image-2.0-flash for image-to-image. The Skill is marked with requires_api_key=true and supports configuring your own Agnes API Key. Regarding billing, the official description states that it does not consume WorkBuddy credits but only consumes Agnes API quota.

Core Features

Based on the SkillHub page and API summary, the verified capabilities are as follows:

  1. Text-to-Image: Generates images from prompts using the model agnes-image-2.1-flash.
  2. Image-to-Image: Rewrites or extends existing images based on descriptions using the model agnes-image-2.0-flash.
  3. Custom API Key: Allows the use of personal Agnes Keys; quota and account strategies are determined by the Agnes side.
  4. Generation Orientation: Officially emphasizes reducing the “AI feel” of images and enhancing natural realism. For Chinese captions, it emphasizes logical coherence, font typography, and reducing text ghosting/overlapping.
  5. Trigger Loading: The Agent should load this Skill when a user says “Generate an image with Agnes,” “Draw a picture with Agnes,” “Agnes generation,” or explicitly requests to use the Agnes API for text-to-image/image-to-image.

Installation and Activation

The installation method provided by SkillHub is instructional: instruct your current AI to pull the Skill package according to a unified installation document, rather than manually running git clone on your local machine.

Simply send the following text to your Agent to complete the installation guide (original text from the SkillHub skill page):

请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_c28beb7a/agnes-image-gen`。

The installation document https://skillhub.cn/install/skillhub.md explains the differences for clients like Cursor, Codex CLI, and Claude Code; follow the directory and configuration steps in that document according to the tool you are using. This Skill requires an API Key; after installation, configure the Agnes Key according to the instructions within the SKILL (specific field names are subject to the SKILL.md in the repository after installation).

Usage Examples

This Skill is designed for conversational triggering rather than standalone CLI usage. Under the premise that it is installed and the Key is configured, you can speak as follows based on the scenario:

Text-to-Image Example (Illustrative prompt, not fixed API parameters):

用 Agnes 画一张:秋日傍晚的城市天台,胶片质感,远处有暖色灯光,画面里不要水印。

Image-to-Image Example:

用 Agnes 生成:以当前这张产品图为参考,改成浅灰背景,保留产品主体,风格更写实。

Alternatively, directly use the trigger phrases listed officially, such as “Generate an image with Agnes” or “Agnes generation,” and clearly write the image description or modification intent in the same sentence. After the Agent loads the Skill, it will call the Agnes interface according to the workflow in SKILL.md; the return result is generally the path or display method of the generated image, subject to the Skill’s implementation.

Use Cases and Notes

Target Audience

  • Users already using the Agnes API who wish to unify text-to-image/image-to-image workflows within Agent conversations instead of writing requests manually every time.
  • Those with needs for Chinese posters or illustrations who care about Chinese text typography and the official optimization direction of having less “AI feel.”
  • Those who want illustration consumption to go through Agnes quota rather than WorkBuddy credits (subject to official descriptions).

Limitations and Notes

  • You must possess and configure an Agnes API Key yourself; the Skill cannot complete the call without configuration.
  • Text-to-image and image-to-image correspond to different model versions. Image-to-image requires the ability to provide a reference image or an image in the context.
  • SkillHub Statistics (displayed on page): Rating 100000, Downloads 5427; community source, upgrades are subject to v2.0.5 and subsequent versions on SkillHub.
  • Quota, rate limits, and content policies are subject to the current rules of the Agnes platform. This article does not replace their official documentation.

Conclusion

agnes文生图 connects Agnes’s agnes-image-2.1-flash (text-to-image) and agnes-image-2.0-flash (image-to-image) into the Agent workflow, loading via fixed trigger phrases and supporting personal API Keys. To install or view instructions, open the SkillHub skill page or API summary address:

  • SkillHub: https://www.skillhub.cn/skills/user_c28beb7a/agnes-image-gen
  • API Summary: https://api.skillhub.cn/user_c28beb7a/agnes-image-gen
羽毛球分组比赛记分
小程序二维码

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

Xiaoye