Tripo H3.1
Textured 3D models (GLB, or FBX with quad meshes) from a text prompt or an image, with PBR materials, detailed geometry and textures, quad topology and face-count control.
- by Tripo
- 3D
- from $0.10/generation
- Text to 3DImage to 3DPBR materialsQuad meshes
On this page
1.Call
3D models run as jobs: create one, then poll, follow progress over Server-Sent Events, or receive a webhook. The result lists every file (GLB, OBJ, ...) on cdn.ewest.ai. Every response carries an x-request-id trace ID.
# 1. Create the job (text to 3D; send "image_url" instead of "prompt" to build from an image)
curl https://api.ewest.ai/v1/3d/generations \
-H "Authorization: Bearer $EWEST_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "ewest/tripo-h3.1", "prompt": "a ceramic teapot with a bamboo handle", "enable_pbr": true}'
# → 202 {"id": "job_…", "type": "3d", "status": "queued", "progress": 0, …}
# 2. Follow it (Server-Sent Events), or poll GET /v1/jobs/job_…
curl -N https://api.ewest.ai/v1/jobs/job_…/events -H "Authorization: Bearer $EWEST_KEY"
# → … "output": {"url": "https://cdn.ewest.ai/3d/….glb", "files": {"glb": {…}, "pbr_glb": {…}, "fbx": {…}}}2.Authentication
Send your API key in the Authorization: Bearer header, as the examples above do (clients built for the Anthropic API can use x-api-key). Create keys under API keys. Keep the key on your server, never in browser code. More in the authentication guide.
3.Jobs
3D generation runs as a job. The create call answers 202 with a job; follow it with GET /v1/jobs/{id}/events (Server-Sent Events), poll GET /v1/jobs/{id}, or pass a webhook_url. The status is one of queued, running, succeeded or failed; the file is in output.url once it has succeeded. See the 3D guide.
4.Schema
What you send and what comes back, for ewest/tripo-h3.1. The output tables are read from the API's OpenAPI description.
Input
POST /v1/3d/generations- The model id,
modelstringRequiredewest/tripo-h3.1. - What to build, as text. Up to 1,024 characters. Send
promptstringOptionalpromptorimage_url, not both. - Public https URL of the front view (JPEG, PNG or WebP, up to 20 MB) to build from an image.
image_urlstringOptional generate_typestringOptionaldefaultnormalnormalfor a textured model,geometryfor an untextured one.- Add PBR material textures (metallic, roughness, normal). Not billed extra. Not with
enable_pbrbooleanOptionaldefaulttruegenerate_type: geometry. - Target polygon count, 1,000 to 2,000,000. Above 1,500,000 needs
face_countintegerOptionaldefaultchosen by the modelgeometry_quality: detailed; at most 150,000 withquad. texture_qualitystringOptionaldefaultstandardstandardordetailed(HD, higher-resolution textures, costs more). Needsgenerate_type: normal.geometry_qualitystringOptionaldefaultstandardstandardordetailed(finer geometry, costs more).- A quad (four-sided) mesh instead of triangles, costs more. The mesh then comes as an FBX file and there is no GLB; 10,000 faces unless
quadbooleanOptionaldefaultfalseface_countis set. - What to avoid, up to 255 characters. With
negative_promptstringOptionalpromptonly. - 0 to 2,147,483,647: makes the result repeatable.
seedintegerOptional - Scale the model to real-world size in meters.
auto_sizebooleanOptionaldefaultfalse orientationstringOptionaldefaultdefaultdefaultoralign_image(turn the model to match the image). Withimage_urlonly.texture_alignmentstringOptionaldefaultoriginal_imageoriginal_image(textures match the image) orgeometry(they match the generated geometry). Withimage_urlonly.- Public https URL that receives a POST with the finished job.
webhook_urlstringOptional
Output
Returns a 3D model. POST /v1/3d/generations answers 202: The job, queued. GET /v1/jobs/{id} answers 200: The job.
- Also the trace id (
idstringAlwaysx-request-id). - Always
objectstringAlwaysjob. - Always
typestringAlways3d. - The model that runs the job.
modelstringAlways statusstringAlwaysqueuedandrunningare in progress;succeededandfailedare final. One ofqueued,running,succeeded,failed.- Estimated from elapsed time; 0 for failed jobs.
progressintegerAlways - Expected seconds left; null when finished or when the job runs longer than usual.
eta_secondsinteger or nullAlways - Unix seconds when the job was created.
created_atintegerAlways - Unix seconds when the model started generating; null while the job is queued.
started_atinteger or nullAlways - Unix seconds when the job reached
completed_atinteger or nullAlwayssucceededorfailed; null while it is in progress. - The parameters of a 3D job, defaults filled in. Exactly one of
inputobjectAlwayspromptandimage_urlis set. The options a model does not take, or that were not sent, are null. - The text prompt, or null for an image job.
input.promptstring or nullAlways - The front view, or null for a text job.
input.image_urlstring (uri) or nullAlways - The extra views (view name to URL), or null.
input.view_imagesobject or nullAlways - One of
input.generate_typestringAlwaysnormal,geometry. - Whether PBR materials were requested.
input.enable_pbrbooleanAlways - The requested polygon count, or null for the model's default.
input.face_countinteger or nullAlways input.texture_qualitystring or nullAlwaysstandardordetailedwhen sent, else null.input.geometry_qualitystring or nullAlwaysstandardordetailedwhen sent, else null.- Whether a quad mesh was requested, when sent.
input.quadboolean or nullAlways - What to avoid, when sent.
input.negative_promptstring or nullAlways - The seed, when sent.
input.seedinteger or nullAlways - Whether real-world scaling was requested, when sent.
input.auto_sizeboolean or nullAlways input.orientationstring or nullAlwaysdefaultoralign_image, when sent.input.texture_alignmentstring or nullAlwaysoriginal_imageorgeometry, when sent.- Set once the job succeeded, null before and when it failed. The file is on
outputobject or nullAlwayscdn.ewest.aifor 7 days. - Link to the main file: the GLB (the same as
output.urlstring (uri)Always (when set)files.glb.url), or the FBX for a quad mesh (quad: true), which has no GLB. output.content_typestringAlways (when set)model/gltf-binaryfor the GLB;application/octet-streamfor the FBX of a quad mesh. One ofmodel/gltf-binary,application/octet-stream.- Every file by format:
output.filesobjectAlways (when set)glb(not for quad meshes),pbr_glb(a second GLB with PBR materials, Tripo H3.1), and as the model returns themobj(with itsmtlandtexture),fbx,usdz. - A preview image, or null.
output.thumbnail_urlstring (uri) or nullAlways (when set) - Set when the job failed, null otherwise.
errorobject or nullAlways - Why the job failed.
error.codestring or nullAlways (when set)generation_failed: The model could not generate the output; retry, or contact support if it keeps happening.content_policy: The prompt or an input was rejected by the model's safety filters.image_download_failed: An input image (image_urlorend_image_url) could not be downloaded; check that its URL is public and returns the image.timeout: Generation took too long and was stopped.storage_error: The output was generated but could not be stored; retry.cancelled: You cancelled the job (POST /v1/jobs/{id}/cancel) before it started; it is not charged. One ofgeneration_failed,content_policy,image_download_failed,timeout,storage_error,cancelled. - A fixed, readable explanation for the
error.messagestringAlways (when set)code. Branch oncode, not on this text. - Billed units once the 3D job succeeded, null before and when it failed:
usageobject or nullAlways{"generations": 1}. - Number of generations billed (1).
usage.generationsintegerAlways (when set)
Sample response
{
"id": "job_7Hq2xK9mPz",
"object": "job",
"type": "3d",
"model": "ewest/tripo-h3.1",
"created_at": 1793530277,
"input": {
"prompt": "a ceramic teapot with a bamboo handle",
"image_url": null,
"view_images": null,
"generate_type": "normal",
"enable_pbr": true,
"face_count": null,
"texture_quality": null,
"geometry_quality": null,
"quad": null,
"negative_prompt": null,
"seed": null,
"auto_size": null,
"orientation": null,
"texture_alignment": null
},
"status": "queued",
"progress": 2,
"eta_seconds": 240,
"started_at": null,
"completed_at": null,
"output": null,
"error": null,
"usage": null
}5.Details
- Input
- Text prompt (up to 1,024 characters) or an image
- Options
- PBR materials, geometry-only output, HD textures, detailed geometry, quad meshes, face count 1,000 to 2,000,000
- Output
- GLB and PBR_GLB and FBX files on cdn.ewest.ai (kept 7 days)