Tencent: Hy Image 3.5 Preview
HY Image 3.5 Preview combines text-to-image generation, reference-based creation and multi-turn editing. Tencent documents up to 20 reference images, automatic size selection and explicit output sizes up to a 4096 × 4096 image for detailed visual work.
About the model
This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.
HY Image 3.5 Preview is Tencent’s unified image-generation and editing model. It accepts a written brief with optional reference images and supports continuing the same visual task across several turns. The result is an image for a defined scene, composition or edit. Tencent’s examples include product imagery, campaign posters, interface-design visuals and material concepts. Choose whether the task needs a new image, a composition informed by references or a focused change to an existing result.
The producer identifies the edition as hy-image-v3.5-preview and documents a 100K-token prompt limit. Its input is a chronological conversation containing text and images, with the final user message supplying the current instruction. Earlier messages provide context for iterative editing. This differs from HY Image 3.0’s single-prompt workflow and its separate input limits. For a continuous design task, retain the relevant brief, reference roles and chosen image so the next instruction can build on the intended visual state.
Prepare PNG or JPEG/JPG reference images. Reference inputs can contain up to 20 images, each no larger than 20 MB in the documented workflow. An image can be supplied as a referenced or encoded asset. If the conversation carries too many images, the producer guide describes trimming older images first. Keep the active reference set focused rather than relying on every historical image to remain in context. The input-resizing control preserves smaller images and scales larger ones proportionally toward a pixel-area target; its default target is 1,048,576 pixels. Preserve sufficient visible detail for the product, material or layout that needs to guide the result.
Output size has two distinct preparation paths. With automatic sizing, generate_max_pixels sets a target area: 1,048,576 pixels for the 1K tier, 2,359,296 for the default 1.5K tier, or 4,194,304 for 2K. The producer FAQ says an area-target setting supplied alone defaults to a square ratio. When both size controls are omitted, the model uses the brief and the default 1.5K tier. Those tiers do not create an automatic 4K setting. Use an area tier when a square image suits the task. To let the brief guide proportions at the default 1.5K tier, omit both size controls; request explicit dimensions when the layout requires a specific portrait or wide size.
For explicit dimensions, the producer permits positive integer sides from 256 to 8192 pixels, with a total area no larger than 16,777,216 pixels. A 4096 × 4096 square meets that limit. The side range and area ceiling apply together, so an 8192-pixel edge does not permit an 8192 × 8192 image. Request the required width and height explicitly when the final layout needs a specific size, rather than assuming a target-area tier determines the same dimensions. Keep crop-sensitive details and the required empty space visible in the prompt.
The model supports multi-turn editing through returned conversation history. Tencent distinguishes the final delivered image from the intermediate image used as context for the next edit, and its examples retain the assistant’s reasoning, tool request and generated-image result when continuing. For a product composition, first establish the subject and framing; then ask for a lighting change or a new background while specifying what should retain its appearance. Keep the selected result and its history together so the next turn works on that image rather than a discarded variation. In Tencent’s documented workflow, both the final and history image links expire after 12 hours, so preserve the image assets before relying on them for a later edit.
The documented controls include a seed, a custom watermark footnote of up to 16 characters and optional external-search augmentation, which is off by default. The seed is a non-negative integer; zero or omission lets the producer choose randomly. These controls serve different purposes from the brief itself. For a reference-based product visual, describe the product’s appearance, camera angle, surface, lighting and intended layout, then use the reference to guide the identifying details. For a poster, give the hierarchy and exact wording instead of leaving its message to be invented.
Tencent’s practical guidance recommends checking text and layout, especially where product specifications, organisation names or other factual wording matter. Inspect the completed image for the subject, proportions, material, crop and lettering. Retain the final asset with its brief and settings, and use a concrete instruction tied to a visible issue for the next edit.
Ailoot Ultra · Images POST /v1/images/generations tencent/hy-image-v3.5-preview
tencent/hy-image-v3.5-previewOverview
HY Image 3.5 Preview combines text-to-image generation, reference-based creation and multi-turn editing. Tencent documents up to 20 reference images, automatic size selection and explicit output sizes up to a 4096 × 4096 image for detailed visual work.
- Accepted inputs
- Text · Images
- Results
- Images
Available in Ailoot · inputs & methods
Ailoot Ultra · Images POST /v1/images/generations
- Input types
text,image- Output types
image
| Field | Type | Requirement | Values & limits | Default |
|---|---|---|---|---|
Fieldmodel | Typestring | RequirementRequired | Values & limits tencent/hy-image-v3.5-preview | Default— |
Fieldprompt | Typestring | RequirementRequired | Values & limits Minimum length: 1 | Default— |
Fieldresolution | Typestring | RequirementOptional | Values & limits 1K, 1.5K, 2K, 4K | Default— |
Fieldaspect_ratio | Typestring | RequirementOptional | Values & limits 1:1, 1:2, 1:4, 2:1, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 9:16, 16:9 | Default— |
Fieldn | Typeinteger | RequirementOptional | Values & limits Minimum: 1 Maximum: 1 | Default— |
Fieldinput_references | Typearray | RequirementOptional | Values & limits Minimum items: 0 Maximum items: 20 | Default— |
Fieldprovider | Typeobject | RequirementOptional | Values & limits | Default— |
Method parameters and lifecycle
| Parameter | Contract |
|---|---|
Parametercontent_type | Contractapplication/json |
Parameterrequired | Contractmodel, prompt |
Parametermaterial_types | Contracttext, image |
Lifecycle: synchronous_result_then_owned_library
GET /v1/media/tasks/{task_id} · actual returned task_id or media library record
GET /v1/media/assets/{asset_id}/content
GET /v1/media/assets
GET /v1/media/assets/{asset_id}
Pricing
How the final charge is calculated
The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.
Tariff references do not add request options. Supported parameters are listed for the selected method.
- Fast mode
- Not specified When fast mode is selected
- Flex mode
- Not specified When flex mode is selected
- Maximum reasoning effort
- Not specified When maximum reasoning effort uses the default adjustment
Estimated rates for comparison
Prices by configuration
Match each charge to the conditions shown. Use one rate for each set of alternative configurations.
| Configuration | Rate schedule | Forecast quantity | Billing unit | Charge |
|---|---|---|---|---|
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Billing unit— | Charge Input · Input tokens · Estimate for comparison only — / 1K tokens Output · Output tokens · Estimate for comparison only — / 1K tokens Input · Cache read · Estimate for comparison only — / 1K tokens Input · Cache write · Estimate for comparison only — / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only — / 1K tokens |
| Configurationimage output token | Rate schedule— | Forecast quantity— | Billing unit/ 1K image tokens | Charge Output · image output token · Estimate for comparison only $0.0032 / 1K image tokens |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Billing unit— | Charge Output · Estimated generation cost · Estimate for comparison only $0.0131072 estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |
Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →
Example requests
Ailoot Ultra · Images
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'model': 'tencent/hy-image-v3.5-preview', 'prompt': 'a red panda astronaut floating in space, studio lighting'}
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
-H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
--data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin
def save_images(items):
if not items: raise SystemExit("No completed images; retain the full response")
for index, item in enumerate(items):
encoded=item.get("b64_json")
uri=item.get("url", "")
if not encoded and uri.startswith("data:image/"):
header, separator, encoded=uri.partition(",")
if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
if encoded:
raw=base64.b64decode(encoded,validate=True)
elif uri:
uri=urljoin("https://api.ailoot.ai",uri)
parsed=urlsplit(uri)
if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
raise SystemExit("Invalid returned image URL")
owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
args=["curl","--fail-with-body","--silent","--show-error",uri]
if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
temporary=Path(f"image-{index}.bin")
subprocess.run(args+["-o",str(temporary)],check=True)
raw=temporary.read_bytes()
temporary.unlink()
else: raise SystemExit("Image has neither bytes nor URL")
if not raw: raise SystemExit("Empty image result")
ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
Path(f"image-{index}.{ext}").write_bytes(raw)
print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
Receive and save results
Ailoot Ultra · Images
Download each returned image or save its Base64 contents
GET /v1/media/tasks/{task_id}GET /v1/media/assets/{asset_id}/contentGET /v1/media/assetsGET /v1/media/assets/{asset_id}
Other content reads
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
-H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
Keep all completed results
Save every completed image; retrieve each returned URL or decode its Base64 contents.
Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.
If the original response needs checking
Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task_id/asset_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.
Response fields
| Field | Type |
|---|---|
Fieldcreated | Type |
Fielddata[].url | Type |
Fielddata[].b64_json | Type |
Fieldusage | Type |
Aliases
Model aliases
Ailoot Ultra tencent/hy-image-v3.5-preview
Method path aliases
/v1/images
Related caller IDs
FAQ · Tencent: Hy Image 3.5 Preview
- What inputs and results are available?
POST /v1/images/generations·tencent/hy-image-v3.5-preview:text,image→image- Which fields does the request use?
POST /v1/images/generations·tencent/hy-image-v3.5-preview:model,prompt,resolution,aspect_ratio,n,input_references,provider- What limits apply?
POST /v1/images/generations·tencent/hy-image-v3.5-preview:n.minimum:1;n.maximum:1