Hunyuan 3D 3.1 Pro
Image to 3D · Text to 3D
Starting price $0.60 / model
By Microsoft
Trellis 2 from Microsoft turns one image into a textured 3D model with PBR materials, delivered as a GLB file.
trellis-2-image-to-3dQuote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "trellis-2-image-to-3d",
"input": {
"inputImage": [
"https://example.com/input.png"
]
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "trellis-2-image-to-3d", "quote_id": "QUOTE_ID", "input": {"inputImage":["https://example.com/input.png"]}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
inputImagerequired | array of image URLs | Required. One image of the object. A transparent background is kept; otherwise the background is removed automatically. |
pipeline_type | string (enum) | 3D generation resolution: 512 is the fastest, 1024 the recommended default, 1536 the most detailed. |
texture_size | string (enum) | Size of the texture maps baked into the GLB, in pixels. |
decimation_target | integer | Target face count of the exported mesh. Lower values give a smaller file with less detail. |
seed | string | Optional. Random seed. Leave empty for a new result each time; set it to repeat one. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Upload one image of an object. A transparent background is kept; otherwise the background is removed automatically. Choose a resolution of 512, 1024 or 1536, the texture size and the target face count of the mesh.