Image Generation: Integrating New API's Seedream Image Capabilities into Agents

Introduction

In environments like Cursor and Claude Code, the common practice for creating or modifying images involves manually writing scripts to call various image APIs or repeatedly pasting curl commands into the chat. You have to memorize interface fields, model names, and manage batch image generation yourself. The community Skill “Image Creation” (@user_a0de7824/tupian) on SkillHub encapsulates Text-to-Image (T2I), Image-to-Image (I2I), multi-image fusion, and batch generation into a SKILL workflow that Agents can follow, utilizing the New API and the Seedream model family. The following section introduces what it is, what it can do, and how to install and configure it.

What is this

“Image Creation” is a community Skill under the SkillHub design-media category (Source: community, Publisher: user_a0de7824, Current Version: 1.0.0). Its coordinate is @user_a0de7824/tupian. The page and metadata can be viewed via the SkillHub Skill Page and the API address https://api.skillhub.cn/user_a0de7824/tupian.

It is designed for developers already using Agent Skills: after installing it to the local skills directory, the Agent follows the Skill instructions to call the New API to generate and edit images, eliminating the need to construct requests from scratch every time.

Core Functions

The following capabilities are derived from the official Skill description and have been verified against the page and scraped data:

  1. Text-to-Image (T2I): Generate images based on text descriptions.
  2. Image Editing (I2I): Modify existing images based on instructions.
  3. Multi-image Fusion: Fuse and process multiple images according to task requirements.
  4. Batch Image Generation: Produce multiple result images in a single task.
  5. Seedream Models: Supports all Seedream models (specific models are selected via the New API side).

The Skill carries the requires_api_key=true tag; a New API access key must be configured before use.

Installation and Enablement

1. Install SkillHub CLI (if not already installed)

First, check if it is installed:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a complete installation (CLI + 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

For explanations and path differences, see: SkillHub Installation and Priority Source Configuration.

2. Install “Image Creation” to the current Agent’s skills directory

During installation, you must use --dir to point to the actual skills directory read by the current Agent. Otherwise, it defaults to installing to ./skills/, which the Agent may not recognize.

skillhub install user_a0de7824/tupian --dir <skills directory>

Common client skills paths (excerpted from official installation documentation):

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

Alternatively, provide the instructions below to an AI to let it install @user_a0de7824/tupian according to skillhub.md (consistent with the SkillHub page instruction “Send the prompt to your AI to install this skills”).

3. Configure Environment Variables

Variable Required Description
NEWAPI_API_KEY Required New API access key
BASE_URL Optional Custom API endpoint; defaults to https://docs.newapi.pro/v1

Export the above variables in the environment where the Agent is run or Skill-related commands are executed, for example:

export NEWAPI_API_KEY="your_key"
# Optional: Use a self-hosted or proxy endpoint
# export BASE_URL="https://docs.newapi.pro/v1"

After installation or configuration changes, restart or reload the Agent as required by your client to load the new Skill.

Typical Usage

The official page does not provide separate copy-paste CLI example commands; the reproducible part is: Install Skill → Configure NEWAPI_API_KEY (and optional BASE_URL) → Describe the image task in the conversation.

Combining the published capabilities, you can initiate requests to the Agent in the following ways (specific wording can be customized but must align with Skill capabilities):

  1. T2I: Describe the theme, style, dimensions, or number of images, and specify a model from the Seedream series (if you have a preference).
  2. I2I: Provide the path or attachment of the image to be edited, and clearly state the modification intent.
  3. Multi-image Fusion: Provide multiple input images and the fusion goal (e.g., composing a scene, unifying style).
  4. Batch Generation: Specify the need for multiple variants or a set of thematic images in the same prompt.

The Agent will call the New API following the installed SKILL.md workflow; specific HTTP paths and parameters are subject to the instructions within the Skill package and the New API documentation.

Use Cases and Notes

Who is it for

  • Developers already using Skills in environments like Cursor, Claude Code, or Codex who wish to uniformly use New API + Seedream for illustration, image editing, and multi-image composition.
  • Users willing to apply for and manage NEWAPI_API_KEY themselves, and who can accept the update cadence of a community Skill (maintained by user_a0de7824).

Limitations and Notes

  • Interfaces cannot be called without a valid NEWAPI_API_KEY; do not commit keys to repositories.
  • BASE_URL defaults to https://docs.newapi.pro/v1; if using a custom gateway, it must be compatible with New API.
  • This is a community-sourced Skill; check the version and description on the SkillHub page before installation. Scraped data indicates a rating of 100000 and approximately 21780 downloads (subject to real-time platform data).
  • Image generation is subject to model policies, quotas, and content moderation; batch tasks may consume more quota and time.

Conclusion

“Image Creation” consolidates T2I, I2I, multi-image fusion, and batch image output into a single Agent Skill path, relying on the New API and Seedream models, with configuration centralized in NEWAPI_API_KEY and optional BASE_URL. If you are looking for image capabilities in SkillHub’s design-media category, you can start by installing @user_a0de7824/tupian from the official page.

  • SkillHub Page: https://www.skillhub.cn/skills/user_a0de7824/tupian
  • API Metadata: https://api.skillhub.cn/user_a0de7824/tupian
羽毛球分组比赛记分
小程序二维码

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

Xiaoye