image-generation
Implement AI image generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to create images from text descriptions, generate visual content, create artwork, design assets, or build applications with AI-powered image creation. Supports multiple image sizes and returns base64 encoded images. Also includes CLI tool for quick image generation.
npx skills add jjyaoao/HelloAgents --skill image-generation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Image Generation Skill This skill guides the implementation of image generation functionality using the z-ai-web-dev-sdk package and CLI tool, enabling creation of high-quality images from text descriptions. ## Skills Path **Skill Location**: `{project_path}/skills/image-generation` this skill is located at above path in your project. **Reference Scripts**: Example test scripts are available in the `{Skill Location}/scripts/` directory for quick testing and reference. See `{Skill Location}/scripts/image-generation.ts` for a working example. ## Overview Image Generation allows you to build applications that create visual content from text prompts using AI models, enabling creative workflows, design automation, and visual content production. **IMPORTANT**: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code. ## Prerequisites The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below. ## Basic Image Generation ### Simple Image Creation ```javascript import ZAI from 'z-ai-web-dev-sdk'; import fs from 'fs'; async function generateImage(prompt, outputPath) { const zai = await ZAI.create(); const response = await zai.imag
- Skills Path
- Overview
- Prerequisites
- Basic Image Generation
- Simple Image Creation
- Multiple Image Sizes
- CLI Tool Usage
- Basic CLI Usage
- CLI Use Cases
- Advanced Use Cases
- Batch Image Generation
- Image Generation Service
- Website Asset Generator
- Best Practices
Generate image with full options z-ai image --prompt "A beautiful landscape" --output "./image.png" Short form z-ai image -p "A cute cat" -o "./cat.png" Specify size z-ai image -p "A sunset" -o "./sunset.png" -s 1344x768 Portrait orientation z-ai image -p "A portrait" -o "./portrait.png" -s 768x1344 Website hero image z-ai image -p "Modern tech office with diverse team collaborating" -o "./hero.png" -s 1440x720
What does the image-generation skill do?
Implement AI image generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to create images from text descriptions, generate visual content, create artwork, design assets, or build applications with AI-powered image creation. Supports multiple image sizes and returns base64 encoded images. Also includes CLI tool for quick image generation.
How do I install it?
Run `npx skills add jjyaoao/HelloAgents --skill image-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jjyaoao/HelloAgents, a repository with 2,615 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
