Text-to-Image Generation

Generate images from text prompts via 0G Compute providers.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/srijan399/imsy --skill text-to-image-generation-srijan399
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Text-to-Image Generation
Source: https://github.com/srijan399/imsy/tree/main/.0g-skills/skills/compute/text-to-image
Command: npx skills add https://github.com/srijan399/imsy --skill text-to-image-generation-srijan399

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @0glabs/0g-serving-broker, ethers.

What problem does it solve?

This Skill helps you generate images from text prompts using 0G Compute providers, removing the need to manage low-level API signing, response settlement, and provider-specific request details by hand.

Core Features & Use Cases

  • Prompt-to-image generation: Create single images or batches from natural-language prompts.
  • Provider-aware request flow: Fetch service metadata, build the correct request body, sign headers with the body included, and submit the generation call.
  • Settlement handling: Extract the ChatID from the response header and call processResponse to complete fee processing after each image request.
  • Save and reuse outputs: Download generated images locally from either base64 or URL responses and store them for downstream creative workflows.

Quick Start

Ask the skill to generate an image from your prompt, choose a size such as 512x512, and return the image URL while handling the 0G provider request and settlement steps automatically.

Frequently Asked Questions about Text-to-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 0G Compute providers?

Text-to-image generation through 0G Compute providers involves building a request body, signing headers with that body, and submitting the generation call. The skill automates this authenticated request flow, image retrieval, and fee settlement.

What is the process for fee settlement after a text-to-image generation request?

Fee settlement requires extracting the ChatID from the ZG-Res-Key response header and calling processResponse after each image generation. This completes the fee processing for the 0G Compute provider service.

Can I generate multiple images at once or save them locally using this text-to-image workflow?

Yes, the workflow supports batch generation from natural-language prompts and local saving. It can download generated images locally from either base64 or URL responses for downstream creative workflows.

Do I need to manually handle API signing for Flux Turbo image generation requests?

No, manual API signing is not required. The skill handles authenticated request signing automatically by building the correct request body and applying request-body-based auth headers for Flux Turbo services.

What dependencies are required to run text-to-image generation with 0G Compute?

You need the @0glabs/0g-serving-broker and ethers packages. These dependencies facilitate the provider-aware request flow, authenticated signing, and fee settlement on the 0G Compute network.

How does provider authentication work for text-to-image generation on the 0G network?

Provider authentication works by fetching service metadata, building the correct request body, and signing headers with the body included. This request-body-based auth ensures valid generation calls to 0G Compute providers.