Generate a 3D model
generate_modelMake one 3D object (never a scene) as a textured GLB, from a picture (image) or a description (prompt). Costs credits, which the user bought: image models trellis-2 5, trellis-2-pro 15, hunyuan-3d-3-1-pro 90, tripo-3-1 50, tripo-3-1-detailed 100; from a prompt add the picture model (flux-2-klein 1). Pass max_credits to refuse anything dearer. For a game or the web pass max_faces (5000-20000; the default is 200,000 triangles), and from a prompt style lowpoly to match low-poly kits. The GLB stands on its base at the origin, like library models. Waits about 45 s, then returns job_id for get_job if it is not done. Calling again with the same arguments resumes the same job and never charges twice; pass a new idempotency_key to make another one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| image | No | A picture of one object: an https URL, a data: URI, an upload id from upload_file, or a job id. | |
| model | No | Default trellis-2. See account for every model and its price. | |
| style | No | From a prompt: lowpoly draws a flat-shaded, flat-colour game asset to match low-poly kits; stylized a hand-painted look. | |
| prompt | No | A description of one object: "a weathered wooden barrel with iron bands". | |
| max_faces | No | Most triangles in the model, at no extra cost: 5,000-20,000 for game or web use (the default is 200,000). | |
| image_model | No | The picture model for a prompt: flux-2-klein (default), muse-image, gpt-image-2-5. | |
| max_credits | No | Refuse the job if it would cost more. | |
| wait_seconds | No | ||
| idempotency_key | No | Only to make a second, different job from identical arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| output | No | ||
| status | No | ||
| credits | No |