Overview
Tencent Hunyuan Hy-Image 3.5 Preview (official model IDhy-image-v3.5-preview) is a preview image-generation model released by Tencent Hunyuan on 2026-09-22 (UTC+8). The native API uses a Chat/Messages protocol and supports text-to-image, reference-image generation, multi-turn editing, chain-of-thought rewriting, and search augmentation, with output up to 4096×4096 (4K).
APIYI offers two fixed-resolution models through the Tencent Cloud official channel (official relay), both on the same OpenAI Images-compatible endpoint:
hy-image-v3.5-preview-2k: fixed 2048×2048, $0.022 per imagehy-image-v3.5-preview-4k: fixed 4096×4096, $0.030 per image
-2k at 2048×2048, -4k at 4096×4096, regardless of size), accurate Chinese text rendering (poster titles, dates, and locations), multi-reference generation (the images array accepts URLs or data URIs), flat per-image pricing (reference count and response format do not add cost), and official price parity (fixed 1:7 conversion). Built for posters, e-commerce hero images, film assets, and social media visuals.Text-to-Image API
POST /v1/images/generations generates 2K/4K images from a prompt, with an interactive Playground.Reference-Image API
images array with an instruction; output stays fixed at 2K/4K.Agent Skill
FAQ
images vs image, default base64, 4K timeouts, billing, and error codes.Let an AI Agent Do the Integration
Copy this prompt and paste it into Codex / Claude Code / Cursor
It first fetches the plain-text version of this page (append .md to any docs URL), then writes code for your stack. It already accounts for the high-frequency traps: size is overridden, images and image produce different output sizes, default responses are large base64 payloads, and 4K needs a longer timeout.
Help me integrate / troubleshoot Tencent Hunyuan Hy-Image 3.5 Preview text-to-image and reference-image generation in this project.
Read the docs first: fetch
https://docs.apiyi.com/en/api-capabilities/hunyuan-image/overview.mdfor the plain-text version of this page. For parameter details, append.mdto the text-to-image and image-edit pages as well.
- Model IDs:
hy-image-v3.5-preview-2k(fixed 2048×2048) orhy-image-v3.5-preview-4k(fixed 4096×4096). Do not passsize; it is overridden anyway.
10 requirements in total. Use the button below to copy the full prompt.
What this prompt saves you from
What this prompt saves you from
Why APIYI’s Hunyuan Hy-Image 3.5?
Tencent Cloud official relay
hy-image-v3.5-preview on Tencent Cloud TokenHub, exposed through the standard /v1/images/generations endpoint with an OpenAI Images-compatible response shape.Official parity at 1:7
Fixed 2K / 4K, simple billing
Global access, no Tencent account
api.apiyi.com from mainland China data centers, residential networks, or overseas nodes with one key.A complete image stack
Hands-on support
Key Features
Fixed 2K / 4K output
-2k always returns 2048×2048 and -4k always returns 4096×4096. Pick a model; no size math required.Chinese text rendering
Reference-image generation
images array accepts 1–20 references as URLs or data URIs. Style transfer, composition preservation, and multi-image fusion are supported.Multi-reference input
Base64 by default, URL on request
data[0].b64_json for server-side saving; pass response_format: "url" for a platform CDN URL suitable for web display.OpenAI Images compatible
model and prompt from Python, Node, or cURL. No need to learn Tencent’s native Chat/Messages protocol.Synchronous responses
Flat per-image pricing
size, response_format, reference count, and actual output dimensions do not affect the price. Budget per image.Sample Outputs
Chinese text rendering (hy-image-v3.5-preview-2k, prompt asks for the title “Between Mountains and Seas” and the subtitle “November 24, 2026, Beijing Premiere”):

hy-image-v3.5-preview-2k, images receives a red circle and blue square reference, prompt asks to preserve composition):

Pricing
Flat per-image pricing. The model list price matches the official list item by item at the 1:7 fixed exchange rate; the effective price depends on top-up bonuses:- List price matches the official list: ¥0.15 / ¥0.20 convert to $0.022 / $0.030 at the 1:7 fixed rate, with no markup.
- The discount lives in top-up bonuses: current top-up bonuses bring the effective price to about 83–91% of list (17–9% off). This is a platform top-up benefit, not a model price cut, and it is not reflected in the model’s unit price.
- Live terms come from the promotion page: see Top-up Bonuses for current tiers, validity, and stacking rules.
- Flat per image, not per pixel:
-2kand-4keach have a fixed price.sizeand actual output dimensions do not change it. - References are free: 1 or 20 reference images cost the same. Multipart edits bill at the same model price.
- Failures are not billed: 400 / 401 / 500 / 503 errors produce no image and no charge;
usageis a placeholder.
Group Setup
This series is available in theDefault and SVIP groups, both at 1.0x. A new Token can call it directly; no dedicated group is required.
Pay-as-you-go Priority and Pay-per-request work. We recommend Pay-as-you-go Priority so the same Token also covers token-billed models.Rate: two concurrent 2K requests completed normally in testing (23–35 seconds each). For large batches, send concurrent requests and watch for 429s; contact support in advance if you need more capacity.Technical Specs
API Endpoints
Key Parameters
Size: fixed by model, do not pass size
Reference images: images, image, and multipart
response_format
- Omitted:
data[0].b64_json(plain base64, nodata:prefix). "url":data[0].urlonhdcdn.agisuitepro.com. Works in<img>; HEAD returns 200, CORS preflight returns 403.- Invalid values (such as
"webp"): silently fall back tob64_json. Do not rely on them.
Best Practices
Pick the model by use case
hy-image-v3.5-preview-2k for web images, social media, and general posters. Use hy-image-v3.5-preview-4k for print, film assets, and heavy cropping. Only the model name changes.Do not pass size or n
size is overridden and n is fixed at 1. For multiple images, send concurrent requests. Two concurrent 2K requests completed normally in testing.Use images for references
images: ["https://..."]. Multiple: images: ["url1", "url2"]. Convert local files to data:image/png;base64,.... Avoid image, which returns only 1536.Quote text that must appear
Use URL mode for the web
response_format: "url" and let <img> load the CDN image. Use the default base64 for server-side file writes.Set timeouts by tier
Do not retry moderation blocks
content_safety_violation. This is deterministic; rewrite the prompt instead of retrying.Compress reference images
Error Codes & Retries
- Use a timeout of ≥120s for 2K and ≥240s for 4K (360s for 4K base64).
- Retry only 429s, network timeouts, and deterministic 5xx errors with exponential backoff. Do not retry moderation 400s.
- Log
x-oneapi-request-idand the responseidfor troubleshooting. - The API is synchronous: a client disconnect loses the result but the request is usually still billed. Set generous timeouts.
FAQ
What is the difference between hy-image-v3.5-preview-2k and -4k?
What is the difference between hy-image-v3.5-preview-2k and -4k?
-2k always outputs 2048×2048 and -4k always outputs 4096×4096. The endpoint, parameters, and reference-image behavior are identical; only the model name changes. The official 1K/1.5K/2K price is the same, so -2k gives the best value in that tier. See the FAQ.Why does size still return 2048×2048 or 4096×4096?
Why does size still return 2048×2048 or 4096×4096?
size: -2k is fixed at 2048×2048 and -4k at 4096×4096. size only works on the legacy image edit path; the recommended images path is also overridden.Why is the default response a large base64 string? How do I get a URL?
Why is the default response a large base64 string? How do I get a URL?
response_format: "b64_json" and the image is in data[0].b64_json. Pass response_format: "url" to receive a stable URL on hdcdn.agisuitepro.com. A 4K base64 response can reach 26 MB, so use URL mode for web display.What is the difference between images and image?
What is the difference between images and image?
images is the recommended JSON array and returns fixed 2K/4K. image is the legacy edit path and returns only 1536×1536 without size. Both bill at the model’s flat price; use images for all new integrations.How many images can I get per request? Why does n=2 return only one?
How many images can I get per request? Why does n=2 return only one?
n has no effect and you are billed once. Send concurrent requests for multiple images.How long does 4K take, and how large is the response?
How long does 4K take, and how large is the response?
Related Docs
- Text-to-Image API & Playground
- Reference-Image API & Playground
- Hunyuan Hy-Image 3.5 Agent Skill
- Hunyuan Hy-Image 3.5 FAQ
- Image API Best Practices
- Full Model Pricing