Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
tencent /hunyuan3d-2mv:71798fbc
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run tencent/hunyuan3d-2mv using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"tencent/hunyuan3d-2mv:71798fbc3c9f7b7097e3bb85496e5a797d8b8f616b550692e7c3e176a8e9e5db",
{
input: {
seed: 1234,
steps: 30,
file_type: "glb",
back_image: "https://replicate.delivery/pbxt/MgUIe87IJxK3yiK3Dxfz3qT5reV1oU7uLWiqpKasypFK66Al/blue-back.png",
left_image: "https://replicate.delivery/pbxt/MgUIdfqiSmFlavf1bYAVMMxwJnBSebGtC6BVy5uT48RATds3/blue-side.png",
num_chunks: 200000,
front_image: "https://replicate.delivery/pbxt/MgUIeaCpgNVraNrydYTdaiAUYezkdAX5nFC4FYBlRbv3pV2N/blue-front.png",
guidance_scale: 5,
randomize_seed: true,
target_face_num: 10000,
octree_resolution: 256,
remove_background: true
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run tencent/hunyuan3d-2mv using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tencent/hunyuan3d-2mv:71798fbc3c9f7b7097e3bb85496e5a797d8b8f616b550692e7c3e176a8e9e5db",
input={
"seed": 1234,
"steps": 30,
"file_type": "glb",
"back_image": "https://replicate.delivery/pbxt/MgUIe87IJxK3yiK3Dxfz3qT5reV1oU7uLWiqpKasypFK66Al/blue-back.png",
"left_image": "https://replicate.delivery/pbxt/MgUIdfqiSmFlavf1bYAVMMxwJnBSebGtC6BVy5uT48RATds3/blue-side.png",
"num_chunks": 200000,
"front_image": "https://replicate.delivery/pbxt/MgUIeaCpgNVraNrydYTdaiAUYezkdAX5nFC4FYBlRbv3pV2N/blue-front.png",
"guidance_scale": 5,
"randomize_seed": True,
"target_face_num": 10000,
"octree_resolution": 256,
"remove_background": True
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run tencent/hunyuan3d-2mv using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "tencent/hunyuan3d-2mv:71798fbc3c9f7b7097e3bb85496e5a797d8b8f616b550692e7c3e176a8e9e5db",
"input": {
"seed": 1234,
"steps": 30,
"file_type": "glb",
"back_image": "https://replicate.delivery/pbxt/MgUIe87IJxK3yiK3Dxfz3qT5reV1oU7uLWiqpKasypFK66Al/blue-back.png",
"left_image": "https://replicate.delivery/pbxt/MgUIdfqiSmFlavf1bYAVMMxwJnBSebGtC6BVy5uT48RATds3/blue-side.png",
"num_chunks": 200000,
"front_image": "https://replicate.delivery/pbxt/MgUIeaCpgNVraNrydYTdaiAUYezkdAX5nFC4FYBlRbv3pV2N/blue-front.png",
"guidance_scale": 5,
"randomize_seed": true,
"target_face_num": 10000,
"octree_resolution": 256,
"remove_background": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2025-03-19T03:09:16.296513Z",
"created_at": "2025-03-19T03:09:04.018000Z",
"data_removed": false,
"error": null,
"id": "b7kq24j0j9rma0cnnhgatmqgpg",
"input": {
"seed": 1234,
"steps": 30,
"file_type": "glb",
"back_image": "https://replicate.delivery/pbxt/MgUIe87IJxK3yiK3Dxfz3qT5reV1oU7uLWiqpKasypFK66Al/blue-back.png",
"left_image": "https://replicate.delivery/pbxt/MgUIdfqiSmFlavf1bYAVMMxwJnBSebGtC6BVy5uT48RATds3/blue-side.png",
"num_chunks": 200000,
"front_image": "https://replicate.delivery/pbxt/MgUIeaCpgNVraNrydYTdaiAUYezkdAX5nFC4FYBlRbv3pV2N/blue-front.png",
"guidance_scale": 5,
"randomize_seed": true,
"target_face_num": 10000,
"octree_resolution": 256,
"remove_background": true
},
"logs": "Diffusion Sampling:: 0%| | 0/30 [00:00<?, ?it/s]\nDiffusion Sampling:: 3%|▎ | 1/30 [00:00<00:04, 6.81it/s]\nDiffusion Sampling:: 10%|█ | 3/30 [00:00<00:02, 9.17it/s]\nDiffusion Sampling:: 13%|█▎ | 4/30 [00:00<00:03, 8.21it/s]\nDiffusion Sampling:: 17%|█▋ | 5/30 [00:00<00:03, 7.69it/s]\nDiffusion Sampling:: 20%|██ | 6/30 [00:00<00:03, 7.39it/s]\nDiffusion Sampling:: 23%|██▎ | 7/30 [00:00<00:03, 7.20it/s]\nDiffusion Sampling:: 27%|██▋ | 8/30 [00:01<00:03, 7.08it/s]\nDiffusion Sampling:: 30%|███ | 9/30 [00:01<00:03, 6.99it/s]\nDiffusion Sampling:: 33%|███▎ | 10/30 [00:01<00:02, 6.93it/s]\nDiffusion Sampling:: 37%|███▋ | 11/30 [00:01<00:02, 6.90it/s]\nDiffusion Sampling:: 40%|████ | 12/30 [00:01<00:02, 6.87it/s]\nDiffusion Sampling:: 43%|████▎ | 13/30 [00:01<00:02, 6.85it/s]\nDiffusion Sampling:: 47%|████▋ | 14/30 [00:01<00:02, 6.84it/s]\nDiffusion Sampling:: 50%|█████ | 15/30 [00:02<00:02, 6.83it/s]\nDiffusion Sampling:: 53%|█████▎ | 16/30 [00:02<00:02, 6.81it/s]\nDiffusion Sampling:: 57%|█████▋ | 17/30 [00:02<00:01, 6.80it/s]\nDiffusion Sampling:: 60%|██████ | 18/30 [00:02<00:01, 6.80it/s]\nDiffusion Sampling:: 63%|██████▎ | 19/30 [00:02<00:01, 6.80it/s]\nDiffusion Sampling:: 67%|██████▋ | 20/30 [00:02<00:01, 6.80it/s]\nDiffusion Sampling:: 70%|███████ | 21/30 [00:02<00:01, 6.79it/s]\nDiffusion Sampling:: 73%|███████▎ | 22/30 [00:03<00:01, 6.79it/s]\nDiffusion Sampling:: 77%|███████▋ | 23/30 [00:03<00:01, 6.78it/s]\nDiffusion Sampling:: 80%|████████ | 24/30 [00:03<00:00, 6.78it/s]\nDiffusion Sampling:: 83%|████████▎ | 25/30 [00:03<00:00, 6.78it/s]\nDiffusion Sampling:: 87%|████████▋ | 26/30 [00:03<00:00, 6.78it/s]\nDiffusion Sampling:: 90%|█████████ | 27/30 [00:03<00:00, 6.77it/s]\nDiffusion Sampling:: 93%|█████████▎| 28/30 [00:04<00:00, 6.77it/s]\nDiffusion Sampling:: 97%|█████████▋| 29/30 [00:04<00:00, 6.77it/s]\nDiffusion Sampling:: 100%|██████████| 30/30 [00:04<00:00, 6.77it/s]\nDiffusion Sampling:: 100%|██████████| 30/30 [00:04<00:00, 6.96it/s]\nVolume Decoding: 0%| | 0/85 [00:00<?, ?it/s]\nVolume Decoding: 55%|█████▌ | 47/85 [00:00<00:00, 373.70it/s]\nVolume Decoding: 100%|██████████| 85/85 [00:02<00:00, 32.74it/s]\nVolume Decoding: 100%|██████████| 85/85 [00:02<00:00, 38.58it/s]\nShape generation took 9.46 seconds\nCreated new folder: outputs/f6dc986f-e2cb-4674-bf6c-cfa67a8ba8b5",
"metrics": {
"predict_time": 12.269541214,
"total_time": 12.278513
},
"output": "https://replicate.delivery/xezq/4NMEwTPkceVYTqggblNuog00IIw7WcjEiIDVF2KYX3FuOfZUA/gray_mesh.glb",
"started_at": "2025-03-19T03:09:04.026972Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-qjxyfp7qder427fdbzdvz3s7wbwycqpumr4pqrmmw3gyqe3on2oq",
"get": "https://api.replicate.com/v1/predictions/b7kq24j0j9rma0cnnhgatmqgpg",
"cancel": "https://api.replicate.com/v1/predictions/b7kq24j0j9rma0cnnhgatmqgpg/cancel"
},
"version": "71798fbc3c9f7b7097e3bb85496e5a797d8b8f616b550692e7c3e176a8e9e5db"
}
Diffusion Sampling:: 0%| | 0/30 [00:00<?, ?it/s]
Diffusion Sampling:: 3%|▎ | 1/30 [00:00<00:04, 6.81it/s]
Diffusion Sampling:: 10%|█ | 3/30 [00:00<00:02, 9.17it/s]
Diffusion Sampling:: 13%|█▎ | 4/30 [00:00<00:03, 8.21it/s]
Diffusion Sampling:: 17%|█▋ | 5/30 [00:00<00:03, 7.69it/s]
Diffusion Sampling:: 20%|██ | 6/30 [00:00<00:03, 7.39it/s]
Diffusion Sampling:: 23%|██▎ | 7/30 [00:00<00:03, 7.20it/s]
Diffusion Sampling:: 27%|██▋ | 8/30 [00:01<00:03, 7.08it/s]
Diffusion Sampling:: 30%|███ | 9/30 [00:01<00:03, 6.99it/s]
Diffusion Sampling:: 33%|███▎ | 10/30 [00:01<00:02, 6.93it/s]
Diffusion Sampling:: 37%|███▋ | 11/30 [00:01<00:02, 6.90it/s]
Diffusion Sampling:: 40%|████ | 12/30 [00:01<00:02, 6.87it/s]
Diffusion Sampling:: 43%|████▎ | 13/30 [00:01<00:02, 6.85it/s]
Diffusion Sampling:: 47%|████▋ | 14/30 [00:01<00:02, 6.84it/s]
Diffusion Sampling:: 50%|█████ | 15/30 [00:02<00:02, 6.83it/s]
Diffusion Sampling:: 53%|█████▎ | 16/30 [00:02<00:02, 6.81it/s]
Diffusion Sampling:: 57%|█████▋ | 17/30 [00:02<00:01, 6.80it/s]
Diffusion Sampling:: 60%|██████ | 18/30 [00:02<00:01, 6.80it/s]
Diffusion Sampling:: 63%|██████▎ | 19/30 [00:02<00:01, 6.80it/s]
Diffusion Sampling:: 67%|██████▋ | 20/30 [00:02<00:01, 6.80it/s]
Diffusion Sampling:: 70%|███████ | 21/30 [00:02<00:01, 6.79it/s]
Diffusion Sampling:: 73%|███████▎ | 22/30 [00:03<00:01, 6.79it/s]
Diffusion Sampling:: 77%|███████▋ | 23/30 [00:03<00:01, 6.78it/s]
Diffusion Sampling:: 80%|████████ | 24/30 [00:03<00:00, 6.78it/s]
Diffusion Sampling:: 83%|████████▎ | 25/30 [00:03<00:00, 6.78it/s]
Diffusion Sampling:: 87%|████████▋ | 26/30 [00:03<00:00, 6.78it/s]
Diffusion Sampling:: 90%|█████████ | 27/30 [00:03<00:00, 6.77it/s]
Diffusion Sampling:: 93%|█████████▎| 28/30 [00:04<00:00, 6.77it/s]
Diffusion Sampling:: 97%|█████████▋| 29/30 [00:04<00:00, 6.77it/s]
Diffusion Sampling:: 100%|██████████| 30/30 [00:04<00:00, 6.77it/s]
Diffusion Sampling:: 100%|██████████| 30/30 [00:04<00:00, 6.96it/s]
Volume Decoding: 0%| | 0/85 [00:00<?, ?it/s]
Volume Decoding: 55%|█████▌ | 47/85 [00:00<00:00, 373.70it/s]
Volume Decoding: 100%|██████████| 85/85 [00:02<00:00, 32.74it/s]
Volume Decoding: 100%|██████████| 85/85 [00:02<00:00, 38.58it/s]
Shape generation took 9.46 seconds
Created new folder: outputs/f6dc986f-e2cb-4674-bf6c-cfa67a8ba8b5