> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hunyuan Hy-Image 3.5 FAQ

> Frequently asked questions about Tencent Hunyuan Hy-Image 3.5 Preview (hy-image-v3.5-preview-2k / -4k): fixed dimensions, images vs image, default base64, 4K timeouts, billing, and error codes.

> [!NOTE]
>
> 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](https://docs.apiyi.com/en/faq.md).

## Models and Dimensions

> [accordion] What is the difference between hy-image-v3.5-preview-2k and -4k? Why merge 1K/2K into one model?
>
> `-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.

> [accordion] Why does size still return 2048×2048 or 4096×4096?
>
> 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`.

> [accordion] How many images per request? Why does n=2 return only one?
>
> `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

> [accordion] What is the difference between images and image? Why does image return only 1536×1536?
>
> * **`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.

> [accordion] Can I send a reference image without a prompt?
>
> **No.** Sending only `images` or `image` without a `prompt` returns 400:
>
> ```text theme={null}
> prompt is required
> ```
>
> Even for reference-guided redrawing, describe the instruction, such as "keep the composition and subject, restyle as a watercolor painting".

> [accordion] Do references support URLs and base64? What is the limit?
>
> 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.

> [accordion] Can I use the multipart /v1/images/edits endpoint?
>
> 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

> [accordion] Why is the default response a large base64 string? How do I get a URL?
>
> The default is `response_format: "b64_json"`, returned in `data[0].b64_json` (plain base64, no `data:` prefix). For a URL, pass:
>
> ```json theme={null}
> { "response_format": "url" }
> ```
>
> 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.

> [accordion] Why does response\_format=webp still return base64?
>
> 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`.

> [accordion] How long does 4K take, how large is the response, and what timeout should I use?
>
> * 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.

> [accordion] How is billing calculated? Do more references cost more? Are failures 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](https://docs.apiyi.com/en/faq/recharge-promotions.md).

> [accordion] Can I use usage for billing reconciliation?
>
> **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

> [accordion] What does a content moderation block return? Should I retry?
>
> It returns **HTTP 400** with `code` / `type` set to `content_safety_violation` and the message `Input Prompt violates policy`:
>
> ```json theme={null}
> {
>   "error": {
>     "message": "Input Prompt violates policy",
>     "type": "content_safety_violation",
>     "code": "content_safety_violation"
>   }
> }
> ```
>
> This is deterministic; **do not retry**. Rewrite the prompt.

> [accordion] Why does a wrong model name return 503?
>
> When the model does not exist or is not enabled in the current group, the gateway returns:
>
> ```text theme={null}
> Current group default has no available channels for model ...
> ```
>
> 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.

> [accordion] Are multi-turn editing, seed, footnote watermark, and search augmentation supported?
>
> 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.

> [accordion] How do I get the best Chinese text rendering?
>
> 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.

## Related Docs

* [Hunyuan Hy-Image 3.5 Overview](https://docs.apiyi.com/en/api-capabilities/hunyuan-image/overview.md)
* [Text-to-Image API Reference](https://docs.apiyi.com/en/api-capabilities/hunyuan-image/text-to-image.md)
* [Reference-Image API Reference](https://docs.apiyi.com/en/api-capabilities/hunyuan-image/image-edit.md)
* [Hunyuan Hy-Image 3.5 Agent Skill](https://docs.apiyi.com/en/api-capabilities/hunyuan-image/skills.md)
* [Image API Best Practices](https://docs.apiyi.com/en/api-capabilities/image-api-best-practices.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.