Guide
Hunyuan-Image-3.0 Text-to-Image Prompting and Parameter Guide
How to tune image_size, guidance_scale, num_inference_steps, negative_prompt, and enable_prompt_expansion on HiAPI for consistent 1MP outputs at $0.1498 per image.
- Model
- hunyuan-image-3.0
On this page
hunyuan-image-3.0/text-to-image on HiAPI delivers high-fidelity text-to-image generation with strong composition, material texture, and bilingual prompt comprehension. Because the HiAPI endpoint exposes a clean, predictable parameter set and flat per-image pricing, you can integrate it into production pipelines without surprise resolution surcharges.
Flat Pricing and Supported Aspect-Ratio Presets
HiAPI exposes five ~1-megapixel presets on image_size, all billed at a flat $0.1498 per image (74,900 quota per image). Setting num_images between 1 and 4 scales cost linearly (for example, num_images: 4 costs $0.5992 per request).
image_size Preset | Target Aspect | Typical Dimensions | Best Use Case |
|---|---|---|---|
square_hd (default) | 1:1 | 1024 × 1024 | Product shots, avatars, social cards |
portrait_4_3 | 3:4 | 768 × 1024 | Editorial portraits, e-commerce lookbooks |
portrait_16_9 | 9:16 | 576 × 1024 | Mobile wallpapers, vertical story banners |
landscape_4_3 | 4:3 | 1024 × 768 | Presentation visuals, blog illustrations |
landscape_16_9 | 16:9 | 1024 × 576 | Hero headers, widescreen thumbnails |
Core Parameter Reference
Only prompt is required. Every optional parameter falls back to a sensible default when omitted:
num_inference_steps(integer,1–50, default28): Controls denoising refinement. Values in the24–32range offer the best quality-to-latency ratio; raising to40–50adds marginal micro-texture at higher latency.guidance_scale(number,1–20, default7.5): Controls adherence to the prompt. Use5.0–6.5for softer, organic photography and7.5–9.5when exact object placement or styling matters. Avoid pushing past12unless you intentionally want hyper-saturated contrast.negative_prompt(string, default""): Lists undesired visual traits such as extra fingers, watermarks, blurry typography, or plastic skin. Keep negative prompts concise and specific to observed failure modes.enable_prompt_expansion(boolean, defaultfalse): Rewrites short prompts into richer visual descriptions before generation. Keep itfalsein deterministic templates where you already specify lighting, lens, and framing; turn ittruefor consumer-facing apps where users type 3–6 words.output_format("png"or"jpeg", default"png"): Usepngfor lossless master assets or downstream editing; usejpegfor lightweight web previews.seed(integer, optional): Pins the random noise initialization so you can compare small prompt or parameter tweaks apples-to-apples.
Prompt Structure That Works Reliably
When enable_prompt_expansion is false, organize prompts in five predictable clauses: subject → action/pose → environment → lighting & camera → material/style finish.
A matte black ceramic pour-over coffee dripper resting on a brushed walnut counter,
steam rising gently from freshly brewed coffee in a glass server,
minimalist Tokyo cafe interior softly blurred in the background,
morning window light from camera left with crisp rim highlights, shot on 50mm f/2.0 lens,
natural film grain, realistic ceramic glaze texture, editorial product photography
Production Request Example (HiAPI Async Tasks)
Submit generation requests to POST https://api.hiapi.ai/api/v1/tasks and poll the returned task ID until completion:
{
"model": "hunyuan-image-3.0/text-to-image",
"input": {
"prompt": "Architectural twilight photograph of a timber and glass library beside a still lake, warm interior glow reflecting on the water, overcast blue hour sky, 24mm tilt-shift lens, ultra-clean lines",
"negative_prompt": "watermark, lowres, oversaturated, distorted perspective, floating debris",
"image_size": "landscape_16_9",
"num_images": 2,
"num_inference_steps": 28,
"guidance_scale": 7.5,
"enable_prompt_expansion": false,
"output_format": "png",
"seed": 42018
}
}
Iteration Checklist for Engineering Teams
- Prototype with
num_images: 1and a fixedseedwhile dialing in composition and lighting. - Adjust one lever at a time: tune
guidance_scalebefore adding heavy negative prompts. - Keep master outputs in
pngif you plan to chain results intohunyuan-image-3.0/instruct-editfor localized revisions.
Related articles
View all articles →-
Guide
Hunyuan-Image-3.0 Instruct-Edit Prompt Recipes for Developers
Copy-paste edit instructions for local replacement, style transfer, fidelity wording, and negative lists
11 min read -
Guide
Getting Started with gemini-3.8-flash-lite-tts: Capability Boundaries, Billing, and Integration Practices
From capability assessment to cost estimation, a complete checklist for developers before integrating a TTS model
-
Guide
eleven-v4-turbo Getting Started Guide: Capability Boundaries, Billing, and Integration Practices
A developer-oriented reference for TTS model selection and integration decisions