Skip to content

About

Hunyuan 3D 3.6 API examples in cURL, Node.js, and Python for text-to-3D, image-to-3D, and multi-view 3D through PoYo. From $0.60 per generation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Hunyuan 3D 3.6 API: cURL, Python, and Node.js Examples

Hunyuan 3D 3.6 on PoYo API docs Check

Runnable examples for Tencent Hunyuan Hunyuan 3D 3.6 through PoYo's async 3D API: high-poly 3D models 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 optional PBR maps.

Answer: To use the Hunyuan 3D 3.6 API, send a server-side request to POST https://api.poyo.ai/api/generate/submit with model hunyuan-3d/v3.6/text-to-3d or hunyuan-3d/v3.6/image-to-3d and a PoYo API key, then poll GET https://api.poyo.ai/api/generate/status/{task_id}. The examples in this repository run with Python 3.9+, Node.js 22+, or cURL.

Last verified against the live PoYo schema and pricing on November 28, 2026.

Hunyuan 3D 3.6 at a glance

  • Model IDs: hunyuan-3d/v3.6/text-to-3d (text prompt), hunyuan-3d/v3.6/image-to-3d (one front view, optionally up to seven extra views)
  • Meshes: up to 2,000,000 faces (the default), with a face_count target from 1,000 and an exact-count mode
  • Textures: 2K, 4K (default), or 8K maps in PNG, JPEG, or WEBP, with optional PBR metallic, roughness, and normal maps
  • White models: generate_type: "Geometry" returns an untextured mesh
  • Styles: five text-to-3D texture styles: blue-and-white porcelain, Chinese style, sculpture, cartoon, cyberpunk
  • Output: a GLB model and a PNG preview in every result, plus an OBJ ZIP (OBJ, MTL, texture maps) for textured models
  • Price: from 120 credits ($0.60) for an image-to-3D white model; a textured text-to-3D model is 400 credits ($2.00), with PBR, 8K textures, and custom face counts included

Quickstart

  1. Create a key in the PoYo dashboard.
  2. Copy .env.example to .env and replace the placeholder.
  3. Run one of the examples. Each submits the task and polls until finished or failed (textured models take several minutes).
POYO_API_KEY=YOUR_POYO_API_KEY_HERE
POYO_BASE_URL=https://api.poyo.ai

Python

python python/generate.py
python python/generate.py payloads/hunyuan-3d-3.6-image-to-3d.json

python/generate.py uses only the Python standard library.

Node.js

node node/index.mjs
node node/index.mjs payloads/hunyuan-3d-3.6-image-to-3d-multi-view.json

cURL

curl -X POST "https://api.poyo.ai/api/generate/submit" \
  -H "Authorization: Bearer $POYO_API_KEY" \
  -H "Content-Type: application/json" \
  -d @payloads/hunyuan-3d-3.6-text-to-3d.json

Status polling and the other modes are in curl/generate.md.

Example requests

Every file in payloads/ is a complete request body with public input media, so it runs as-is.

File Mode Settings Credits
hunyuan-3d-3.6-text-to-3d.json Text to 3D, textured Defaults: 2,000,000 faces, 4K textures 400 ($2.00)
hunyuan-3d-3.6-text-to-3d-style-pbr.json Text to 3D, styled qinghuaci style, PBR, PNG textures 400 ($2.00)
hunyuan-3d-3.6-text-to-3d-geometry.json Text to 3D, white model Geometry, exactly 300,000 faces 160 ($0.80)
hunyuan-3d-3.6-image-to-3d.json Image to 3D, textured 1 front view, PBR 280 ($1.40)
hunyuan-3d-3.6-image-to-3d-multi-view.json Multi-view image to 3D, textured Front + back + left views, ao_strength: 0.5 400 ($2.00)
hunyuan-3d-3.6-image-to-3d-geometry.json Image to 3D, white model Geometry, exactly 300,000 faces 120 ($0.60)

Input modes

Model ID Mode Selected when
hunyuan-3d/v3.6/text-to-3d Text to 3D Always; prompt describes the object
hunyuan-3d/v3.6/image-to-3d Image to 3D image_urls has one front view and no view fields
hunyuan-3d/v3.6/image-to-3d Multi-view image to 3D Any of back_image_url, left_image_url, right_image_url, top_image_url, bottom_image_url, left_front_image_url, right_front_image_url is set

Either model returns a textured model with generate_type: "Normal" (default) or an untextured white model with generate_type: "Geometry". Extra views must show the same object as the front view.

Request fields

Shared fields

Field Requirement Meaning
generate_type optional Normal (default) for a textured model, Geometry for an untextured white model.
face_count optional Target face count from 1000 to 2000000. Default 2000000.
face_strict_mode optional true matches face_count exactly; false (default) lets the model set the final count from the object's detail.
enable_pbr optional true adds metallic, roughness, and normal maps. Default false.
texture_resolution optional 2k, 4k (default), or 8k.
texture_format optional png, jpeg (default), jpg, or webp.
seamless_texture optional true favors fewer texture seams over fine texture detail. Default false.

Texture options apply to Normal tasks.

hunyuan-3d/v3.6/text-to-3d

Field Requirement Meaning
prompt required The object: subject, shape, parts, materials, and colors. Up to 1,024 characters.
style optional qinghuaci (blue-and-white porcelain), china_style, sculpture, cartoon, or cyberpunk. Leave it out to follow the prompt.

hunyuan-3d/v3.6/image-to-3d

Field Requirement Meaning
image_urls required Exactly one public front-view JPG, PNG, or WEBP, 128–5000 px per side, under 10 MB. Always an array.
back_image_url, left_image_url, right_image_url, top_image_url, bottom_image_url, left_front_image_url, right_front_image_url optional One JPG or PNG per view of the same object, 128–5000 px per side. Any view switches to multi-view generation.
bake_lighting optional true keeps the lighting and shadows of the input image in the texture; false (default) returns an unlit albedo texture.
ao_strength optional Ambient occlusion strength for multi-view tasks, 0 (default) to 1.

Pricing

Billing is per generation. 1 credit = $0.005.

Model Input Textured (Normal, default) White model (Geometry)
hunyuan-3d/v3.6/text-to-3d Text prompt 400 credits ($2.00) 160 credits ($0.80)
hunyuan-3d/v3.6/image-to-3d One front view 280 credits ($1.40) 120 credits ($0.60)
hunyuan-3d/v3.6/image-to-3d Front view + extra views 400 credits ($2.00) 160 credits ($0.80)

PBR maps, 8K textures, and custom face counts are included in the textured price. Credits are charged only when the task succeeds. Confirm current prices on the model page.

Output files

A finished task lists its files in files, in this order. Each item has file_url and file_type.

Order File file_type When
1 3D model, .glb 3d Always
2 OBJ archive, .zip (OBJ, MTL, texture maps) 3d Normal tasks
3 Preview image, .png image Always

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 Geometry task at 300,000 faces finished in about 2.5 minutes with a 5.4 MB GLB. Lower face_count for lighter files and faster downloads.

Getting good Hunyuan 3D 3.6 results

  • Describe the parts: name layers, equipment, and accessories ("riveted steel pauldrons, a braided beard with iron rings"); the model keeps clear part boundaries.
  • Clean front view: for image to 3D, use the whole object in frame on a plain background.
  • Add hidden sides: pass back, side, top, or bottom views of the same object when the front view hides important detail.
  • Pick the budget: use Geometry with a face_count target for blockouts, printing previews, or retopology; switch to Normal for the final textured asset.
  • Real-time engines: set a lower face_count with face_strict_mode: true to get a predictable mesh size.

Async production flow

submit -> persist data.task_id -> poll during development -> receive callback_url webhook in production

Treat finished and failed as terminal states. Textured tasks run for several minutes, so the examples poll every 10 seconds for up to 30 minutes. Copy the GLB and OBJ files to your own storage after the task finishes.

FAQ

How much does the Hunyuan 3D 3.6 API cost? 400 credits ($2.00) for a textured text-to-3D model, 280 credits ($1.40) for a textured model from one image, and 400 credits ($2.00) from several views. White models cost 160, 120, and 160 credits.

Is PBR an extra charge? No. PBR maps, 8K textures, and custom face counts are included in the textured price.

What file formats does it return? A GLB model and a PNG preview for every task, plus a ZIP with the OBJ model, MTL file, and texture maps for textured tasks.

How many faces can a model have? Up to 2,000,000, the default. Set face_count from 1,000 upward, and face_strict_mode: true to hit it exactly.

How long does a request take? In PoYo tests, 6–9 minutes for a textured model at the defaults and about 2.5 minutes for a 300,000-face white model.

Repository map

Related repositories

Links

License

MIT

About

Hunyuan 3D 3.6 API examples in cURL, Node.js, and Python for text-to-3D, image-to-3D, and multi-view 3D through PoYo. From $0.60 per generation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages