curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hunyuan-3d/v3.6/text-to-3d",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A battle-worn dwarf blacksmith in a layered leather apron over chainmail, riveted steel pauldrons, a braided beard with iron rings, holding a forging hammer in one hand"
}
}
'{
"code": 200,
"data": {
"task_id": "<string>",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Hunyuan 3D 3.6
The Hunyuan 3D 3.6 API builds a high-detail 3D model from a text prompt, one front-view image, or a front view plus up to seven extra views, with up to 2,000,000 faces, 2K/4K/8K textures and PBR materials, delivered as a GLB file plus an OBJ archive for textured models.
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hunyuan-3d/v3.6/text-to-3d",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A battle-worn dwarf blacksmith in a layered leather apron over chainmail, riveted steel pauldrons, a braided beard with iron rings, holding a forging hammer in one hand"
}
}
'{
"code": 200,
"data": {
"task_id": "<string>",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the response result through the unified Query Task Status endpoint.
Models
- hunyuan-3d/v3.6/text-to-3d - Build a 3D model from a text prompt
- hunyuan-3d/v3.6/image-to-3d - Build a 3D model from one front-view image, with up to seven extra views
Features
- Meshes up to 2,000,000 faces, with a face-count target from 1,000 and an exact-count mode
- Texture maps at 2K, 4K or 8K in PNG, JPEG or WEBP
- PBR material maps: metallic, roughness and normal
- Textured models or untextured white models
- Five texture styles for text to 3D: blue-and-white porcelain, Chinese style, sculpture, cartoon and cyberpunk
- Multi-view input for image to 3D: back, left, right, top, bottom, left-front and right-front
- Unlit albedo textures by default, or textures that keep the lighting of the input image
- A GLB model and a preview image in every result, plus an OBJ archive with MTL and texture maps for textured models
Input modes
- Text to 3D: use
hunyuan-3d/v3.6/text-to-3dand describe the object inprompt. - Image to 3D: use
hunyuan-3d/v3.6/image-to-3dwith one front-view image inimage_urls. - Multi-view image to 3D: use
hunyuan-3d/v3.6/image-to-3dwith the front view inimage_urlsand one or more of the seven view fields. Extra views give the model the hidden sides of the object.
Required parameters
prompt(string):hunyuan-3d/v3.6/text-to-3d. Description of the object, up to 1024 characters.image_urls(string[]):hunyuan-3d/v3.6/image-to-3d. Exactly one front-view image: JPG, PNG or WEBP, 128-5000 px per side, under 10 MB.
Optional parameters
generate_type(string):Normal(default) for a textured model, orGeometryfor an untextured white model.face_count(integer): Target face count from1000to2000000. Default2000000.face_strict_mode(boolean):truematchesface_countexactly;false(default) lets the model set the final count from the object’s detail.enable_pbr(boolean):trueadds metallic, roughness and normal maps. Defaultfalse.texture_resolution(string):2k,4k(default) or8k.texture_format(string):png,jpeg(default),jpgorwebp.seamless_texture(boolean):truefavors fewer texture seams over fine texture detail. Defaultfalse.style(string):hunyuan-3d/v3.6/text-to-3d. One ofqinghuaci,china_style,sculpture,cartoonorcyberpunk.back_image_url,left_image_url,right_image_url,top_image_url,bottom_image_url,left_front_image_url,right_front_image_url(string):hunyuan-3d/v3.6/image-to-3d. One image per view of the same object: JPG or PNG, 128-5000 px per side.bake_lighting(boolean):hunyuan-3d/v3.6/image-to-3d.truekeeps the lighting and shadows of the input image in the texture;false(default) returns an unlit albedo texture.ao_strength(number):hunyuan-3d/v3.6/image-to-3dmulti-view tasks. Ambient occlusion strength from0(default) to1.
Output
A finished task returns its files infiles, in this order:
- The 3D model in GLB format (
file_type:3d,.glb) Normaltasks: a ZIP archive with the OBJ model, its MTL file and texture maps (file_type:3d,.zip)- A PNG preview of the model (
file_type:image,.png)
file_url and file_type.
Examples
- Text to 3D: send only
promptfor a textured 4K model at 2,000,000 faces, such as a dwarf blacksmith with chainmail, riveted pauldrons and a braided beard. - Styled text to 3D: add
style: "qinghuaci"andenable_pbrfor a blue-and-white porcelain teapot with PBR materials. - Image to 3D: send one front view of a steampunk owl in
image_urlswithenable_pbrfor a textured model with PBR maps. - Multi-view image to 3D: add
back_image_urlandleft_image_urlof the same owl next toimage_urls, plusao_strength: 0.5for ambient occlusion. - White model: set
generate_type: "Geometry",face_count: 300000andface_strict_mode: truefor an untextured mesh at an exact face count.
Notes
- Texture options (
enable_pbr,texture_resolution,texture_format,seamless_texture,bake_lighting,ao_strength) apply toNormaltasks.Geometrytasks deliver the untextured mesh as a GLB file with a preview image. - In PoYo testing, textured tasks at the default 2,000,000 faces and 4K textures finished in 6-9 minutes with a GLB of about 65-75 MB and an OBJ archive of about 40-47 MB. A
Geometrytask at 300,000 faces finished in about 2.5 minutes with a 5.4 MB GLB. Lowerface_countfor lighter files and faster downloads. - Use a clean front view with the whole object in frame and a plain background for the best image-to-3D results. Extra views must show the same object.
Authorizations
All API endpoints require Bearer Token authentication.
Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
Request body. Send prompt with hunyuan-3d/v3.6/text-to-3d, or image_urls with hunyuan-3d/v3.6/image-to-3d.
Response
Task submitted successfully
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
200: Success400: Invalid request parameters401: Missing or invalid API key402: Insufficient credits403: Permission denied404: Resource not found408: Request timeout429: Rate limit exceeded500: Internal server error502: Upstream service error503: Service unavailable
See Error Codes for details.
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 200