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...
Use Python script scripts/generate_image.py to submit txt2img tasks and wait for final images.
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=...Authorization: Bearer {USER_Authorization}Content-Type: application/jsonauthorization (string): token value only, without Bearer prompt (string): text promptresolution (string): must be one of:
1024*1024832*1248880*1168768*13601248*8321168*8801360*768python3 hd-txt2img-skill/scripts/generate_image.py \
--authorization "sk-" \
--prompt "一个跳舞的小女孩" \
--resolution "1024*1024"
task_id.ZIP package — ready to use