Pricing
Compare models →| Output | Price |
|---|---|
| Per image | $0.025 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
size | string | The size of the generated media in pixels (width*height).Default: "1024*1024"Minimum: 256 · Maximum: 1536 |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
Hunyuan Image 2.1
Hunyuan Image 2.1 is a state-of-the-art text-to-image generation model from Tencent that transforms written descriptions into stunning, high-quality visuals. With flexible resolution control and multiple output formats, it delivers exceptional detail, composition, and artistic quality.
Why It Stands Out
- High-quality generation: Produces sharp, detailed images with excellent composition and visual appeal.
- Prompt Enhancer: Built-in AI-powered prompt optimization helps craft better descriptions for improved results.
- Flexible resolution: Customize width and height independently for any aspect ratio.
- Multiple output formats: Export as JPEG, PNG, or WebP based on your needs.
- Reproducibility: Use the seed parameter to recreate exact results or explore variations.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
| width | No | Output width in pixels (default: 1024). |
| height | No | Output height in pixels (default: 1024). |
| seed | No | Set for reproducibility; -1 for random. |
| output_format | No | Output format: jpeg, png, or webp (default: jpeg). |
How to Use
- Write a prompt describing the image you want. Use the Prompt Enhancer for AI-assisted optimization.
- Set dimensions — adjust width and height for your desired aspect ratio.
- Choose output format — select JPEG, PNG, or WebP.
- Set a seed (optional) for reproducible results.
- Click Run and download your image.
Best Use Cases
- Creative Art & Illustration — Generate unique artwork, concept art, and digital illustrations.
- Marketing & Social Media — Produce eye-catching visuals for campaigns and posts.
- Product Visualization — Create product mockups and lifestyle imagery.
- Poster & Print Design — Generate high-resolution artwork for posters, banners, and print materials.
- Design Prototyping — Quickly visualize ideas before committing to full production.
Pricing
| Output | Price |
|---|---|
| Per image | $0.025 |
Pro Tips for Best Quality
- Be descriptive in your prompt — include style, mood, lighting, composition, and specific details.
- Use style keywords like "cinematic," "photorealistic," "oil painting," or "anime" to guide the aesthetic.
- Adjust aspect ratio to match your use case — vertical for posters, horizontal for banners, square for social media.
- Fix the seed when iterating to compare the effect of different prompt variations.
- Use PNG format for images requiring transparency or maximum quality.
Notes
- Processing time varies based on resolution and current queue load.
- Please ensure your prompts comply with content guidelines.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Hunyuan Image 2.1 Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/hunyuan-image-2.1 for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"size": "1024*1024",
"seed": 0,
"output_format": "jpeg"
}Hunyuan Image 2.1 Text-to-Image API — Frequently asked questions
What is the Hunyuan Image 2.1 API?
Hunyuan Image 2.1 is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. HunyuanImage-2.1 is an efficient diffusion text-to-image model producing high-resolution 2K images with detailed, photorealistic results. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Hunyuan Image 2.1 API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/hunyuan-image-2.1.
How much does Hunyuan Image 2.1 cost per run or per second?
Hunyuan Image 2.1 starts at $0.025 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Hunyuan Image 2.1 accept?
Key inputs: prompt, size, seed, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/hunyuan-image-2.1.
How long does Hunyuan Image 2.1 take to generate?
Reported generation time on OpenSIAI is around 33 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Hunyuan Image 2.1 outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
