HD TXT2IMG Skill for Openclaw

A professional-grade utility for generating high-quality images from text prompts using the Hidream asynchronous API.

zhihui-chen-xx
v1.0.0
Mar 9, 2026
0
892
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install hd-txt2img

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install hd-txt2img using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is HD TXT2IMG Skill?

The HD TXT2IMG Skill is a robust integration designed to bring advanced image generation capabilities to AI coding agents. By leveraging the Hidream async API, this skill allows developers to transform text descriptions into visual assets while maintaining precise control over technical parameters like resolution and authentication. As a specialized component of the Openclaw Skills library, it simplifies the complex process of managing asynchronous tasks by automating the request and polling lifecycle.

This skill is engineered for reliability, providing a clean Python-based interface that handles the intricacies of task tracking and status monitoring. Whether you are building creative tools or automating content production, this skill ensures that Openclaw Skills users can generate high-resolution visuals with minimal configuration and maximum efficiency.

HD TXT2IMG Skill Use Cases

  • Rapidly generating diverse visual assets from natural language prompts.
  • Integrating high-resolution image creation into automated content pipelines powered by Openclaw Skills.
  • Building runnable Python examples for developers to test and deploy creative AI agents.
  • Managing long-running image generation tasks through automated polling and status troubleshooting.

How HD TXT2IMG Skill Works

  1. The skill initializes by constructing an asynchronous payload containing your prompt and a validated resolution value.
  2. It submits a POST request to the Hidream API to start the generation process.
  3. The system captures the task_id returned by the server to track the progress of the image.
  4. An internal polling mechanism monitors the status of the task until the generation is complete.
  5. Upon success, the skill returns a structured JSON object containing the final image URL and metadata for use within the Openclaw Skills workflow.

HD TXT2IMG Skill Setup

To start using this skill within the Openclaw Skills framework, ensure you have your Hidream API token. You can execute the generation script directly using the following command structure:

python3 hd-txt2img-skill/scripts/generate_image.py \
  --authorization "YOUR_HIDREAM_TOKEN" \
  --prompt "A futuristic city under a neon sky" \
  --resolution "1024*1024"

HD TXT2IMG Skill Data Schema & Taxonomy

The HD TXT2IMG Skill follows the Openclaw Skills data management standard, utilizing specific input parameters and returning structured API responses.

Parameter Type Description
authorization string Your API token (exclude the Bearer prefix)
prompt string The descriptive text for the image generation
resolution string Must be a supported value (e.g., 10241024, 7681360, 1360*768)
task_id string The unique identifier used for polling task results

HD TXT2IMG Skill Advanced Features

  • Enforced resolution validation to ensure only API-compliant dimensions are submitted.
  • Automated polling logic with status tracking for seamless integration into multi-agent Openclaw Skills environments.
  • Clean CLI output in JSON format, making it easy for downstream tools to parse generation results.
  • Support for a wide variety of aspect ratios, including square, landscape, and portrait orientations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*