Specification Parameters
API & System
- Action
- TextToImageLite · Common parameter; the value for this API
- API Version
- 2022-12-29 · Common parameter Version
- Request Domain
- aiart.tencentcloudapi.com · Domain for API requests
- Default Concurrency
- 1个 · Up to 1 submitted tasks can be processed simultaneously
- Prompt Length Limit
- 1024个 utf-8 字符 · Applies to both Prompt and NegativePrompt
- Default Resolution
- 1024:1024 · Supports aspect ratios 1:1, 3:4, 4:3, 9:16, 16:9, with long edges 160–4096 px
- Image Return Method
- base64 或 url,默认 base64 · URL validity is 1 hours
Comparison with Similar Products
| Specifications | 本品 · TextToImageLite | kimi-k3.1-pro | 火山方舟模型 API | qwen-audio-3.1-asr-flash | doubao-seed-2.1-turbo |
|---|---|---|---|---|---|
| Main controller | — | — | — | — | — |
| NPU | — | — | — | — | — |
| Memory / VRAM | — | — | — | — | — |
| Reference unit price | Request a Quote | Request a Quote | Request a Quote | Request a Quote | Request a Quote |
| Inventory | — | — | — | — | — |
Product introduction
API positioning: A Hunyuan text-to-image API built on the Hunyuan large model that intelligently generates images from input text descriptions; documentation last updated 2026-04-20.
Input parameters: Prompt is required, Chinese recommended, up to 1024 utf-8 characters; NegativePrompt is optional, used to reduce described content appearing in generated results; Resolution defaults to 1024:1024, supporting aspect ratios 1:1, 3:4, 4:3, 9:16, 16:9, with long-edge resolutions from 160 to 4096 (in px); a positive Seed value means fixed-seed generation, 0 or omitted means random; LogoAdd defaults to 1, adding a label to the resulting image—Tencent officially recommends a prominent label indicating the image is AI-generated; RspImgType accepts base64 or url, defaulting to base64.
Output parameters: ResultImage returns a Base64 encoding or a generated-image URL (valid for 1 hours; save promptly) depending on RspImgType; Seed and RequestId (for troubleshooting) are also returned.
Integration and delivery requirements: API request domain aiart.tencentcloudapi.com, API version 2022-12-29; 1 concurrent tasks are provided by default, meaning up to 1 submitted tasks can be processed simultaneously. Calls require the corresponding CAM permissions, and the account must have the service enabled in the console with no outstanding balance. For error handling, the documentation lists error codes such as authentication failure, text or image moderation rejection, input text too long, request rate limits, and arrears/insufficient balance.
Selection guidance: This page is API documentation only and does not provide pricing or context length; verify billing details on the Tencent Cloud pricing page before purchase, and assess the impact of the 1 concurrency limit on business throughput.
Compilation Notes 内容由 AI 根据公开资料整理;事实与推断分开呈现。
Content Correction