image-generation
Implement AI image generation capabilities using the z-ai-web-dev-sdk.
Skill by rahlplx
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rahlplx-image-generation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
image-generation- Description
- 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.
- License
- MIT
- Instructions
- 579 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: 579 lines (spec recommends under 500)
Files (3)
- LICENSE.txt
- SKILL.md
- image-generation.ts · scripts/
SKILL.md (first lines)
# 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.images.generations.create({
prompt: prompt,
size: '1024x1024'
});
const imageBase64 = response.data[0].base64;
// Save image
const buffer = Buffer.from(imageBase64, 'base64');
fs.writeFileSync(outputPath, buffer);
console.log(`Image saved to ${outputPath}`);
return outputPath;
}
// Usage
await generateImage(
'A cute cat playing in the garden',
'./cat_image.png'
);
```
### Multiple Image Sizes
```javascript
import ZAI from 'z-ai-web-dev-sdk';
import fs from 'fs';
// Supported sizes
const SUPPORTED_SIZES = [
'1024x1024', // Square
'768x1344', // Portrait
'864x1152', // Portrait
'1344x768', // Landscape
'1152x864', // Landscape
'1440x720', // Wide landscape
'720x1440' // Tall portrait
];
async function generateImageWithSize(prompt, size, outputPath) {
if (!SUPPORTED_SIZES.includes(size)) {
throw new Error(`Unsupported size: ${size}. Use one of: ${SUPPORTED_SIZES.join(', ')}`);
}
const zai = await ZAI.create();
const response = await zai.images.generations.create({
prompt: prompt,
size: size
});
const imageBase64 = response.data[0].base64;
const buffer = Buffer.from(imageBase64, 'base64');
fs.writeFileSync(outputPath, buffer);
return {
path: outputPath,
size: size,
fileSize: buffer.length
};
}
// Usage - Different sizes
await generateImageWithSize(
'A beautiful landscape',
'1344x768',
'./landscape.png'
);
await generateImageWithSize(
'A portrait of a person',
'768x1344',
'./portrait.png'
);
```
## CLI Tool Usage
The z-ai CLI tool provides a convenient way to generate images directly from the command line.
### Basic CLI Usage
```bash
# Generate image with full options
z-ai image --prompt "A beautiful landscape" --output "./image.png"From rahlplx/smile-savers-2026-feb, MIT.
More from rahlplx/smile-savers-2026-feb
- 0.386score
pptx
rahlplx
PPT/PPTX dedicated skill - **MANDATORY RULE**: For ANY PPT-related tasks (uploaded files, editing/creating presentations, etc.), you **MUST IMMEDIATELY**…
SkillDFreshness: DClaude Code +9 - 0.383score
Podcast Generate
rahlplx
Generate podcast episodes from user-provided content or by searching the web for specified topics.
SkillDFreshness: DClaude Code +9 - 0.382score
frontend-design
rahlplx
Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution.
SkillDFreshness: DClaude Code +9 - 0.379score
Video Generation
rahlplx
Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk.
SkillDFreshness: DClaude Code +9 - 0.213score
pdf
rahlplx
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 17, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rahlplx/smile-savers-2026-feb
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from rahlplx
- 0.444score
vibe-caveman
rahlplx
Terse-output mode.
SkillCFreshness: CClaude Code +9 - 0.444score
vibe-design
rahlplx
Design audit + anti-slop enforcement + WCAG check + taste-skill dial configuration + impeccable design workflow (init/critique/polish + 18 refinement commands).
SkillCFreshness: CClaude Code +9 - 0.444score
vibe-evolve
rahlplx
Auto-evolve rules and retire underperformers — reads telemetry + learnings to propose rule promotions, demotions, and new patterns.
SkillCFreshness: CClaude Code +9 - 0.444score
vibe-explain
rahlplx
Explain, translate, or extract intent from any code — at beginner, intermediate, or expert level.
SkillCFreshness: CClaude Code +9 - 0.444score
vibe-harness
rahlplx
Production readiness gate — runs 15 automated checks (tests, lint, security scan, skill integrity, catalog validity, state machine).
SkillCFreshness: CClaude Code +9 - 0.444score
vibe-learnings
rahlplx
Extract learnings, patterns, and anti-patterns from commit history, session work, and project evolution.
SkillCFreshness: CClaude Code +9
Cite this page
image-generation skill. Agent Mart. https://agentmart.dev/skills/rahlplx-image-generation (last updated 2026-10-24)