skills/image-generate/SKILL.md
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.
npx skillsauth add agntswrm/agent-media image-generateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generates an image from a text prompt using AI image generation models.
npx agent-media@latest image generate --prompt <text> [options]
| 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) |
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
}
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
This action requires an external provider:
FAL_API_KEYREPLICATE_API_TOKENRUNPOD_API_KEYAI_GATEWAY_API_KEYThe local provider does not support image generation.
data-ai
Generates video from text prompts or animates static images. Use when you need to create videos from descriptions, animate images, or produce video content using AI.
development
Upscales an image using AI super-resolution to increase resolution with detail generation. Use when you need to enlarge images, improve low-resolution photos, or prepare images for large-format display.
testing
Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.
content-media
Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.