Skip to main content
Glama

Generate a 3D model with Replicate

replicate_generate_3d

Generate 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

TableJSON Schema
NameRequiredDescriptionDefault
modelNo3D generation model. Curated: hunyuan-3d, rodin, triposr. Or "owner/name".hunyuan-3d
promptNoText description of the 3D object to generate. Provide either this or image_url (or both).
downloadNo
image_urlNoURL of a reference image to convert to 3D. Provide either this or prompt (or both). Use replicate_upload_file for local images.
timeout_msNoMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).
extra_inputNoAdditional model-specific inputs (e.g. {num_inference_steps: 50}).
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds behavioral context beyond annotations: it mentions slowness (1-5 min), URL expiration (24h), timeout behavior (default 300000 ms, returning prediction ID on timeout), and return type (PredictionResult with local_paths). Annotations already indicate non-readonly, open-world, non-idempotent, and non-destructive, and the description aligns with these without contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: purpose first, then behavioral notes, then an Args list, then examples. It front-loads key information. While it is somewhat lengthy, every part serves a purpose, and it avoids redundancy with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of an output schema, the description adequately covers what is returned (PredictionResult with local_paths) and includes examples, parameter details, and behavioral notes. It addresses input requirements, display requirement, and timeout behavior. Minor omissions could include error handling or failure modes, but overall it is fairly comprehensive for a 6-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is high (83% of parameters have descriptions), so baseline is 3. The description adds additional semantics: for image_url it mentions using replicate_upload_file for local files, for model it gives curated keys and custom format, for timeout it explains what happens if exceeded, and for extra_input it provides an example. This adds meaningful value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate a 3D mesh (GLB/OBJ) from a text prompt or a reference image.' This is specific and distinct from sibling tools like replicate_generate_image or replicate_generate_video.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear guidance on when to use this tool (for 3D generation) and includes important usage notes such as requiring at least one of prompt or image_url, indicating that 3D generation is slow (1-5 minutes), and a display requirement for download URLs. It also gives examples for different scenarios. While it doesn't explicitly exclude alternatives, the context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sena-labs/replicate-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server