Hunyuan-3d 2mv Serverless API

Hunyuan3D-2mv is finetuned from Hunyuan3D-2 to support multiview controlled shape generation.

~101.31s
~$0.31
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/hunyuan3d-2mv"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "seed": 1234,
12    "steps": 30,
13    "file_type": "glb",
14    "back_image": "https://segmind-resources.s3.amazonaws.com/input/c2aaa604-ff80-4daa-8e17-19523116277b-df54088d-8eea-441d-8f74-8e38b17fd120.png",
15    "left_image": "https://segmind-resources.s3.amazonaws.com/input/67a34835-feea-49b9-8aac-c6f7866c5812-c43ad400-6084-482b-9134-d0969e4b332c.png",
16    "num_chunks": 200000,
17    "front_image": "https://segmind-resources.s3.amazonaws.com/input/54d29fd1-a48f-4935-bc7f-5446420e1436-a08f2dbd-00e5-4bcb-a6f0-ea11f31aa82f-0471efb6-5439-40e8-9031-5374b7f50691.png",
18    "right_image": "https://segmind-resources.s3.amazonaws.com/input/10f44971-5c5c-44c2-8b6c-6baa7a98e76c-380c79fa-3dd9-4b0c-ba05-485e8894b019.png",
19    "guidance_scale": 5,
20    "randomize_seed": true,
21    "target_face_num": 10000,
22    "octree_resolution": 256,
23    "remove_background": true
24}
25
26response = requests.post(url, headers=headers, json=data)
27
28if response.status_code == 200:
29    result = response.json()
30    print(json.dumps(result, indent=2))
31else:
32    print(f"Error: {response.status_code}")
33    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/hunyuan3d-2mv

Parameters

front_imagerequired
string (uri)

Front view image

back_imageoptional
string (uri)

Back view image

Default: null
file_typeoptional
string

An enumeration.

Default: "glb"
Allowed values :
"glb""obj""ply""stl"
guidance_scaleoptional
number

Guidance scale

Default: 5
left_imageoptional
string (uri)

Left view image

Default: null
num_chunksoptional
integer

Number of chunks

Default: 200000Range: 1000 - 5000000
octree_resolutionoptional
integer

Octree resolution

Default: 256Range: 16 - 512
randomize_seedoptional
boolean

Randomize seed

Default: false
remove_backgroundoptional
boolean

Remove image background

Default: true
right_imageoptional
string (uri)

Right view image

Default: null
seedoptional
integer

Seed value

Default: -1
stepsoptional
integer

Number of inference steps

Default: 30Range: 1 - 100
target_face_numoptional
integer

Target number of faces for mesh simplification

Default: 10000Range: 100 - 1000000

Response Type

Returns: 3D Model

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out