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
What is the difference between hy-image-v3.5-preview-2k and -4k? Why merge 1K/2K into one model?
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.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 2048x2048 and -4k at 4096x4096.- Text-to-image:
1024x1024,4096x4096, andabcall return the model’s fixed resolution. - Reference images: the recommended
imagesfield is also overridden. - Only the legacy
imageedit path honors an explicitsize, and that is compatibility behavior, not a recommended pattern.
size.How many images per request? Why does n=2 return only one?
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
What is the difference between images and image? Why does image return only 1536×1536?
What is the difference between images and image? Why does image return only 1536×1536?
images(recommended): a JSON array of public URLs ordata:image/...;base64,...; uses the 2K/4K override and returns 2048×2048 or 4096×4096.image(legacy): goes through the edit path; withoutsizeit outputs 1536×1536. Passsizeexplicitly for 2K/4K.
image and getting 1536 still costs the -2k / -4k price. Use images for new integrations.Can I send a reference image without a prompt?
Can I send a reference image without a prompt?
images or image without a prompt returns 400:Do references support URLs and base64? What is the limit?
Do references support URLs and base64? What is the limit?
- 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.
images array order; refer to them as “image 1 / image 2” in the prompt.Can I use the multipart /v1/images/edits endpoint?
Can I use the multipart /v1/images/edits endpoint?
POST /v1/images/generations with the images array.Delivery and Billing
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", returned in data[0].b64_json (plain base64, no data: prefix). For a URL, pass: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.Why does response_format=webp still return base64?
Why does response_format=webp still return base64?
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.How long does 4K take, how large is the response, and what timeout should I use?
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.
How is billing calculated? Do more references cost more? Are failures billed?
How is billing calculated? Do more references cost more? Are failures billed?
hy-image-v3.5-preview-2k: $0.022 per imagehy-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.Can I use usage for billing reconciliation?
Can I use usage for billing reconciliation?
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
What does a content moderation block return? Should I retry?
What does a content moderation block return? Should I retry?
code / type set to content_safety_violation and the message Input Prompt violates policy:Why does a wrong model name return 503?
Why does a wrong model name return 503?
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.Are multi-turn editing, seed, footnote watermark, and search augmentation supported?
Are multi-turn editing, seed, footnote watermark, and search augmentation supported?
- Multi-turn editing / session: not supported
seed: reproducibility not guaranteedfootnotewatermark: not supporteduse_search_toolsearch augmentation: not supportedgenerate_max_pixels: not supported
How do I get the best Chinese text rendering?
How do I get the best Chinese text rendering?
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.