The Complete Guide

Tripo API: Everything About the Tripo 3D API

What the Tripo API is, how to get an API key, REST endpoints and documentation, pricing and credits, Python examples for text-to-3D and image-to-3D, and how to integrate it into your own app.

Independent developer guide · Unofficial · Verify against Tripo's official API documentation before shipping to production

Tripo 3D APIAPI keyAPI documentation REST APIAPI pricing & costAPI credits Text to 3DImage to 3DPython tutorial Full exampleIntegrationFAQ

Tripo 3D API

What is the Tripo 3D API?

The Tripo 3D API is the developer-facing counterpart to Tripo Studio's browser workspace - a REST API that exposes the same underlying 3D generation engine (text-to-3D, image-to-3D, multi-view, texturing, rigging, and intelligent segmentation) as HTTP endpoints you call from your own code. Instead of a human clicking through a UI, your application submits a request, and Tripo's models do the generation work in the background.

It exists for exactly the situations a browser tool can't serve: generating assets on a schedule, letting your own product's users trigger 3D generation without ever seeing Tripo's interface, converting a product catalog into 3D/AR assets overnight, or wiring model generation into a game engine's editor tooling. If a human is going to look at and refine a model, Studio is the right tool; if a program needs to generate 3D content programmatically, that's what the API is for.

Important distinction: the Tripo API and a Tripo Studio subscription are separate products with separate billing. A Professional Studio plan does not grant API access, and API credits don't add generations to your Studio account - more on this in the pricing section below.

Tripo API key

Getting a Tripo API key

Every request to the API authenticates with an API key generated from your Tripo account's developer settings. Create a free account, navigate to the API/developer section, and generate a key - no separate signup process. Treat the key like a password:

bash
# Store your key as an environment variable, never in source code
export TRIPO_API_KEY="your_api_key_here"

# Every request carries it as a Bearer token
curl -X POST https://api.tripo3d.ai/v2/openapi/task \
  -H "Authorization: Bearer $TRIPO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "text_to_model", "prompt": "a weathered stone lantern"}'
Tripo API documentation

Where to find official documentation

This page is an independent, educational guide - for the authoritative, up-to-date Tripo API documentation (exact endpoint signatures, current parameter names, and official rate limits), go to Tripo's own developer portal, linked from your account's API settings once you've signed in. Official docs are the source of truth for anything you're about to ship to production; treat this page as the conceptual map and the official reference as the legal text.

Tripo REST API

REST API basics & the async task flow

The Tripo REST API follows a consistent, simple pattern: JSON in, JSON out, over HTTPS, with every heavy operation modeled as an asynchronous task rather than a single blocking call. Generation takes seconds to a couple of minutes, so you submit a task, get an ID back immediately, and either poll for the result or receive a webhook when it's ready.

1

Submit

POST a task with your prompt or image and parameters

2

Get task ID

Response returns immediately with a task identifier

3

Poll or wait

GET the task status, or register a webhook callback

4

Download

On success, the response includes signed model URLs

Core endpoints (representative)

POST/v2/openapi/taskSubmit any task (text/image/multiview → model, texture, segment, rig, convert)
GET/v2/openapi/task/{task_id}Poll task status and retrieve results when complete
POST/v2/openapi/uploadUpload a reference image or mesh for use in a task
GET/v2/openapi/user/balanceCheck your remaining API credit balance

Endpoint paths shown here are illustrative of the public API's documented structure - always confirm exact routes and parameters in the official reference before writing production code.

Tripo API pricing & cost

Tripo API pricing: what it costs, per operation

Unlike Studio's flat monthly plan, the Tripo API cost model is entirely usage-based: you top up a credit balance and each operation deducts a published amount - no monthly generation cap to hit, just a balance to monitor and refill. That structure makes forecasting refreshingly precise once you know your expected call volume.

OperationApprox. creditsNotes
Base generation (text/image → model)~20v3.0/v3.1 base mesh, standard detail
+ High-detail geometry+~30Added resolution pass on top of base
+ Quad remesh+~7.5Animation-friendly topology conversion
Re-texturing20–50Varies with resolution / HD option
Intelligent segmentation~80Part-splitting with mesh completion
Smart Mesh (P1) generation60–80Depends on text vs. image input
Format conversionLow / variesBetween GLB, FBX, OBJ, STL, USDZ, 3MF

Budgeting formula: expected monthly generations × per-operation credits, plus a 20–30% buffer for retries and failed jobs. Confirm current per-operation pricing on Tripo's official API pricing page before finalizing a cost model - prices and promotions shift over time.

Tripo API credits

API credits vs. Studio credits

Both Studio and the API run on a credits system, but they are separate pools with separate billing - this is the single most common point of confusion for new developers. A Studio subscription (Basic/Professional/Advanced/Premium) deposits credits you spend generating through the browser workspace; API credits are purchased independently and consumed per call. Funding one does not fund the other.

Studio creditsAPI credits
BillingFlat monthly/annual planUsage-based, top up as needed
Spent viaBrowser workspaceHTTP calls from your code
Shared pool?No - entirely separate

If you mainly generate by hand and only occasionally script something, Studio alone is enough - see our Studio pricing guide. If you're building a product on top of Tripo, budget the API separately.

Tripo API text to 3D

Text-to-3D via the API

Submit a text prompt as a text_to_model task and poll for the result - this is the most common starting point for API integrations.

bash
curl -X POST https://api.tripo3d.ai/v2/openapi/task \
  -H "Authorization: Bearer $TRIPO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text_to_model",
    "prompt": "a cute chibi robot companion, rounded plastic shell",
    "model_version": "v3.1"
  }'
Tripo API image to 3D

Image-to-3D via the API

Upload a reference image first, then submit an image_to_model task referencing the uploaded file. Clean background, even lighting, and a three-quarter angle produce the best results here, exactly as in Studio.

bash
# 1. Upload the reference image
curl -X POST https://api.tripo3d.ai/v2/openapi/upload \
  -H "Authorization: Bearer $TRIPO_API_KEY" \
  -F "file=@product_photo.jpg"

# 2. Submit the image-to-model task with the returned file token
curl -X POST https://api.tripo3d.ai/v2/openapi/task \
  -H "Authorization: Bearer $TRIPO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "image_to_model", "file_token": "returned_token_here"}'
Tripo API Python tutorial

Python quickstart

The API is plain REST/JSON, so any HTTP client works - requests is the simplest way to get started in Python. This mirrors the submit → poll → download pattern every integration builds on.

python
import requests, time, os

API_KEY = os.environ["TRIPO_API_KEY"]
BASE = "https://api.tripo3d.ai/v2/openapi"
headers = {"Authorization": f"Bearer {API_KEY}"}

# 1. Submit a text-to-model task
resp = requests.post(f"{BASE}/task", headers=headers, json={
    "type": "text_to_model",
    "prompt": "a weathered stone lantern, moss-covered base",
    "model_version": "v3.1"
})
task_id = resp.json()["data"]["task_id"]

# 2. Poll until the task completes
while True:
    status = requests.get(f"{BASE}/task/{task_id}", headers=headers).json()
    state = status["data"]["status"]
    if state == "success":
        model_url = status["data"]["output"]["model"]
        break
    elif state == "failed":
        raise RuntimeError("Generation failed")
    time.sleep(3)

# 3. Download the finished model
model_data = requests.get(model_url).content
with open("lantern.glb", "wb") as f:
    f.write(model_data)
print(f"Saved lantern.glb - task {task_id} complete")

Production tip: replace the polling loop with a webhook callback URL registered in the task submission - cheaper on both ends and avoids accidentally tripping a rate limit with aggressive polling.

Tripo API example

A complete end-to-end example

Putting text-to-3D, polling, and segmentation together - a realistic small pipeline: generate a model, then split it into parts.

python
def wait_for_task(task_id, headers, base):
    while True:
        r = requests.get(f"{base}/task/{task_id}", headers=headers).json()["data"]
        if r["status"] == "success": return r["output"]
        if r["status"] == "failed": raise RuntimeError("task failed")
        time.sleep(3)

# Step 1: generate the base model
gen = requests.post(f"{BASE}/task", headers=headers, json={
    "type": "text_to_model", "prompt": "a segmented toy robot"
}).json()["data"]["task_id"]
model_out = wait_for_task(gen, headers, BASE)

# Step 2: segment the completed model into parts
seg = requests.post(f"{BASE}/task", headers=headers, json={
    "type": "segmentation", "original_model_task_id": gen, "level": "balanced"
}).json()["data"]["task_id"]
seg_out = wait_for_task(seg, headers, BASE)

print("Segmented parts ready:", seg_out)
Tripo API integration

Integration patterns

🔄 Polling

Simple, works everywhere, no public endpoint needed on your side. Higher latency and request count - fine for scripts and prototypes.

📡 Webhooks

Register a callback URL; Tripo POSTs the result the moment it's ready. Near-zero latency, far fewer requests - the right choice for production volume.

🛍️ Product catalogs

Batch-convert product photography into 3D/AR assets overnight via scripted image-to-3D calls across a whole inventory.

🎮 In-app generation

Let your own app's users trigger 3D generation - a customization tool, a game's asset pipeline - without ever touching Tripo's UI.

Rate limits and concurrency caps typically scale with your API credit tier; implement exponential backoff on 429 responses and batch submissions at modest concurrency (start around 5–10 parallel tasks and measure). Exact numbers live in the official docs and can change - read response headers rather than hard-coding a limit.

FAQ

Tripo API - frequently asked questions

What is the Tripo 3D API used for?
Wiring AI 3D generation - text-to-3D, image-to-3D, texturing, segmentation, rigging - into your own application, product, or automated pipeline, as an alternative to generating by hand in Tripo Studio.
How do I get a Tripo API key?
Create a free Tripo account, go to the developer/API section of your account settings, and generate a key. Keep it server-side and never commit it to a public repository.
How much does the Tripo API cost?
It's usage-based: you purchase API credits and each operation deducts a published amount - roughly 20 credits for a base generation, more for texturing, segmentation, or Smart Mesh. There's no monthly cap, just a balance to top up.
Is the Tripo API the same billing as my Studio plan?
No - Studio subscriptions and API credits are completely separate pools with separate billing. A Professional Studio plan doesn't fund API calls, and API credit purchases don't add Studio generations.
Is there a Python SDK, or do I need to call REST directly?
The API is plain REST/JSON callable from any language with an HTTP client (as shown in the Python examples above). Check Tripo's official developer docs and GitHub for any official or community SDKs, since availability changes.
Is the API synchronous or asynchronous?
Asynchronous. You submit a task and receive a task ID immediately; generation happens in the background, and you poll for status or receive a webhook when it completes.
Can I do image-to-3D through the API, not just text-to-3D?
Yes - upload a reference image via the upload endpoint, then submit an image_to_model task referencing the returned file token, as shown above.
Where's the official Tripo API documentation?
In your Tripo account's developer/API settings, linking to the official reference. This page is an independent, illustrative guide to the concepts - not a replacement for the official reference when writing production code.

Get your API key and start building

Create a free account, generate a key from developer settings, and run the Python example above in a few minutes.

Get started free →