← 返回 Skills 市场
zhihui-chen-xx

hd-txt2img-v2L

作者 zhihui-chen-xx · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
272
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hd-txt2img
功能描述
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...
使用说明 (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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hd-txt2img
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hd-txt2img 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug hd-txt2img
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 272 次。

如何安装 hd-txt2img-v2L?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hd-txt2img」即可一键安装,无需额外配置。

hd-txt2img-v2L 是免费的吗?

是的,hd-txt2img-v2L 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

hd-txt2img-v2L 支持哪些平台?

hd-txt2img-v2L 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 hd-txt2img-v2L?

由 zhihui-chen-xx(@zhihui-chen-xx)开发并维护,当前版本 v1.0.0。

💬 留言讨论