Generate 3D models from your own code

Every studio tool is one POST away: text to 3D, image to 3D, texturing, remeshing and rigging. Use it to give your users a 3D view of their own photos, create game items on demand, or build a prop library overnight from a spreadsheet.

Node.js: image to 3D with a webhook
import crypto from "node:crypto";

const res = await fetch("https://api.threed.site/v1/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.THREED_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    mode: "image",
    image_urls: ["https://example.com/sneaker.jpg"],
    webhook_url: "https://yourapp.com/hooks/threed",
  }),
});
const job = await res.json(); // { id, status: "queued", credits: 30 }

// In your webhook handler: verify before trusting the payload
export function verify(rawBody, signature, secret) {
  const expected = crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}
Python: text to 3D with polling
import os, time, requests

API = "https://api.threed.site/v1"
H = {"Authorization": f"Bearer {os.environ['THREED_KEY']}"}

job = requests.post(f"{API}/generations", headers=H, json={
    "mode": "text",
    "prompt": "low-poly pine tree, stylised",
    "options": {"target_triangles": 1500},
}).json()

while job["status"] in ("queued", "running"):
    time.sleep(5)
    job = requests.get(f"{API}/generations/{job['id']}", headers=H).json()

asset = job["assets"][0]["id"]
url = requests.get(f"{API}/assets/{asset}/download", headers=H,
                   params={"format": "glb"}).json()["url"]

Every job follows the same three calls

  1. 1

    Create

    POST to /generations with a mode and inputs. You get a job ID straight away.
  2. 2

    Wait

    Poll the job, or pass a webhook URL and get a signed POST when it finishes.
  3. 3

    Download

    Request any export format and receive a short-lived signed URL to the file.

What teams build with it

  • E-commerce: sellers upload product photos and get a 3D and AR viewer on the listing.
  • Games and UGC platforms: players describe an item and it appears in their inventory.
  • Asset pipelines: a nightly job generates, remeshes and exports a list of props.
  • Print-on-demand: customers design a figurine from a description and receive an STL.

Built for production

  • Keys stored only as hashes, revocable at any time, with their last use shown.
  • HMAC-signed webhooks with automatic retries for about 21 hours.
  • Per-plan concurrency limits and clear, documented error codes.

What each call costs

API jobs use the same credits as the studio, reserved when the job is accepted and refunded automatically if it fails. With 6,000 credits a month on Studio, that works out to:

modeCredits per jobJobs per month on Studio
text (stage preview)10600
text (stage refine)25240
image30200
texture10600
remesh51,200
rig15400

Up to 10 jobs run at once; further requests get 429 too_many_jobs until one finishes, so queue on your side rather than retrying in a tight loop. Details: credits and limits.

How to wire it into an app

  • Call from your server, never the browser. The key is a secret. Your front end asks your back end, which calls threeD and stores the job ID against your own user.
  • Prefer webhooks to polling. Generation takes minutes. A webhook means no open connections and no wasted requests; verify the threed-signature HMAC before trusting the body, and treat the job ID as an idempotency key because a delivery can repeat.
  • Cost-gate user requests. Text jobs can run as a cheap preview first; only refine the result the user keeps.
  • Store what you deliver. Download the GLB once and serve it from your own storage or CDN; download links are short-lived.
  • Check content before you call. Prompts and images that break the acceptable use policy return 422 content_rejected; surface that message to your user instead of retrying.

API questions

Which plans include the API?
The Studio plan. See pricing. API calls use the same credits as the studio.
Can end users of my app own the models?
Yes. The outputs belong to you, and you can pass those rights to your users under your own terms. See licensing.
Are there official SDKs?
The API is plain REST and JSON, so any HTTP client works. The examples on this page use only standard libraries, and the documentation covers every endpoint.

Start building

Create a test key and make your first request in a few minutes.