image-generation

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

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Kraits/cxc-ace --skill image-generation-kraits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation
Source: https://github.com/Kraits/cxc-ace/tree/main/skills-backup/image-generation
Command: npx skills add https://github.com/Kraits/cxc-ace --skill image-generation-kraits

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables backend image generation from natural language prompts using the z-ai-web-dev-sdk, returning base64-encoded images for flexible downstream use.

Core Features & Use Cases

  • Backend image generation: create images from prompts with multiple sizes and save binary data to files.
  • CLI and scripting: quick, automated image creation via the z-ai CLI tool or the provided scripts for batch tasks.
  • Output handling: works with base64 image data and supports saving to disk or embedding directly in apps.

Quick Start

Run the script in scripts/image-generation.ts with a prompt and an output path to generate and save an image.

Frequently Asked Questions about image-generation

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

FAQPage Schema
How do I generate AI images from text prompts in a backend environment?

To generate AI images from text prompts in a backend environment, use the provided scripts with the z-ai-web-dev-sdk. The skill processes your text prompts and returns base64-encoded images, which you can save to disk or embed directly in apps.

Can I use z-ai-web-dev-sdk for batch image creation via CLI?

Yes, you can use z-ai-web-dev-sdk for batch image creation via CLI. The skill provides sample scripts and CLI tooling support, enabling automated image generation from multiple text prompts for batch asset creation workflows.

Does backend AI image generation support multiple sizes and base64 output?

Backend AI image generation supports multiple sizes and returns base64-encoded image data. This allows flexible downstream use, letting you save the binary data to files or embed the images directly into your application frontend.

What is the best way to automate marketing visual creation from text prompts?

The best way to automate marketing visual creation from text prompts is using CLI scripting with z-ai-web-dev-sdk. The skill generates high-quality AI images from your text prompts and outputs base64 data for automated batch asset workflows.

Do I need z-ai-web-dev-sdk installed to generate images from prompts?

Yes, you need z-ai-web-dev-sdk installed as a backend dependency to generate images from prompts. The skill requires this SDK to process text prompts and return base64-encoded images for design, marketing visuals, or product concepts.

How do I save base64 image data to a file after generation?

To save base64 image data to a file after generation, run the script in scripts/image-generation.ts with a specified prompt and output path. The skill handles the backend generation and saves the binary data directly to your disk.