modelscope.cn

image-generate

Generates an image from a text prompt using AI models. Use when you need to create images from descriptions, generate artwork, or produce visual content from text.

Installation

$ npx skills add https://modelscope.cn

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

CompatibilityRequires Node.js 18+. Run via npx agent-media@latest or npm install -g agent-media.

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,919 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Image Generate

Generates an image from a text prompt using AI image generation models.

Command

npx agent-media@latest image generate --prompt <text> [options]

Inputs

Option Required Description
--prompt Yes Text description of the image to generate
--width No Width of the generated image in pixels (default: 1280)
--height No Height of the generated image in pixels (default: 720)
--count No Number of images to generate (default: 1)
--out No Output path, filename or directory (default: ./)
--provider No Provider to use (default: auto-detect)

Output

Returns a JSON object with the generated image path:

{
  "ok": true,
  "media_type": "image",
  "action": "generate",
  "provider": "fal",
  "output_path": "generated_123_abc.png",
  "mime": "image/png",
  "bytes": 567890
}

Examples

Generate an image:

npx agent-media@latest image generate --prompt "a red robot standing in a forest"

Generate with specific dimensions:

npx agent-media@latest image generate --prompt "sunset over mountains" --width 1024 --height 768

Generate using specific provider:

npx agent-media@latest image generate --prompt "abstract art" --provider replicate

Providers

This action requires an external provider:

  • fal - Requires FALAPIKEY
  • replicate - Requires REPLICATEAPITOKEN
  • runpod - Requires RUNPODAPIKEY
  • ai-gateway - Requires AIGATEWAYAPI_KEY

The local provider does not support image generation.