Hunyuan3D 3.1
hunyuan3d-3.1/image-to-3d
Tencent Hunyuan 3D series image-to-3D model generation: input a single reference image to generate a textured mesh, with both standard and geometry generation modes, configurable polygon count and topology, and export to standard formats such as GLB. Suitable for modeling drafts for game props, 3D printing, and product visualization.
Try hunyuan3d-3.1/image-to-3d
Input
Output
Pricing
hunyuan3d-3.1/image-to-3d per call
| Unit Price | $0.5358 |
|---|
Positioning overview
This model reconstructs a single public image into a textured 3D mesh asset, and currently only the image-to-3D task is available. Input is submitted via an HTTPS image URL, and you can choose either a normal or a geometry-prioritized generation type. It is aimed at developers in game art, product visualization, 3D printing, and VR/AR asset production, and is used to quickly turn concept art or product images into 3D drafts that can be imported into modeling or engine pipelines for further processing.
Key highlights
- Generate a textured 3D mesh from a single image — only one public HTTPS image is needed as input, eliminating the need to set up a multi-view capture workflow.
- Two generation types: normal and geometry — generate_type accepts Normal or Geometry, so you can emphasize geometric detail according to asset needs.
Capabilities
- Single-image 3D mesh reconstruction: submit the HTTPS URL of one reference image to generate a textured 3D asset, suitable for obtaining an editable model draft from concept art or product images.
- Switch generation type: choose Normal or Geometry for generate_type to produce a 3D mesh with either a normal or a geometry-prioritized emphasis.
- Standard 3D asset delivery: outputs a 3D mesh asset that can be imported into game engines, CAD tools, or print slicing software, connecting to downstream modeling and presentation workflows.
Applicable scenarios
- Fast prop drafts for game art — submit concept art of a prop or scene object to get a textured 3D draft, then import it into an engine or modeling software to continue adjusting topology and materials.
- Turn e-commerce product images into editable 3D models — generate 3D assets from product photos for 3D product displays or 3D configurators, reducing the upfront investment of modeling from scratch.
- Preparing draft models before 3D printing — generate mesh assets from hand-drawn sketches or photos, then review dimensions and structure before importing into a slicing or printing workflow.
- VR/AR asset prototype validation — submit reference images to get 3D assets for spatial placement and visual validation of real-time application prototypes, then decide whether to refine them further.
Limitations and selection advice
Only one reference image is accepted per request, and the image must be at a public HTTPS URL; local files or links that require authentication cannot be passed in directly. Reference images should ideally contain only a single subject with a simple background and no text, otherwise the reconstruction result may deviate from expectations. The generated 3D assets usually still require retopology, UV, and material adjustments to meet the requirements of demanding production pipelines; do not expect them to reproduce every detail of the original image precisely.
What's new
View changelog →- New model New model available: hunyuan3d-3.1/image-to-3d
Frequently asked questions
View all FAQs →-
Can this model only do image-to-3D?
Currently this endpoint only accepts image input for reconstruction: you must pass an image URL, input_image_url, that is publicly accessible over HTTPS. It does not accept text descriptions and does not support multiple views. Text-to-3D and reconstruction from up to 8 views are capabilities of this model elsewhere; they cannot be used here.
-
What are the requirements for the input reference image?
Only four formats are supported: jpg, png, jpeg, and webp. The resolution of each side must be between 128 and 5000 px, the file must not exceed 6 MB, and it must be a public HTTPS link. For composition, it is also recommended that the image contain only one object, that the background be as simple as possible, and that no text appear; the subject should occupy more than 50% of the frame, otherwise geometric reconstruction is prone to distortion.
-
How should I choose between the two generate_type values?
generate_type can be Normal or Geometry, with Normal as the default. It determines the generation orientation: if you need a finished, textured result, use the default Normal; if you only want to get the shape first and verify the outline and proportions, switch to Geometry. The parameter accepts only these two values; if omitted, Normal is used.
-
What format is the output, and can it be used directly?
The output is a standard mesh with textures, exportable to formats such as GLB, and can be imported into Unity, Unreal, Blender, as well as CAD and print slicing toolchains. The model produces watertight meshes with clean quad topology and smart UV unwrapping; the polygon count is configurable between 40K and 1.5M, and textures go up to 4K PBR, including metallic, normal, and roughness maps. However, for demanding production pipelines, retopology, UV and material adjustments are usually still required.
Create a generation task
https://api.hiapi.ai/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: hunyuan3d-3.1/image-to-3d
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for hunyuan3d-3.1/image-to-3d and route default — see the parameter table below.
generate_typestringOptionalDefault: "Normal"Specifies the type of the generation task; takes a string value, default is Normal.
NormalGeometryinput_image_urlstringRequiredpattern ^https://The public HTTPS URL of the reference image, used as the input image for image-to-3D generation.
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.ai/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hunyuan3d-3.1/image-to-3d",
"input": {
"generate_type": "Normal",
"input_image_url": "…"
}
}' const res = await fetch("https://api.hiapi.ai/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "hunyuan3d-3.1/image-to-3d",
input: {
"generate_type": "Normal",
"input_image_url": "…"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.ai/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "hunyuan3d-3.1/image-to-3d",
"input": {
"generate_type": "Normal",
"input_image_url": "…"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.ai/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Guide
Hunyuan3D 3.1 image-to-3d Getting Started Guide: Capabilities, API Parameters, and Per-Call Billing Practices
From a single image to a 3D asset: integration points, cost estimation, and engineering recommendations
-
Comparison
Hunyuan3D 3.1 image-to-3d Model Selection Guide: Capabilities, Pricing, and Comparison with Similar Models
-
Tutorial
Hunyuan3D 3.1 Image-to-3D in Practice: 5 High-Value Business Scenarios and Implementation Essentials