3D
Generate a 3D model from an image, several images or a description, or rig and retexture one.
POST /v1/3d/generations submits a 3D job. It answers 202 with a job; see
How media jobs work for polling and output.
curl https://api.opinference.com/v1/3d/generations \
-H "Authorization: Bearer $OP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fal-ai/trellis",
"image": "https://example.com/chair.png"
}'Inputs
| Input | Meaning |
|---|---|
prompt | What the model should be, for a text-to-3D model |
image | An image of the object |
images | Several views of the same object |
mesh | An https URL to a 3D file (GLB, FBX or OBJ), for a model that rigs or retextures it |
seed | Fixes the random seed |
Each model takes only some of these. Many take no prompt. The model's page at opinference.com/models lists its inputs and ranges.
Output
One 3D file in output[], usually a GLB with "type": "model/gltf-binary". Textures, thumbnails
and other formats are not returned. To chain models, pass a job's output URL as mesh to the next
one. 3D models are priced per generation.