image-generation

Generate base64-encoded images from text prompts using the z-ai-web-dev-sdk.

2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/marktantongco/promptc-os --skill image-generation-marktantongco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation
Source: https://github.com/marktantongco/promptc-os/tree/main/skills/image-generation
Command: npx skills add https://github.com/marktantongco/promptc-os --skill image-generation-marktantongco

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires z-ai-web-dev-sdk, and includes scripts (resource) components.

What problem does it solve?

Convert plain-language prompts into ready-to-use visual assets quickly, removing manual design bottlenecks and accelerating content, marketing, and product workflows that require images.

Core Features & Use Cases

  • Text-to-Image Generation: Create images from natural-language prompts using the z-ai-web-dev-sdk and save decoded outputs to disk.
  • Multiple Sizes & Orientations: Supports curated sizes for square, portrait, landscape, and wide hero images to match common web and social formats.
  • CLI and Scripted Workflows: Includes a CLI-focused workflow and example scripts for quick generation, batch jobs, and server integrations.
  • Production Considerations: Demonstrates caching, retry logic, error handling, and server-only SDK usage to improve reliability in backend services.

Quick Start

Generate a 1440x720 hero banner from a descriptive prompt using the included CLI and save it as ./hero.png.

Frequently Asked Questions about image-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images from text prompts using a CLI workflow?

To generate images from text prompts via a CLI, this Skill uses the z-ai-web-dev-sdk to process natural language descriptions and save the decoded base64 image outputs directly to disk.

Can I automate batch asset generation for web and social media graphics?

Yes, you can automate batch asset generation using the included example scripts, which support curated sizes for square, portrait, landscape, and wide hero images to match common web formats.

Does z-ai-web-dev-sdk support server-side text-to-image generation?

Yes, the z-ai-web-dev-sdk requires server-side use for text-to-image generation, providing base64-encoded outputs suitable for backend services and product illustration workflows.

What's the best way to handle errors and retries during AI image generation?

For reliable AI image generation in backend services, the Skill demonstrates production considerations including caching, retry logic, and error handling within its scripted workflows.

What image sizes are supported when generating hero banners from text?

Supported image sizes include curated dimensions for square, portrait, landscape, and wide hero images, such as a 1440x720 format, allowing quick generation of assets like hero banners.