Generate a 3D model from an image
generate_modelGenerate a 3D model (GLB) from one photo of an object. This is asynchronous and usually takes 3-7 minutes: the call returns a task_id immediately and get_generation reports progress. The result is downloadable only by the calling account and does not enter the public library. This tool charges credits, computed server-side and returned as credits_cost, so a call that cannot afford it is refused before any work starts. Supply image_base64 or image_urls to generate now, or omit both to have the user upload an image through their browser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Output detail, from least to most. 'low' = 1024px texture, maximum 100K faces; 'medium' = 2048px, maximum 200K faces; 'high' = 2048px, maximum 500K faces; 'ultra' = 4096px, maximum 1M faces. Every tier costs the same 6 credits. The reconstruction resolution is the same for every tier, so this only decides how much detail comes back. Each step produces a larger file (4 MB to 40 MB); the price is not proportional to the size because most of the cost is fixed per generation. | |
| image_urls | No | A direct URL of the source image. Exactly one: the model reconstructs the object from that photo alone, estimating the camera itself, so a second angle is refused rather than ignored. Ignored when image_base64 is also supplied. | |
| image_base64 | No | Base64 of the source image, without the data:image/... prefix. Compress to 1024x1024 JPEG before encoding: a 1024^2 JPEG is about 0.2 MB and roughly 270 KB encoded, which fits in a context window, while a 4 MB phone photo becomes about 5.3 MB of text and will be truncated or corrupted on the way in. Server limit is 10 MB encoded. JPEG or PNG only. Takes precedence over image_urls when both are given. |