Skip to main content
This page covers model-specific questions for Tencent Hunyuan Hy-Image 3.5 Preview (public models hy-image-v3.5-preview-2k / hy-image-v3.5-preview-4k). For account, Token, and top-up questions, see the FAQ home.

Models and Dimensions

-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 price for 1K / 1.5K / 2K is the same (¥0.15 per image), so APIYI merges 1K–2K into -2k and gives you the highest resolution in that tier, 2048×2048. 4K is a separate -4k model.
Both models override size: -2k is fixed at 2048x2048 and -4k at 4096x4096.
  • Text-to-image: 1024x1024, 4096x4096, and abc all return the model’s fixed resolution.
  • Reference images: the recommended images field is also overridden.
  • Only the legacy image edit path honors an explicit size, and that is compatibility behavior, not a recommended pattern.
Switch models to change resolution; do not pass size.
hy-image-v3.5-preview-2k / -4k always return one image. n has no effect; n=2 returns one image and bills once. Send concurrent requests for multiple images.

Reference Images

  • images (recommended): a JSON array of public URLs or data:image/...;base64,...; uses the 2K/4K override and returns 2048×2048 or 4096×4096.
  • image (legacy): goes through the edit path; without size it outputs 1536×1536. Pass size explicitly for 2K/4K.
Both bill at the model’s flat price: using image and getting 1536 still costs the -2k / -4k price. Use images for new integrations.
No. Sending only images or image without a prompt returns 400:
Even for reference-guided redrawing, describe the instruction, such as “keep the composition and subject, restyle as a watercolor painting”.
Both are supported:
  • Public URLs: must be direct, publicly reachable links. Login-protected, hotlink-protected, or expired signed URLs fail.
  • Data URIs: data:image/png;base64,..., suitable for local files and private networks.
The official docs list ≤20MB per image and ≤20 input images total. Two references were verified in testing. References are numbered in images array order; refer to them as “image 1 / image 2” in the prompt.
It works, but outputs only 1536×1536, does not apply the 2K/4K override, and still bills at the selected model’s flat price. Use it only for legacy compatibility. New integrations should use POST /v1/images/generations with the images array.

Delivery and Billing

The default is response_format: "b64_json", returned in data[0].b64_json (plain base64, no data: prefix). For a URL, pass:
The response then contains data[0].url on hdcdn.agisuitepro.com. HEAD returns 200 and <img> works, but CORS preflight returns 403, so browser fetch / canvas access needs a server-side proxy.
Only b64_json and url are supported. Invalid values such as webp silently fall back to the default b64_json without an error. Do not rely on that fallback; send only b64_json or url.
  • 4K text-to-image: 45–58 seconds measured; 4K reference generation: 21–55 seconds.
  • 4K PNG: 12.6–18.9 MB; base64 response: 17.6–26.4 MB.
  • 2K PNG: 4.4–7.1 MB; base64 response: 6.1–10.0 MB.
Use at least 120 seconds for 2K, 240 seconds for 4K, and 360 seconds for 4K base64. Raise reverse-proxy and serverless response-size limits to at least 30MB. This is synchronous: a disconnect loses the result but the request is usually still billed.
Flat per-model, per-image pricing:
  • hy-image-v3.5-preview-2k: $0.022 per image
  • hy-image-v3.5-preview-4k: $0.030 per image
size, response_format, reference count, and actual output dimensions do not affect the price. Failed requests (400 / 401 / 500 / 503) are not billed. Official ¥0.15 / ¥0.20 convert at the fixed 1:7 exchange rate, matching the official list. Top-up bonuses bring the effective price to about 83–91% of list; the discount comes from the recharge activity, not a model price cut. See Top-up Bonuses.
No. usage.prompt_tokens is always 1000 and output_tokens is always 0; these are placeholders. Use the APIYI console bill for actual charges.

Errors and Limits

It returns HTTP 400 with code / type set to content_safety_violation and the message Input Prompt violates policy:
This is deterministic; do not retry. Rewrite the prompt.
When the model does not exist or is not enabled in the current group, the gateway returns:
Check that the model ID is exactly hy-image-v3.5-preview-2k or hy-image-v3.5-preview-4k (case, hyphens, and suffix). This is not a service outage; do not retry.
These are native features of Tencent’s Chat/Messages protocol and are not exposed by the current OpenAI Images compatibility layer:
  • Multi-turn editing / session: not supported
  • seed: reproducibility not guaranteed
  • footnote watermark: not supported
  • use_search_tool search augmentation: not supported
  • generate_max_pixels: not supported
This API provides text-to-image, reference-image generation, fixed 2K/4K output, and b64/url delivery.
Wrap the text in quotes and state its position and hierarchy. For example:
A Chinese movie poster with the main title “Between Mountains and Seas” centered, subtitle “November 24, 2026, Beijing Premiere”, deep blue night sky and golden mountains.
Titles, dates, and locations came out character-accurate in testing. More text and smaller text increase the error rate; keep the main title to about 8–12 characters.