hd-txt2img-v2L
/install hd-txt2img
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/asyncGET 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, withoutBearerprompt(string): text promptresolution(string): must be one of:1024*1024832*1248880*1168768*13601248*8321168*8801360*768
Execution Example
python3 hd-txt2img-skill/scripts/generate_image.py \
--authorization "sk-" \
--prompt "一个跳舞的小女孩" \
--resolution "1024*1024"
Script Behavior
- Build async txt2img request payload.
- Submit task and get
task_id. - Poll result API until task finishes.
- Return final structured result object from code and print JSON in CLI mode.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install hd-txt2img - After installation, invoke the skill by name or use
/hd-txt2img - Provide required inputs per the skill's parameter spec and get structured output
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.