← 返回
AI智能 Key 中文

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...
使用公开的认证和请求参数调用 Hidream txt2img 异步 API。用于从文本提示生成图像,构建可运行的 Python 代码。
zhihui-chen-xx
AI智能 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 505
下载
💾 13
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 20:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,189
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,240
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,474