Tencent Cloud Hunyuan Text to Image
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @tencent-adm/tencentcloud-aiart-texttoimage.
About this skill
What problem it solves
When an agent needs to turn a user's text description into an AI-generated image, calling a cloud image API directly involves job submission, status polling, and result URL extraction. TencentCloud Aiart TextToImage wraps Tencent Cloud's Hunyuan text-to-image service into executable scripts, making it a tool for image generation rather than just describing the image.
How it works
- Default entrypoint: use
main.pyto submit the job and poll for the result automatically. Prefer this mode when the user does not specify a workflow. - Step-by-step control:
submit_job.pyonly submits the job and returns aJobId;query_job.pyqueries or polls byJobId, which fits asynchronous pipelines. - Key parameters:
--imagesaccepts up to 3 reference image URLs injpg/jpeg/png/webp, with each base64 payload under 10MB;--resolutionsets width and height between 512 and 2048 pixels, with total area no more than 1024×1024;--seedfixes reproducibility;--reviseenables prompt revision by default and adds about 20 seconds. - Runtime setup: it requires Tencent Cloud API credentials and can install Python dependencies automatically; keep credentials in environment variables rather than hard-coding them.
Caveats
Generated image URLs expire after 1 hour, so save them promptly. Prompt revision increases latency. If the call fails, return a clear error instead of fabricating an image URL or describing the result.
Use Cases
- Turn a character brief into a square reference image for concept reviews
- Use two reference images to guide a product hero image style and generate 1024:768 candidates
- Poll an async image generation job by JobId and archive the usable image URLs
- Rerun the same prompt with a fixed seed to compare how reference images and prompt revision affect output
Best For
- Product managers who need to turn product copy into quick visual sketches
- Marketing designers who want to constrain style with reference images and generate poster candidates
- Engineers who need to submit image generation jobs and poll results in automated workflows
- Algorithm testers who want to compare model outputs using fixed seeds and controlled resolutions
Related Skills
Generate an interactive HTML product detail page from images and copy, with multi-product carousel, inline text editing, design controls, and PDF/JPG/PSD export support.
Enter a material name to get preview and download links for free, commercially usable video assets, with paid platform options, pricing, and search suggestions when results are limited.
A local CLI for Dreamina image and video generation, including credit checks, async submission, result queries, and task history review.
Generate and validate JianYing drafts from storyboard JSON with narrated commentary, original-sound preservation, timing checks, and draft inspection.