image-generation

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

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/nidhalboumaiza-0/PFA_2026_E-Sante --skill image-generation-nidhalboumaiza-0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation
Source: https://github.com/nidhalboumaiza-0/PFA_2026_E-Sante/tree/main/admin-e-sante/skills/image-generation
Command: npx skills add https://github.com/nidhalboumaiza-0/PFA_2026_E-Sante --skill image-generation-nidhalboumaiza-0

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 text prompts using the z-ai-web-dev-sdk, allowing automated creation of visual content without client-side exposure.

Core Features & Use Cases

  • Generate images from natural language prompts with support for multiple sizes.
  • CLI tooling and code examples enable quick iteration and integration into apps.
  • Batch generation and simple service wrappers for automation in design, marketing, and product workflows.

Quick Start

Generate an image by supplying a text prompt and optional size, then save the output as a PNG file.

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 in a Node.js backend?

You can generate images from text prompts in a Node.js backend by calling the z-ai-web-dev-sdk with your desired text input and optional size parameters. The service outputs base64-encoded images suitable for saving as PNG files.

Can I automate batch image generation for marketing visuals?

You can automate batch image generation for marketing visuals using the Skill's service wrappers and CLI tooling. It processes multiple text prompts via the z-ai-web-dev-sdk to produce base64-encoded images for automated workflows.

Do I need the z-ai-web-dev-sdk dependency to use this image generation tool?

Yes, you need the z-ai-web-dev-sdk dependency and a Node.js environment to run this image generation tool. The Skill relies on this SDK to process text prompts and output base64-encoded images on the server side.

What image sizes are supported when generating images from text prompts?

The Skill supports multiple image sizes when generating visuals from text prompts. You supply the size parameter alongside your text input, and the z-ai-web-dev-sdk outputs a base64-encoded image matching your specifications.

How do I save a base64-encoded image generated from a text prompt as a PNG file?

To save a base64-encoded image generated from a text prompt as a PNG file, you decode the base64 string returned by the z-ai-web-dev-sdk and write the binary buffer to your file system using Node.js scripts.

What is backend image generation and when do I need it for product visuals?

Backend image generation creates product visuals from text prompts server-side using the z-ai-web-dev-sdk, avoiding client-side exposure. You need it for automated batch workflows and real-time asset creation while keeping processing logic centralized.