Text-to-Image Generation

Generate images from text prompts via Flux Turbo providers with signed requests and settlement.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Vocaid/vocaid-hub --skill text-to-image-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Text-to-Image Generation
Source: https://github.com/Vocaid/vocaid-hub/tree/main/agents/.agents/shield/skills/compute/text-to-image
Command: npx skills add https://github.com/Vocaid/vocaid-hub --skill text-to-image-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes the guesswork around signing requests, retrieving ChatIDs, and settling usage when generating images via Flux Turbo providers so engineers can produce visuals without skipping crucial authorization and billing steps.

Core Features & Use Cases

  • Flux Turbo image generation: configure provider metadata, request body, and signed headers to trigger GPU inference for resolutions from 256x256 to 1024x1024, including batch runs.
  • Secure settlement workflow: always include the request body when calling getRequestHeaders, read the ZG-Res-Key header for the ChatID, and invoke processResponse(providerAddress, chatID, usageData) to acknowledge fees.
  • Error-aware operations: built-in guidance on balance checks, provider acknowledgments, and safe parameters keeps you from overloading credits or using deprecated ethers v5 syntax.

Quick Start

Use the Text-to-Image Generation skill to render a 512x512 futuristic city skyline from a descriptive prompt.

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 Flux Turbo?

Text-to-image generation with Flux Turbo requires including the request body when calculating auth headers via getRequestHeaders. This ensures the signed request is authorized for GPU inference.

How do I extract ChatID for 0G Compute Network settlement?

Retrieve the ChatID exclusively from the ZG-Res-Key header. Failing to extract it correctly prevents proper fee settlement and provider acknowledgment.

How do I settle usage fees with processResponse after image generation?

Call processResponse with the providerAddress, chatID, and usageData parameters. This acknowledges fees and finalizes the 0G Compute Network settlement.

Can I run batch image generation requests with Flux Turbo?

Flux Turbo supports batch image generation runs. You can configure multiple generations within a single request body while maintaining signed headers.

How to avoid balance and ethers v5 errors during text-to-image generation?

Prevent errors by performing balance checks and avoiding deprecated ethers v5 syntax. Using safe parameters keeps you from overloading credits during the provider workflow.