Hunyuan Image 2.1
hunyuan-image-2-1Generate high-quality 2K resolution images from text prompts
- Price
- US$0.024/image
- Aspect ratios
- 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3
- Input → output
- Text → Image
- Developer
- Tencent
- Updated
- September 24, 2026
Playground
Try Hunyuan Image 2.1
Input & output
This run
US$0.024 · 2.4 credits
For accounts without a purchase: runs above 2 credits need a top-up.
New here?
10 free credits (US$0.10) when you sign up with Google
Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.
Examples
Open full sizePrompt
A cartoon consisting of four panels, arranged in a 2x2 grid, depicts a chameleon's dilemma. Top left: A cartoon-style chameleon rests on a broad, emerald green leaf. Its skin, the exact same green color, with light green texture details, creates perfect camouflage, almost blending in with the background. The chameleon's large eyes flicker curiously, its body relaxed against a backdrop of blurred green jungle. Top right: The same chameleon climbs from the edge of the leaf onto a rough, dark brown branch. Its body has completely transformed to the same dark brown as the branch, and its skin mimics the texture of bark. Its head is slightly raised, its mouth curled upward, and its eyes reveal a look of pride and satisfaction. Bottom left: The chameleon confidently approaches a picnic blanket spread on the grass. One of its front paws has already stepped onto the blanket, which features a red and white checkered pattern. The chameleon's body, still brown, is about to fully step onto the intricately patterned fabric, its expression filled with anticipation. Bottom right: The chameleon stands perfectly in the center of the red and white checkered picnic blanket. Its color system has malfunctioned, and its body surface rapidly and chaotically flashes through a variety of colors and patterns, including neon pink spots, electric blue stripes, and pixelated blocks, completely failing to match the checkered background. Its eyes are wide open, its mouth gaping in a frightened O shape, an…
Settings
- aspect_ratio
- 1:1
Open full sizePrompt
A wildlife poster design for the Serengeti plains features a central illustration of a chibi-style explorer riding a lion cub, set against a backdrop of rolling hills. At the top of the composition, the title "Serengeti: Roar of Adventure" is displayed in a large, whimsical font with decorative, swirling letters. The main scene depicts a wide-eyed chibi explorer, characterized by a large head and a small body, sitting atop a friendly lion cub. The explorer wears a green explorer's hat, a backpack, and holds onto the cub's mane, looking forward with a look of wonder. The lion cub, with a light brown mane and a smiling expression, strides forward, its body rendered in warm orange tones. In the background, the Serengeti plains are illustrated with rolling hills and savanna grass, all in shades of warm yellow and soft brown. Below the main illustration, the tagline "Where Dreams Run Wild" is written in a smaller, elegant script. The overall presentation is that of a poster design, combining a cute chibi illustration style with playful, whimsical typography.
Settings
- aspect_ratio
- 1:1
Open full sizePrompt
A vibrant winter wonderland poster for Lapland is presented, featuring a central illustration of a fluffy fox sledding down a snowy hill beneath an aurora borealis sky. In the foreground, a small, fluffy fox with bright orange fur is depicted joyfully riding a simple wooden sled. The fox wears a cozy, patterned scarf around its neck, and its tail curls happily as it glides over the snow. The background is dominated by a spectacular aurora borealis, with swirling curtains of light in shades of icy cyan and pink dancing across the night sky, interspersed with sparkling white snowflakes. Snow-covered mountains and pine trees are visible beneath the aurora. At the top of the poster, the text "Lapland Magic" is displayed in a large, playful font that resembles snowflakes. A smaller tagline, "Find Your Frosty Adventure," is written in an elegant script below the main title. The overall color palette consists of of icy cyan, pink, and sparkling white, creating a magical and inviting atmosphere. The presentation is that of a graphic design poster, combining illustration and typography.
Settings
- aspect_ratio
- 1:1
About Hunyuan Image 2.1
Hunyuan Image 2.1 is a model by Tencent in the Image generation category. On Railwail, Hunyuan Image 2.1 costs US$0.024 per image. Supported aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2 and 2:3.
Pricing
| Per image | US$0.024 per image |
|---|
- 1 credit = US$0.01
Cost calculator
Price calculator
Total
US$2.40
240 credits
Per run
US$0.024 · 2.4 credits
Fixed price per run, known before the run starts.
API
curl https://railwail.com/api/v1/images/generations \
-H "Authorization: Bearer $RAILWAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hunyuan-image-2-1",
"prompt": "A lighthouse on a rocky coast at sunset, photorealistic"
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RAILWAIL_API_KEY"],
base_url="https://railwail.com/api/v1",
)
image = client.images.generate(
model="hunyuan-image-2-1",
prompt="A lighthouse on a rocky coast at sunset, photorealistic",
)
print(image.data[0].url)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.RAILWAIL_API_KEY,
baseURL: "https://railwail.com/api/v1",
});
const image = await client.images.generate({
model: "hunyuan-image-2-1",
prompt: "A lighthouse on a rocky coast at sunset, photorealistic"
});
console.log(image.data[0].url);// npm install railwail
import railwail from "railwail";
const rw = railwail(process.env.RAILWAIL_API_KEY);
const res = await rw.image("hunyuan-image-2-1", "A lighthouse on a rocky coast at sunset, photorealistic");
console.log(res.data[0].url);Specifications
- Model ID
hunyuan-image-2-1- Developer
- Tencent
- Category
- Image generation
- Input
- Text
- Output
- Image
- Aspect ratios
- 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3
- Billing
- Fixed price, known before the run
- Catalog entry updated
- September 24, 2026
Input parameters
Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.
promptrequiredType: TextDefault: –Allowed values: –aspectRatioType: ChoiceDefault: –Allowed values: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2 or 2:3
Tags
- replicate
- tencent
- text-to-image
Use cases
Frequently asked questions
What is Hunyuan Image 2.1?
Hunyuan Image 2.1 is a model by Tencent in the Image generation category. On Railwail you can call it with an API key through the Railwail API.
How much does Hunyuan Image 2.1 cost on Railwail?
On Railwail, Hunyuan Image 2.1 costs US$0.024 per image. The price is known before the run starts. Usage is paid from prepaid credits; 1 credit equals US$0.01.
Which settings does Hunyuan Image 2.1 support?
According to its input schema, Hunyuan Image 2.1 knows these parameters: prompt and aspectRatio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2 or 2:3).
How fast is Hunyuan Image 2.1?
There are not enough measured runs of Hunyuan Image 2.1 on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.
Is Hunyuan Image 2.1 better than FLUX 1.1 Pro?
That depends on the task. Hunyuan Image 2.1 (Tencent) and FLUX 1.1 Pro (Black Forest Labs) are both models in the Image generation category. The comparison page shows their prices and specifications side by side.
Compare Hunyuan Image 2.1 and FLUX 1.1 ProHow do I use Hunyuan Image 2.1 through the API?
Create a Railwail API key and send your request with the model ID hunyuan-image-2-1. Code examples for curl, Python and JavaScript are in the API section of this page.
Comparable models
All in this category- FLUX 1.1 ProBlack Forest Labs
Black Forest Labs' flagship text-to-image model. Faster generation than FLUX.1 Pro at higher prompt adherence, with strong photorealism and reliable spatial composition. Runs as a hosted Replicate model.
- Flux 1.1 Pro UltraBlack Forest Labs
FLUX 1.1 Pro in ultra mode. Up to 4 megapixel images with raw mode for photorealism.
- Flux DevBlack Forest Labs
Black Forest Labs' development model. Fast, high-quality image generation with LoRA support.
Use Hunyuan Image 2.1 via the API
One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = US$0.01.