← Back to Skills Marketplace
zhihui-chen-xx

hd-txt2img-v2L

by zhihui-chen-xx · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
272
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hd-txt2img
Description
Call Hidream txt2img async API with exposed auth and request parameters. Use when users need to generate images from text prompts, build runnable Python comm...
README (SKILL.md)

HD TXT2IMG Skill

Use Python script scripts/generate_image.py to submit txt2img tasks and wait for final images.

Required Endpoint

  • POST https://www.hidreamai.com/api-pub/gw/v3/image/txt2img/async
  • GET https://www.hidreamai.com/api-pub/gw/v3/image/txt2img/async/results?task_id=...

Auth

  • Header: Authorization: Bearer {USER_Authorization}
  • Header: Content-Type: application/json
  • Do not hardcode real token in repository files.

Exposed Parameters

  • authorization (string): token value only, without Bearer
  • prompt (string): text prompt
  • resolution (string): must be one of:
    • 1024*1024
    • 832*1248
    • 880*1168
    • 768*1360
    • 1248*832
    • 1168*880
    • 1360*768

Execution Example

python3 hd-txt2img-skill/scripts/generate_image.py \
  --authorization "sk-" \
  --prompt "一个跳舞的小女孩" \
  --resolution "1024*1024"

Script Behavior

  1. Build async txt2img request payload.
  2. Submit task and get task_id.
  3. Poll result API until task finishes.
  4. Return final structured result object from code and print JSON in CLI mode.
Usage Guidance
This skill appears coherent and does what it says: it sends prompts to Hidream and polls for results. Before installing, confirm you trust Hidream and are comfortable sending prompt content and images to their service. Keep your API token secret (pass via --authorization at runtime or an env var, and do not check it into source control). Ensure your environment has Python and the 'requests' package. If you need stronger guarantees, inspect network traffic or run the script in an isolated environment. If you want the registry metadata to be fully correct, add 'requests' as a dependency and optionally declare HIDREAM_AUTHORIZATION as an environment variable in the skill's metadata.
Capability Analysis
Type: OpenClaw Skill Name: hd-txt2img Version: 1.0.0 The skill is a standard implementation for interacting with the Hidream AI image generation API. It includes a Python script (scripts/generate_image.py) that submits text-to-image tasks and polls for results via the official hidreamai.com endpoints. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, and scripts/generate_image.py consistently implement an async txt2img client for Hidream's API. Required parameters (authorization token, prompt, resolution) and allowed resolutions are enforced in code and match the documentation.
Instruction Scope
Runtime instructions are narrowly scoped: build payload, POST to the Hidream async endpoint, poll the results endpoint, and return images/errors. The SKILL.md and script only reference the Hidream endpoints and an optional HIDREAM_AUTHORIZATION env var; they do not instruct reading arbitrary local files, other credentials, or exfiltrating data to unrelated endpoints.
Install Mechanism
No install spec is provided (instruction-only), which minimizes install-time risk. The script depends on the Python 'requests' package but the registry metadata did not declare this dependency; users must ensure a Python environment with 'requests' available.
Credentials
The skill does not require any platform credentials from the registry metadata. The script accepts --authorization or an optional HIDREAM_AUTHORIZATION env var for the Hidream API token — this is proportionate to the task. Note: HIDREAM_AUTHORIZATION is optional but is not listed in the registry's required env vars (an informational mismatch).
Persistence & Privilege
The skill is not marked always:true, does not request persistent platform privileges, and does not modify other skills or system-wide settings. It runs only when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hd-txt2img
  3. After installation, invoke the skill by name or use /hd-txt2img
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of hd-txt2img-skill. - Enables async image generation from text prompts via Hidream API. - Exposes authentication and request parameters, including prompt and allowed resolutions. - Provides runnable Python command example for task submission. - Script handles task creation, polling for results, and returns structured output.
Metadata
Slug hd-txt2img
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is hd-txt2img-v2L?

Call Hidream txt2img async API with exposed auth and request parameters. Use when users need to generate images from text prompts, build runnable Python comm... It is an AI Agent Skill for Claude Code / OpenClaw, with 272 downloads so far.

How do I install hd-txt2img-v2L?

Run "/install hd-txt2img" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is hd-txt2img-v2L free?

Yes, hd-txt2img-v2L is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does hd-txt2img-v2L support?

hd-txt2img-v2L is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created hd-txt2img-v2L?

It is built and maintained by zhihui-chen-xx (@zhihui-chen-xx); the current version is v1.0.0.

💬 Comments