HunYuan3D: Text to Model

The HunYuan3D: Text to Model workflow is designed to transform textual descriptions or reference images into detailed 3D models. Utilizing the powerful Hunyuan3D model, this workflow integrates advanced AI capabilities to interpret and convert input prompts into visually accurate 3D assets. The process begins with the TencentTextToModelNode, which interprets the input text or image to generate a preliminary 3D model structure. This is followed by the Preview3D node, allowing users to visualize the model in a 3D space, making it easier to assess and refine the output. Finally, the SaveGLB node enables users to export the 3D model in the GLB format, suitable for a variety of applications, from game development to virtual reality environments.

Technically, this workflow leverages deep learning techniques to parse semantic information from text and images, translating it into geometric and texture data. The integration of these nodes ensures a seamless transition from concept to creation, making it a valuable tool for designers, developers, and artists looking to quickly prototype or create detailed 3D assets without extensive manual modeling. This workflow is particularly useful for those needing rapid iteration and visualization of 3D content, as it reduces the time and expertise traditionally required in 3D modeling.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

api_hunyuan3d_text_to_model.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "HunYuan3D: Text to Model" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_hunyuan3d_text_to_model_api.json");

const job = await client.run(wf);
await job.getOutputs("7")[0].toFile("output.png"); // SaveGLB

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates