API docs
Everything in the 3D Studio and the Image Studio, from your own code: generate models and pictures, run every 3D tool on them, manage your library, download your files, and run your 3D Pipelines. Each request spends your credits exactly as the website does, at the same prices.
Base URL: https://api.zetta3d.ai/api. Every path on this page is relative to it. Requests and responses are JSON unless a section says otherwise.
API keys
Create a key on the API keys page. API keys come with a paid plan. You see the whole key once, when you create it, so copy it then. An account can have up to 10 keys, and you can revoke any of them at any time; a revoked key stops working straight away. The same page shows each key’s usage and a log of every request it made, kept for 90 days.
Authentication
Send the key in the Authorization header as a bearer token, or in X-API-Key. Check it works by asking which account it belongs to:
curl -X GET "https://api.zetta3d.ai/api/auth/me" \
-H "Authorization: Bearer $ZETTA_API_KEY"A key opens the 3D Studio, the Image Studio, their tools, your pipelines’ runs and read-only account information. Everything else — account settings, billing, keys themselves, and creating or changing pipelines — stays on the website, and answers 403 API_KEY_NOT_ALLOWED to a key.
How requests work
Jobs run in the background
A 3D job — a generation or a tool on a model — is accepted at once and finishes later. The create call answers with the job and its status; check GET /3d/generations/:id every few seconds until it reaches a final status. Pictures are different: an image request waits for the picture and returns it in the response.
3D job statuses
- pendingAccepted and charged; about to be queued. Normally lasts milliseconds.
- queuedWaiting for a free slot. queuePosition says where it is.
- processingBeing made.
- savingMade; the files are being stored.
- successDone. The files are in result and can be downloaded.
- failedDid not finish. errorMessage says why, and the credits are refunded.
- cancelledCancelled before it started. The credits are refunded.
Idempotency
Every request that spends credits takes an Idempotency-Key header — any string up to 128 characters that is unique to that piece of work, like order-1182-chair. Sending the same request again with the same key returns the first result instead of charging twice, so a retry after a timeout is always safe. Without the header, a repeated request is a new, separately charged job.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: order-1182-chair" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"generation": {
"base": "textured"
}
},
"imageUrl": "https://example.com/chair.png"
}'A 3D create tells you which happened: "charged": true for a new job, false for a replay of an earlier one.
Ids and your library
Everything you make lands in your library on zetta3d.ai, exactly as if you had made it on the website, and every 3D model and picture has a numeric id. Tools take a model by that id (sourcePostId), so you never have to pass files around between steps.
Rate limits
Limits are counted per key.
- 300 requests a minute and 5,000 an hour, across all endpoints.
- 3D jobs: 10 a minute. Uploads: 10 a minute. Pictures: 20 a minute (combining: 10). Background removal: 20 a minute. Pipeline runs: 10 a minute, batches 5 a minute.
- Every other endpoint: 60 a minute.
- Each plan runs a set number of 3D jobs at once; past it a new job answers
409 JOB_LIMIT_REACHED(see Prices and plan limits). Accepted jobs wait their turn in the queue —queuePositionsays where.
Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Past a limit you get 429 RATE_LIMITED with a Retry-After header in seconds; wait that long and send the request again.
Credits
The API spends the same credits as the website, at the same prices: 3D jobs spend 3D credits, and AI tagging spends AI tokens. A 3D job is priced before it starts and charged when it is accepted; one that fails, or is cancelled before it starts, gives its credits back. Price a job first, without spending anything, with POST /3d/quote. If you don’t have enough credits the request answers 400 INSUFFICIENT_CREDITS with how many you need and have, and nothing is charged.
Jobs made through the API are marked API on your Usage page, and the API keys page shows what each key spent. Every model you download has clean, neutral names for its parts, materials and bones — the same files the Studio gives you.
Errors
An error is JSON with statusCode, a message written to be shown to a person, and often a code to branch on. Some carry more, like the credits you need:
{ "statusCode": 400, "code": "INSUFFICIENT_CREDITS", "message": "Not enough credits — this needs 68 and you have 20.", "required": 68, "available": 20 }- 400The request is not valid. The message names the field and the rule.
- 400 INSUFFICIENT_CREDITSNot enough credits. required and available say how far off.
- 401 INVALID_API_KEYThe key is wrong, revoked, or its account is gone.
- 403 API_KEY_NOT_ALLOWEDThat endpoint only works on the website.
- 403 PLAN_REQUIREDThis needs a paid plan, or a higher one.
- 403 PIPELINE_EDIT_NOT_ALLOWEDPipelines can be run through the API, not changed.
- 404Not found — or not yours. The two look the same on purpose.
- 409The request conflicts with the current state — too many jobs running, or cancelling one that already started.
- 429 RATE_LIMITEDToo many requests. Wait for Retry-After seconds.
- 5xxSomething went wrong on our side. Retry with the same Idempotency-Key.
3D Studio
Every 3D job — making a model, or running a tool on one — is one request to POST /3d/generations. What it does is set by spec, the engine by model, and the inputs by a few more fields. The sections below give the exact request for each thing the Studio can do.
403 SPLAT_NOT_IN_API.Uploading files
Pictures and models reach a job as addresses. A file that’s already online can be passed by its https:// address. To send one from your machine, reserve an upload, send the bytes to it, and use the fileUrl it gives you.
Reserve an upload
/3d/uploads· 10 a minuteBody
contentTypestringrequiredPictures:image/png,image/jpeg,image/webp. A GLB:model/gltf-binary. Any other model:application/octet-streamwithextension.extensionstringOnly withapplication/octet-stream:fbx,obj,stl,gltf,ply,dae,3ds,3mf,amf,usdz,usd,usda,usdc,wrl,lwo,kmz, orzip(an OBJ with its materials and textures).
curl -X POST "https://api.zetta3d.ai/api/3d/uploads" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contentType": "image/png"
}'{
"uploadUrl": "https://api.zetta3d.ai/api/3d/uploads/relay?ticket=…",
"method": "PUT",
"headers": { "Content-Type": "image/png" },
"key": "inputImg/42/0b6e….png",
"fileUrl": "https://…",
"expiresAt": "2026-11-26T10:00:00.000Z"
}Send fileUrl as a job’s imageUrl or sourceFileUrl — it stays valid for 24 hours. Use key as a pipeline input. The upload address is valid for 2 hours. Reserving charges nothing.
Sending the file
Files up to 8 MB go in one request. Send the bytes to uploadUrl with exactly the Content-Type it returned:
curl -X PUT "$UPLOAD_URL" -H "Content-Type: image/png" --data-binary @chair.png
# → { "key": "inputImg/42/0b6e….png", "bytes": 482113 }Larger files go in pieces of 8 MB, because a single request is cut off after 100 seconds. Pass the same ticket every time:
- POST /3d/uploads/relay/multipart?ticket=TOpen the upload. Answers { "uploadId": "U" }.
- PUT /3d/uploads/relay/multipart/part?ticket=T&uploadId=U&part=NSend piece N (from 1), same Content-Type, up to 16 MB. Resending a piece replaces it.
- POST /3d/uploads/relay/multipart/complete?ticket=T&uploadId=U&parts=N&bytes=BJoin the N pieces, B bytes in all. Answers { "key", "bytes" }.
- DELETE /3d/uploads/relay/multipart?ticket=T&uploadId=UAbandon it.
Size limits
- Pictures32 MB
- Models512 MB
Upload addresses need no API key — the ticket is the permission. A wrong Content-Type answers 415, a file over the limit 413, an expired ticket 410.
Add your own model to your library
/3d/uploads/post· 10 a minuteTurns an uploaded model into a library model, so every tool can run on it. Free. Upload the file first, then call this.
Body
keystringrequiredThekeyfromPOST /3d/uploads.bytesintegerrequiredThe file’s size.titlestringUp to 120 characters.
curl -X POST "https://api.zetta3d.ai/api/3d/uploads/post" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "inputImg/42/0b6e….glb",
"bytes": 52428800,
"title": "My chair"
}'Answers 201 with { "generation": { … } }, already success. Tools run on GLB, OBJ and FBX models.
Making a 3D job
Create a 3D job
/3d/generations· 10 a minutePrices the job, charges your credits and queues it. Send an Idempotency-Key. Every field but spec is optional; the ones each feature uses are listed with it below.
Fields every job takes
specobjectrequiredWhat to make and what you pay for. A generation:{ "generation": { "base": "textured", "modifiers": ["pbr"] } }. A tool on a model:{ "postProcess": ["smart_topology"] }. One or the other, never both, and one tool per job.modelstringThe engine:n25(default),np1ornp15. Leave it out for tools — each tool runs on its own engine.titlestringUp to 255 characters. Left out: the prompt, or for a tool “Source title - Tool”.tagsstring[]Up to 20, each up to 64 characters.availabilitystringprivate(default) orpublic— a public model can be viewed by anyone with its link.
{
"generation": { "id": 4821, "status": "pending", … },
"quote": { "credits": 50, "lines": [{ "code": "textured", "label": "Textured", "credits": 50 }] },
"charged": true
}Then check GET /3d/generations/4821 until the status is success, failed or cancelled. A job that fails is refunded.
Engines
- n25 — Zetta N2.5The default. Textured, geometry-only and low-poly models, Ultra detail, and models in parts.
- np1 — Zetta Np1Smart 3D: clean, game-ready models built to the polygon count you choose (up to 20,000). HD or 8K textures.
- np15 — Zetta Np1.5Smart 3D with quads and up to 50,000 polygons (25,000 quads). HD or 8K textures.
- r1 — Zetta R1Smart topology only. Chosen for you on that tool.
What a generation can be
spec.generation.base — pick one
- texturedA textured model. The usual choice. n25, np1, np15.
- geometry_onlyAn untextured (white) model. n25, np1, np15.
- lowpolyClean low-poly topology. n25 only. 9,000 polygons unless you set faceCount.
spec.generation.modifiers — add any that apply
- pbrA full PBR material set instead of a single colour map. Not on geometry_only.
- multi_viewBuild from several labelled pictures (multiViewImages). Required with them.
- custom_face_countYou set the polygon count with faceCount. Required with it.
- detailed_geometryUltra detail — up to 2,000,000 polygons. n25 only.
- detailed_textureHD textures. n25, np1, np15. Textured models only.
- extreme_texture8K textures. np1 and np15 only. Not with detailed_texture.
- generate_partsThe model arrives split into separate, editable parts. n25, geometry_only only, triangles only.
Generation options
faceCountintegerThe polygon count, withcustom_face_count. Ranges are in the table below.polygonTypestringtriangle(default) orquadrilateralfor quads. Quads on n25 and np15; a quad model is delivered as FBX.generationTypestringOnly to get an untextured low-poly model:Geometrywith baselowpoly.textureAlignmentstringoriginal_image keeps the texture faithful to the picture; geometry fits it to the mesh.textureFastbooleanA faster standard texture. Ignored with HD or 8K textures.delightbooleanRemove the lighting baked into the picture from the texture. Default off.autoSizebooleanScale the model to real-world size in metres.autofixImagebooleanClean the picture up before generating (slower).compressGeometrybooleanA smaller file.exportUvbooleanUnwrap UVs while generating. Default on; send false to skip. Always off for geometry only.modelSeedintegerA number. The same seed gives the same shape again.textureSeedintegerA number. Change it to vary only the texture.
Polygon counts (faceCount)
- n25 lowpoly1,000–20,000 triangles · 500–10,000 quads
- n25 textured / geometry only1,000–1,000,000 triangles · 1,000–150,000 quads
- n25 with detailed_geometry1,000–2,000,000 triangles · 1,000–150,000 quads
- np148–20,000 triangles
- np1548–50,000 triangles · 48–25,000 quads
Image to 3D
One picture of the object in imageUrl — an upload’s fileUrl, any public image, or a picture from POST /2d/generate with for3D: true. A plain background works best.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"generation": {
"base": "textured",
"modifiers": [
"pbr"
]
}
},
"imageUrl": "https://example.com/chair.png",
"model": "n25",
"textureAlignment": "geometry"
}'Ultra detail with HD textures and a set polygon count:
{
"spec": {
"generation": {
"base": "textured",
"modifiers": [
"pbr",
"detailed_geometry",
"detailed_texture",
"custom_face_count"
]
}
},
"imageUrl": "https://example.com/robot.png",
"model": "n25",
"faceCount": 1500000,
"delight": true
}Low-poly in quads (delivered as FBX):
{
"spec": {
"generation": {
"base": "lowpoly",
"modifiers": [
"pbr",
"custom_face_count"
]
}
},
"imageUrl": "https://example.com/chair.png",
"model": "n25",
"faceCount": 8000,
"polygonType": "quadrilateral"
}Text to 3D
Send a prompt (up to 1,024 characters) and no picture. A 3D-ready picture is drawn from it first, at no charge, and saved to your Image Studio library; the model is built from that picture.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"generation": {
"base": "textured",
"modifiers": [
"pbr"
]
}
},
"prompt": "a weathered bronze dragon statue on a stone plinth",
"model": "n25"
}'To choose the picture yourself, make it with POST /2d/generate (for3D: true) and send its address as imageUrl with the prompt and imageFromPrompt: true. A prompt and a picture together are refused otherwise.
Smart 3D
Zetta Np1 and Np1.5 build clean, game-ready models to the exact polygon budget you set — the whole model is made for that count, not reduced to it afterwards. Bases textured or geometry_only.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"generation": {
"base": "textured",
"modifiers": [
"pbr",
"extreme_texture",
"custom_face_count"
]
}
},
"imageUrl": "https://example.com/crate.png",
"model": "np15",
"faceCount": 12000,
"polygonType": "quadrilateral"
}'Multi-view to 3D
Several pictures of the same object from different sides give a more accurate model. Add the multi_view modifier and send multiViewImages: front is required, plus at least two of left, back, right — use only these four. No prompt. Up to 4 pictures.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"generation": {
"base": "textured",
"modifiers": [
"multi_view",
"pbr"
]
}
},
"multiViewImages": [
{
"viewType": "front",
"imageUrl": "https://example.com/front.png"
},
{
"viewType": "left",
"imageUrl": "https://example.com/left.png"
},
{
"viewType": "back",
"imageUrl": "https://example.com/back.png"
},
{
"viewType": "right",
"imageUrl": "https://example.com/right.png"
}
],
"model": "n25"
}'Works on n25, np1 and np15.
Models in parts
With generate_parts, the model arrives already divided into separate parts you can move, hide or replace. N2.5, geometry_only, triangles.
{
"spec": {
"generation": {
"base": "geometry_only",
"modifiers": [
"generate_parts"
]
}
},
"imageUrl": "https://example.com/robot.png",
"model": "n25"
}To split a model you already have, use AI segmentation or Smart segmentation below.
Tools on a model
Every tool is a job with "spec": { "postProcess": ["<tool>"] } and the model to work on, which is one of:
sourcePostId— a finished model in your library (the usual way).sourceFileUrl— anhttps://address of a.glb,.objor.fbx.
Each tool makes a new model in your library and leaves the original as it was. Leave model out. Source models can be up to 150 MB. One tool per job — chain them by passing each result’s id to the next.
Smart topology
Rebuilds the model’s mesh as clean, even topology — triangles or quads — at the polygon count you choose, keeping its look. Runs on Zetta R1.
Body
polygonTypestringtriangle(default) orquadrilateral.faceCountintegerExact polygon count: 500–20,000 triangles or 500–10,000 quads. Wins overfaceLevel.faceLevelstringA preset instead of a number:low,medium,high(triangles 2,000 / 8,000 / 20,000; quads 2,000 / 5,000 / 10,000). Neither: the engine decides.bakebooleanBake the original textures onto the new mesh. Default true.unwrapUvsbooleanAlso unwrap UVs, at no extra cost.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001-topology" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"postProcess": [
"smart_topology"
]
},
"sourcePostId": 4821,
"polygonType": "quadrilateral",
"faceCount": 8000,
"bake": true,
"unwrapUvs": true
}'AI segmentation
Splits a model into named parts, delivered as one GLB per part.
Body
segmentGranularitystringsimple(few parts),balanced(default) ordetailed(most parts).splitByConnectivitybooleanAlso split pieces that aren’t connected. Default true.imageUrlstringOptional picture showing the parts you want; it guides the split.
{
"spec": {
"postProcess": [
"ai_segmentation"
]
},
"sourcePostId": 4821,
"segmentGranularity": "detailed"
}Smart segmentation
Splits a model into parts while rebuilding each one, for cleaner parts from a rough model. GLB models only.
Body
segmentGranularitystringsimple,balancedordetailed.promptstringOptional hint naming the parts — “a knight with sword, shield and armour”.
{
"spec": {
"postProcess": [
"smart_segmentation"
]
},
"sourcePostId": 4821,
"segmentGranularity": "balanced",
"prompt": "robot with arms, legs, head and torso"
}Smart UV
A new, clean UV layout with the textures baked onto it. Delivers the model and an image of the layout. The model must be under 80,000 triangles — run Smart topology first if it’s larger.
Body
bakebooleanBake the textures onto the new layout. Default true; false gives bare UVs.exportOrientationstringTurn the model to face+x,-x,+yor-y. Left out: unchanged.compressGeometrybooleanA smaller file.
{
"spec": {
"postProcess": [
"smart_uv"
]
},
"sourcePostId": 4821
}AI texturing
New materials on the model’s existing shape. The tool code is the quality: retexture (standard), retexture_hd or retexture_8k. Guide it with a picture of the look you want in imageUrl, or with views of the object in multiViewImages (front required, then left, back, right). To texture from a description, make the picture first with POST /2d/generate and pass it.
Body
imageUrlstringA reference picture.multiViewImagesobject[]Views of the object, instead of one picture. They win if both are sent.enablePBRbooleanPBR maps with the new texture. Default true.delightbooleanRemove the reference picture’s lighting. Default false.textureAlignmentstringoriginal_imageorgeometry.textureFastbooleanFaster, standard quality only.bakebooleanBake material effects into the base textures. Default true.textureSeedintegerVary the result.
curl -X POST "https://api.zetta3d.ai/api/3d/generations" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Idempotency-Key: chair-001-texture" \
-H "Content-Type: application/json" \
-d '{
"spec": {
"postProcess": [
"retexture_hd"
]
},
"sourcePostId": 4821,
"imageUrl": "https://example.com/rusty-metal.png",
"enablePBR": true,
"delight": true
}'Auto rigging
Fits a skeleton so the model can be animated. Check first with POST /ai/rigging-precheck if you’re not sure of the body type.
Body
rigTypestringbiped(default),quadruped,hexapod,octopod,avian,serpentine,aquatic, orothers.rigSpecstringHow the bones are named, for bipeds:standard(default),mixamo,unity,unreal,vrm,actorcore.rigOutFormatstringglb(default) orfbx.
{
"spec": {
"postProcess": [
"auto_rigging"
]
},
"sourcePostId": 4821,
"rigType": "biped",
"rigSpec": "unreal",
"rigOutFormat": "fbx"
}Convert & export
Writes the model in another format, optionally reworked for where it’s going. Send convert_format; options beyond the format move it to the advanced price automatically (the quote shows the basic one).
Body
outputFormatstringrequiredGLTF,FBX,USDZ,OBJ,STLor3MF.polygonTypestringquadrilateralfor quads. FBX only.faceCountintegerReduce to this many polygons.forceSymmetrybooleanMake quad output symmetric.flattenBottombooleanFlatten the underside so the model stands flat.flattenBottomThresholdnumberHow deep the flattening cuts, 0–1.textureSizeinteger128–4096. Default 4096.textureFormatstringJPEG(default),PNG,WEBP,BMP,DPX,HDR,OPEN_EXR,TARGA,TIFF.packUvbooleanRepack all UV islands into one layout.exportVertexColorsbooleanOBJ and GLTF only.pivotToCenterBottombooleanMove the pivot to the bottom centre.scaleFactornumber0.001–1000. Default 1 (0.01 turns centimetres into metres).withAnimationbooleanKeep the skeleton and animation. Default true.animateInPlacebooleanRemove root motion.exportOrientationstring+x(default),-x,+y,-y.fbxPresetstringFor FBX:blender(default),3dsmax,mixamo.
{
"spec": {
"postProcess": [
"convert_format"
]
},
"sourcePostId": 4821,
"outputFormat": "USDZ"
}{
"spec": {
"postProcess": [
"convert_format"
]
},
"sourcePostId": 4821,
"outputFormat": "FBX",
"polygonType": "quadrilateral",
"pivotToCenterBottom": true,
"scaleFactor": 0.01,
"textureSize": 2048,
"textureFormat": "PNG",
"fbxPreset": "3dsmax"
}Prices and plan limits
Price a job first
/3d/quoteWhat a job will cost, without charging. Send the job’s spec contents and its model — without model you get general prices, which can differ.
curl -X POST "https://api.zetta3d.ai/api/3d/quote" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"generation": {
"base": "textured",
"modifiers": [
"pbr"
]
},
"model": "n25"
}'{ "credits": 50, "lines": [{ "code": "textured", "label": "Textured", "credits": 50 }, { "code": "pbr", "label": "PBR materials", "credits": 0 }] }The price list
/3d/pricingEvery operation’s price: { "items": [{ "code", "kind", "label", "credits", "model" }] }. A row with a model is that engine’s price; null applies to the rest. GET /3d/operations gives the same, grouped by kind.
What your plan allows
/3d/entitlementsWhich features your plan includes and how many jobs it runs at once. Every paid plan includes every feature; plans differ in credits and in how many jobs run together.
Jobs running at once, per kind of job
- Tester1
- Basic2
- Creator5 (3 for texturing and converting)
- Creator ProUp to 10
Past that, a new job answers 409 JOB_LIMIT_REACHED — wait for one to finish. The kinds are N2.5 generations, Smart 3D generations, rigging, texturing and converting, and topology, segmentation and UV.
Your 3D library
Get a job
/3d/generations/:id{
"generation": {
"id": 4821, "status": "success", "selectedFeature": "img23d", "selectedModel": "n25",
"title": "Chair", "tags": [], "availability": "private",
"inputImages": [{ "url": "…", "viewType": null }], "thumbnailURL": "…",
"faceCount": null, "polygonType": null,
"result": {
"files": [{ "type": "GLB", "key": "…", "url": "…", "bytes": 1234567, "label": null }],
"thumbnail": { "key": "…", "url": "…" }
},
"errorMessage": null, "createdAt": "…", "updatedAt": "…"
},
"queuePosition": null
}result is null until success. File links last at least 10 minutes; get the job again for fresh ones. queuePosition counts from 1 while the job waits.
List your models
/3d/generationsQuery
pageintegerFrom 1.pageSizeinteger1–100. Default 24.statusstringFilter by status; repeat for several (?status=success&status=failed).featurestringimg23d,txt23d,multiView23d,retopology,segmentation,smartSegmentation,uvUnwrap,retexture,autoRigging,convertFormat,upload.searchstringTitle, tag or id.availabilitystringpublicorprivate.sortBystringcreatedAt(default) orupdatedAt.sortDirstringDESC(default) orASC.
Answers { "items": [ … ], "total", "page", "pageSize" }.
Download a file
/3d/generations/:id/downloadA download link for a finished job: { "key", "url", "expiresInSeconds": 900 }. Without ?key= you get the main model file; pass one of the job’s result.files[].key to choose another. The link supports HTTP ranges.
curl -X GET "https://api.zetta3d.ai/api/3d/generations/4821/download" \
-H "Authorization: Bearer $ZETTA_API_KEY"
curl -o chair.glb "$URL"Rename, tag or share
/3d/generations/:idBody
titlestringUp to 255 characters.tagsstring[]Replaces the tags. Up to 20.availabilitystringpublicorprivate.
Cancel a job
/3d/generations/:id/cancelOnly while it is pending or queued; every credit comes back. Once it has started, it answers 409 GEN3D_ALREADY_SUBMITTED.
Delete a model
/3d/generations/:idDeletes the model and its files for good. Answers 204. Not refunded: a job still running finishes in the background.
Replace a model’s file
/3d/generations/:id/result-upload· 10 a minuteOverwrite a finished model’s GLB (or its one FBX) with an edited version — for instance after editing it in your own tool. Body: { "format": "glb" | "fbx" }, plus part (from 0) for a model in parts. Answers an uploadUrl; send the file there as with any upload. Free.
3D errors
- 400A field or combination isn’t allowed. The message says which and why — nothing is charged.
- 400 MODEL_CAPABILITY_UNSUPPORTEDThe engine can’t do that. message lists every problem found.
- 400 INSUFFICIENT_CREDITSNot enough credits; required and available say how far off.
- 403 PLAN_REQUIRED / PLAN_CAPABILITY_REQUIREDYour plan doesn’t include it. violations lists what.
- 403 SPLAT_NOT_IN_APIGaussian splats are made on the website and aren’t available through the API.
- 404The source model isn’t yours or doesn’t exist.
- 409 JOB_LIMIT_REACHEDToo many jobs of this kind running; wait for one to finish.
- 409 GEN3D_NOT_READYDownload asked for before the job finished.
- 503 FEATURE_UNAVAILABLEThe feature is briefly unavailable. Nothing was charged.
Image Studio
Make pictures from a prompt, change them with an instruction, or combine several into one. Every picture is saved to your Image Studio library as it is made, and can be used straight away as the input for a 3D model or a pipeline. Pictures need a paid plan and don’t use credits.
Models
- flashFast. 1K and 2K; renders at 1K, so a 2K request runs on Pro. Used for every for3D picture.
- proHighest quality. 1K, 2K and 4K. The default on paid plans.
List the image models
/2d/modelsThe models your account can use, with the resolutions each offers, and the one used when a request names none.
{
"models": [
{ "id": "flash", "label": "Flash", "resolutions": ["1K", "2K"] },
{ "id": "pro", "label": "Pro", "resolutions": ["1K", "2K", "4K"] }
],
"default": "pro"
}What your plan allows
/2d/entitlements{ "plan": "basic", "entitlements": { "allowsImageEditing": true, "allows4kImages": true, "allowsProImageModel": true } }Options every image request takes
Body
promptstringrequiredWhat to make, or what to change. 1 to 5,000 characters.aspectRatiostringOne of1:12:33:23:44:34:55:49:1616:921:9. Left out, the model picks.resolutionstring1K,2Kor4K. Flash offers 1K and 2K; Pro all three. A size the chosen model can’t render runs on Pro instead, and the response’smodelsays so.modelstringflash(fast) orpro(highest quality). Left out:pro, orflashif your plan can’t use Pro.GET /2d/modelslists what your account can use.for3DbooleanMake the picture as an input for 3D. Always runs on Flash. Withsubject: "object"it is a single centred object on a plain background, fully in frame, at 1:1 and 1K — ready for Generate 3D. Withsubject: "environment"it is a whole scene filling the frame with clear depth, at youraspectRatioandresolution(default 16:9, 1K).subjectstringobject(default) orenvironment. Only read withfor3D: true.fastbooleanPrefer Flash, changing nothing else. Amodelyou name wins over it.
Pictures you send are base64 objects, the same everywhere:
Image object
datastringrequiredThe file as base64, without adata:prefix. Up to 10,000,000 characters (about 7.5 MB).contentTypestringimage/png(default),image/jpegorimage/webp.
A whole request can be at most 16 MB, which limits how many large pictures fit in one call. Pictures already in your library can be named by id instead, which costs nothing against that limit.
The response
Generate, edit and compose all answer the same way:
{
"postId": 1234,
"images": [{ "base64": "iVBORw0K…", "contentType": "image/png", "bytes": 1482304 }],
"text": null,
"model": "pro"
}- postIdThe picture’s id in your library. Use it to edit it, combine it, or start a pipeline from it.
- imagesThe picture, as base64 with its type and size in bytes.
- textAny text the model returned with the picture. Usually null.
- modelThe model that actually ran — it can differ from the one you asked for (see for3D and resolution).
Idempotency-Key on image requests keeps your library to one entry per key, but a repeated request still makes a new picture (and returns postId: null). Don’t retry an image request that succeeded.Generate a picture
/2d/generate· 20 a minuteMake a picture from a prompt, optionally guided by up to three style references.
Takes every option above, plus:
Body
styleReferencesimage object[]Up to 3 pictures whose look — palette, lighting, rendering style — the result should follow. The result doesn’t have to contain anything from them.
curl -X POST "https://api.zetta3d.ai/api/2d/generate" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A weathered bronze statue of a fox, studio lighting",
"aspectRatio": "4:5",
"resolution": "2K",
"model": "pro"
}'A picture to turn into a 3D model:
curl -X POST "https://api.zetta3d.ai/api/2d/generate" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A low-poly wooden treasure chest with iron bands",
"for3D": true
}'A whole scene, made for 3D:
curl -X POST "https://api.zetta3d.ai/api/2d/generate" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A misty pine forest clearing at dawn with a stone well",
"for3D": true,
"subject": "environment",
"aspectRatio": "16:9",
"resolution": "2K"
}'With style references:
curl -X POST "https://api.zetta3d.ai/api/2d/generate" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A sci-fi cargo drone hovering over a desert",
"styleReferences": [
{
"data": "<base64>",
"contentType": "image/jpeg"
}
]
}'Edit a picture
/2d/img-edit· 20 a minuteChange one picture with an instruction. Send the picture itself, or the id of one in your library. Takes every option above, plus:
Body
imageimage objectThe picture to edit. Send this orsourcePostId, not both.sourcePostIdintegerA picture in your Image Studio library (itspostIdorid).textureMapbooleanMake a PBR texture map (roughness, metalness, normal…) from a base-colour texture. Send withfast: trueso the map keeps the source’s own size and shape.
curl -X POST "https://api.zetta3d.ai/api/2d/img-edit" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Make the jacket dark green leather, keep everything else",
"image": {
"data": "<base64>",
"contentType": "image/png"
}
}'A library picture, made ready for 3D:
curl -X POST "https://api.zetta3d.ai/api/2d/img-edit" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Remove the person, keep only the bicycle",
"sourcePostId": 1234,
"for3D": true
}'A texture map:
curl -X POST "https://api.zetta3d.ai/api/2d/img-edit" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The roughness map for this base-colour texture: greyscale, white = rough",
"image": {
"data": "<base64 of the texture>"
},
"textureMap": true,
"fast": true
}'Combine pictures
/2d/img-compose· 10 a minuteBuild one picture from 2 to 14 others — put a character into a scene, a product into a room. Library pictures come first, in the order given, then the ones you send; the prompt can refer to them as “the first image”, “the second”, and so on. Takes every option above, plus:
Body
imagesimage object[]Up to 14 pictures sent with the request.sourcePostIdsinteger[]Up to 14 pictures from your library.
Together they must make 2 to 14 pictures; for one, use edit.
curl -X POST "https://api.zetta3d.ai/api/2d/img-compose" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Put the character from the first image into the room from the second, holding the lamp from the third",
"sourcePostIds": [
1234
],
"images": [
{
"data": "<base64 room>",
"contentType": "image/jpeg"
},
{
"data": "<base64 lamp>"
}
],
"aspectRatio": "16:9",
"resolution": "2K"
}'Your picture library
List your pictures
/2dNewest first, including failed requests (with no picture and an errorMessage).
Query
pageintegerFrom 1. Default 1.pageSizeinteger1 to 100. Default 18.featurestringgenImg,editImgorcomposeImg.searchstringWords in the prompt, up to 200 characters.
{
"items": [{
"id": 1234, "feature": "genImg", "prompt": "A weathered bronze statue of a fox…",
"aspectRatio": "4:5", "resolution": "2K",
"images": [{ "url": "https://api.zetta3d.ai/api/files?key=…&ticket=…", "contentType": "image/png", "bytes": 1482304 }],
"errorMessage": null, "createdAt": "2026-11-25T10:12:33.123Z"
}],
"total": 87, "page": 1, "pageSize": 18
}Picture links last about 15 minutes; list again for fresh ones.
Delete a picture
/2d/:idRemoves it from your library. Answers 204 with no body.
Image errors
- 403 PLAN_REQUIREDPictures need a paid plan.
- 403 IMAGE_EDITING_REQUIRES_PLANEditing, combining and texture maps need a plan that includes them.
- 403 IMAGE_4K_REQUIRES_PLAN4K needs a plan that includes it.
- 403 IMAGE_PRO_MODEL_REQUIRES_PLANPro needs a plan that includes it.
- 400 IMAGE_GEN_NO_IMAGEThe model answered with text and no picture — usually a refusal. The message is its answer.
- 400 IMAGE_GEN_REJECTEDThe request was refused. Rephrase the prompt.
- 502 IMAGE_GEN_TIMEOUTTook too long. Try a simpler prompt or a smaller size.
- 502 / 503IMAGE_GEN_FAILED, IMAGE_GEN_UNREACHABLE, IMAGE_GEN_QUOTA — try again in a few minutes.
- A library id that isn’t yours, or a deleted picture, answers
404 That image was not found.
Tools
Remove a background
/tools/rembg· 20 a minuteCut the subject out of a picture. Useful before turning a photo into a 3D model. Free, and nothing is stored.
Body
imagestringrequiredA PNG, JPEG or WebP as base64, without adata:prefix. Up to 8 MB.
curl -X POST "https://api.zetta3d.ai/api/tools/rembg" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "<base64>"
}'{ "image": "<base64 PNG with transparency>", "contentType": "image/png", "bytes": 523188 }Check a model can be rigged
/ai/rigging-precheckBefore auto-rigging, ask what kind of body a model has and how sure the answer is. It advises only; you decide whether to rig. Free.
Body
framesobject[]required1 to 4 pictures of the model, each{ "data": "<base64>", "mediaType": "image/png" }withmediaTypeone ofimage/png,image/jpeg,image/webp, up to about 3 MB each. Renders from the front, back and sides at about 768 px work best.
{ "bodyType": "biped", "confidence": "high", "reason": "A single humanoid figure in an A-pose with both arms clear of the body." }bodyType: biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, others, or unknown. confidence: high, medium or low.
3D Pipelines
A pipeline is a recipe of steps — remove the background, generate, retopologize, texture, rig — that you build once in the 3D Studio. Through the API you run it: on one input, or on up to 20 at a time, and follow every step. Pipelines can’t be created or changed through the API.
Run modes
- autoEvery step runs as soon as its input is ready. Starting checks your credits cover the estimate.
- manualEach step waits for you to run it (the steps right after the input start at once). No credit check up front.
Run statuses
- draftMade but not started. Start it with POST /pipeline-runs/:runId/start.
- runningSteps are moving.
- awaitingNothing is moving and a step needs you — to run it, or to choose parts.
- pausedYou paused it. Jobs already running still finish.
- doneEvery step finished.
- failedA step failed. Retry it to carry on.
- cancelledYou cancelled it. Final.
Step statuses
- waitingManual mode: ready to run when you say.
- readyAbout to start.
- runningBeing worked on.
- submittedIts 3D job is queued; gen3dPostId is the job.
- reviewIsolate parts: choose which parts to keep.
- successDone. output says what it made.
- failederrorMessage says why. Retry it.
- cancelledStopped by a cancel.
Each 3D step is charged when it starts, at the same price as in the Studio, and refunded if it fails. Everything a run makes lands in your libraries.
Your pipelines
List your pipelines
/pipelines[{ "id": 12, "title": "Product photo → textured GLB", "steps": 5, "createdAt": "…", "updatedAt": "…",
"lastRun": { "id": 301, "status": "done", "createdAt": "…" }, "runCounts": { "done": 14, "awaiting": 1 } }]Get a pipeline
/pipelines/:idIts steps as a graph of nodes and edges, and any problems that would stop it running. Each node has an id (used to set a step for one run) and a kind.
Estimate a pipeline’s cost
/pipelines/estimateBody
graphobjectrequiredThegraphfromGET /pipelines/:id.
{ "credits": 180, "lines": [{ "nodeId": "gen1", "credits": 60, "count": 1 }], "perPart": false, "problems": [] }perPart: true means the pipeline splits a model into parts, and the total is the most a run can cost.
Running
Run on new inputs
/pipelines/:id/batch· 5 a minuteOne run per input, each with its own input. The usual way to run a pipeline through the API.
Body
modestringrequiredautoormanual.seedsobject[]required1 to 20 inputs, each in the shape the pipeline’s first step takes (below).draftbooleanMake the runs without starting them, so each can be adjusted first. AI texturing steps then need their description set per run before they start.
Inputs
- Picture (uploaded)
{ "uploadKey": "<key>", "name": "chair.png" }— thekeyfromPOST /3d/uploads.nameis optional and names what the run makes. - Picture (library)
{ "gen2dPostId": 1234 }— a picture in your Image Studio library. - Model
{ "gen3dPostId": 5678 }— a finished model in your 3D library. - Views
{ "views": [{ "viewType": "front", "uploadKey": "<key>" }, { "viewType": "back", "gen2dPostId": 1240 }] }—frontrequired;back,left,rightoptional.
curl -X POST "https://api.zetta3d.ai/api/pipelines/12/batch" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "auto",
"seeds": [
{
"uploadKey": "inputImg/42/2b6c….jpg",
"name": "chair.jpg"
},
{
"gen2dPostId": 1234
}
]
}'{ "runs": [{ "id": 401, "mode": "auto", "status": "running", "estimatedCredits": 120, "createdAt": "…", "finishedAt": null }] }400 INSUFFICIENT_CREDITS.Run on the saved input
/pipelines/:id/runs· 10 a minuteOne run on the input saved in the pipeline itself.
Body
modestringrequiredautoormanual.
Answers 400 PIPELINE_NOT_RUNNABLE with a problems list if a step isn’t set up, and the full run otherwise.
List a pipeline’s runs
/pipelines/:id/runsThe newest 50, each with progress (done, total, waiting, failed).
Follow a run
/pipeline-runs/:runIdThe run and every step: status, credits, errorMessage, and output — a picture, views, a model (gen3dPostId), or parts. A step with a 3D job carries the job as generation, in the same shape as GET /3d/generations/:id. Check every few seconds while the status is running, paused or awaiting.
Controlling a run
Each answers with the full run.
- POST /pipeline-runs/:runId/startStart a draft. 400 RUN_NEEDS_INPUT lists what is missing.
- POST /pipeline-runs/:runId/pauseNo new step starts. Jobs already running finish.
- POST /pipeline-runs/:runId/resumeCarry on after a pause.
- POST /pipeline-runs/:runId/cancelStop. Queued 3D jobs are cancelled and refunded; running ones finish into your library.
- POST /pipeline-runs/:runId/modeBody { "mode": "auto" | "manual" }. Switching to auto runs every waiting step.
- POST /pipeline-runs/:runId/run-waitingManual mode: run every waiting step.
- POST /pipeline-runs/:runId/steps/:stepId/runManual mode: run one waiting step.
- POST /pipeline-runs/:runId/steps/:stepId/retryRetry a failed step. Optional body { "request": {…} } to change it for this run.
- POST /pipeline-runs/:runId/steps/:stepId/partsIsolate parts: body { "keys": ["sword"], "extraParts": ["belt"] } — up to 16.
- DELETE /pipeline-runs/:runIdDelete a finished, failed, cancelled or draft run. Its models stay in your library.
Change a step for one run
/pipeline-runs/:runId/nodes/:nodeIdSet a step’s settings for this run only, before it runs — the usual case is giving each draft run its own AI texturing description. The pipeline itself doesn’t change.
Body
requestobjectThe step’s whole request. It replaces the current one, so copy it from the run’sgraph.nodes, change what you need, and send it all back.
curl -X PATCH "https://api.zetta3d.ai/api/pipeline-runs/401/nodes/tex1" \
-H "Authorization: Bearer $ZETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": {
"spec": {
"postProcess": [
"retexture"
]
},
"enablePBR": true,
"prompt": "Worn oak with brass fittings"
}
}'Account
Your account and balances
/auth/me{
"user": {
"id": 42, "email": "…", "paymentPlan": "basic", "subscriptionStatus": "active",
"credits": {
"threeD": { "monthly": 1240, "purchased": 0, "bonusMonthly": 0, "bonus": 70 },
"ai": { "monthly": 1800000, "purchased": 0, "bonusMonthly": 0, "bonus": 0 }
},
"createdAt": "…"
}
}Your spendable 3D credits are the four threeD numbers added together; your AI tokens, the four ai numbers.
Your plan
/billing/subscription{ "plan": "basic", "status": "active", "cancelAtPeriodEnd": false, "currentPeriodEnd": "2026-12-15T…", "aiAddOn": null }Your usage history
/billing/usageEvery charge and refund, newest first.
Query
meterstringthree_d_creditorai_token. Left out: both.limitinteger1 to 100. Default 25.beforeintegerThenextCursorof the previous page.
{
"entries": [{ "id": 88123, "meter": "three_d_credit", "entryType": "debit", "operationType": "textured",
"amount": 60, "subjectType": "gen3d_post", "subjectId": 5680, "reason": null,
"createdAt": "…", "origin": "api" }],
"nextCursor": 88123
}entryType is debit or refund; subjectId is the 3D model it was for; nextCursor is null on the last page.
This period’s spending by feature
/billing/usage/breakdownQuery
meterstringthree_d_creditorai_token(default).
{ "meter": "three_d_credit", "since": "2026-11-15T…", "total": 840,
"byOperation": [{ "operationType": "textured", "amount": 600, "count": 10 }], "byTier": [], "truncated": false }