Generate a 3D model with Replicate
replicate_generate_3dGenerate a 3D mesh from a text prompt or reference image. Choose from curated models like Hunyuan-3D, Rodin, or TripoSR to create GLB/OBJ files.
Instructions
Generate a 3D mesh (GLB/OBJ) from a text prompt or a reference image. 3D generation is slow — typically 1-5 minutes.
DISPLAY REQUIREMENT — after this tool returns successfully, include the download URL(s) so the user can open the 3D file. URLs expire in ~24h.
Args:
prompt (string, optional): Text description of the 3D object. Provide at least one of prompt or image_url.
image_url (URL, optional): Reference image to convert to 3D. Provide at least one of prompt or image_url. Use replicate_upload_file for local files.
model (string, default "hunyuan-3d"): Curated key (hunyuan-3d, rodin, triposr) or "owner/name[:version]".
extra_input (object, optional): Model-specific extras (e.g. {num_inference_steps: 50}).
download (boolean, default true): Download the GLB/OBJ locally.
timeout_ms: Default 300000. For complex objects, increase or use the pending+poll flow.
Returns: PredictionResult. local_paths will contain .glb or .obj files.
Examples:
prompt="A red ceramic teapot" → hunyuan-3d
image_url="", model="triposr" → fast single-image 3D
image_url="", model="rodin" → high-quality 3D
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | 3D generation model. Curated: hunyuan-3d, rodin, triposr. Or "owner/name". | hunyuan-3d |
| prompt | No | Text description of the 3D object to generate. Provide either this or image_url (or both). | |
| download | No | ||
| image_url | No | URL of a reference image to convert to 3D. Provide either this or prompt (or both). Use replicate_upload_file for local images. | |
| timeout_ms | No | Max ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min). | |
| extra_input | No | Additional model-specific inputs (e.g. {num_inference_steps: 50}). |