Complete /v1 REST reference — endpoints, render settings, credit rates, errors
All requests require a Bearer token in the Authorization header:
Authorization: Bearer dxgl_sk_...
Tokens are created in Studio: open the avatar menu (top-right) → API → Keys → Create key. The raw token is shown once on creation — store it securely.
Older keys keep working, whatever their prefix.
Server-to-server only. A dxgl_sk_ token is a full-account secret — never embed one in a web page or mobile app. The API grants no CORS access to browsers; call it from your backend. For public browser embeds, use the public share URLs of published renders instead.
dxgl_sk_... in every example on this page is a placeholder. Never publish a real key in source code, documentation, or MCP configuration examples — substitute your own key at call time from a secret store.
A key can be bound to a team workspace at creation (the workspace picker in the Create-key form; requires the editor role or above in that workspace). The binding is fixed for the key's lifetime — the key is the workspace selection, so nothing else in your integration changes: every endpoint documented here simply operates on the bound workspace.
GET /v1/account shows that pool and names the workspace); GET /v1/purchases returns only ledger rows attributable to this workspace.403 forbidden.A key created without a workspace (or before workspace keys existed) operates on your personal workspace, exactly as before.
A tool that cannot show a web view (a desktop app, a script) obtains a key without the user pasting one. The tool asks for a code pair, opens the verify URL in the browser, and polls; the user, signed in to Studio, picks a workspace and allows it. The result is an ordinary key (read + render, bound to that workspace) named after the host and machine, listed and revocable under Studio › API › Keys. Both routes are unauthenticated and rate-limited per address.
{ "data": { "deviceCode": "mKLYwm…", "userCode": "GC5T-W2ZH", "verifyUrl": "https://dx.gl/app/?device=GC5T-W2ZH", "interval": 5, "expiresIn": 600 } }
host is one of blender, clo, md (Marvelous Designer), rhino, maya, max, houdini, c4d, sketchup, cli, plugin. Open verifyUrl for the user (it carries the code; the page also shows it so the user can confirm it matches). Then poll every interval seconds:
| Status | code |
Meaning |
|---|---|---|
428 |
authorization_pending |
not decided yet, poll again |
429 |
slow_down |
polled faster than interval |
403 |
denied |
the user denied it |
410 |
expired / consumed |
the code ran out (10 min) or was already exchanged |
200 |
{ "token": "dxgl_sk_…", "tokenId", "scopes", "workspace": { "id", "name" } } — once; store the token |
The token is handed over exactly once and is never retrievable again. Treat a 401 on any later call as "sign in again".
Success:
{
"data": { ... }
}
List (paginated):
{
"data": [ ... ],
"meta": { "total": 142, "offset": 0, "limit": 50 }
}
Cursor pagination (recommended for large catalogs). GET /v1/models and GET /v1/renders also support keyset pagination: pass cursor= (empty for the first page, or the previous response's meta.nextCursor), and the response's meta becomes { "limit": 50, "nextCursor": "..." | null } — walk until nextCursor is null. Cursor mode skips the per-page COUNT(*) and stays fast at any depth, unlike large offset values. Cursors are opaque; don't parse them. Both endpoints also accept updatedSince=<ISO 8601> (rows modified at/after that instant) for cheap delta polling — combine it with cursor mode to sync a big catalog incrementally.
Error:
{
"error": {
"code": "model_not_found",
"message": "Model not found",
"status": 404
}
}
IDs. All resource IDs are short opaque strings (e.g. Ab3kF9x2qL1m). A note
on naming: when an endpoint returns a resource it just created, the field is
named id (e.g. POST /v1/renders → { "id": ... }); when an endpoint returns
a related resource alongside a primary one, the related ID carries a qualified
name — uploading a model returns { "modelId": ..., "renderId": ... }, and a
render always refers to its model as modelId. So the render you create is id
on POST /v1/renders but renderId on POST /v1/models.
A model is an uploaded 3D file (GLB) or a converted 3D scan. Uploading a model always creates a render job: with renderSettings it's the billed render you specified; without, it's a free system preview — a poster image, no video (see below).
| Field | Type | Required | Description |
|---|---|---|---|
file |
File | Yes | .glb (glTF binary container), or a source format the server converts for you: .fbx, .obj, .stl, .usdz, or a .zip bundling one model with its MTL / textures (OBJ+MTL+JPG, FBX+textures, glTF+bin+images). Source formats are server-gated per deployment; a disabled one answers 400 invalid_format listing what is accepted. A raw .gltf JSON file on its own is rejected — pack it into a .glb, or zip it with its .bin and images. GLB max 1 GB; source files max 500 MB. |
renderSettings |
JSON string | No | Render configuration (see below). Omitting it makes the upload's render a free system preview (poster only); providing it creates a billed render at the settings given. |
Response 201:
{
"data": {
"modelId": "Ab3kF9x2qL1m",
"renderId": "Xz7pQ4w8nR2k"
}
}
If the file's SHA-256 matches an existing upload, the existing model is reused and the response is 200 with duplicate: true (a fresh upload returns 201). With renderSettings, a new billed render is created for the existing model; without, its existing system preview is returned. For source formats the hash is taken over the original bytes (for a ZIP, over its member files, so the same set zipped twice dedupes).
Response 202 for a source format (FBX / OBJ / STL / USDZ / ZIP): the original is stored and converted to GLB asynchronously.
{
"data": {
"modelId": "Ab3kF9x2qL1m",
"renderId": null,
"status": "converting"
}
}
Poll GET /v1/models/:id until ingestStatus is done (typically seconds; large scans take longer), then create renders. failed carries the reason in ingestError and the model has no GLB; POST /v1/models/:id/reconvert retries from the stored original. With renderSettings given, the render is queued automatically when conversion finishes (its id appears under the model's renders). Creating a render for a model that is still converting answers 409 model_converting; for a failed one, 422 conversion_failed. Converter warnings (textures it could not find, partial USD) come back in ingestWarnings; the model is usable, the original is GET /v1/models/:id/source.
Free system preview: An upload without renderSettings creates a free system preview render (no credits deducted) — a single-frame 540p poster of the model (GET /renders/{id}/poster; there is no video, so /video answers 404) that doubles as a model integrity check: if the preview fails, the model likely has issues (broken geometry, missing textures, invalid glTF). The preview is the renderId in the response and carries isSystemPreview: true in render list/detail responses. System previews created before 2026-10-13 also carry a 6 s turntable video.
3D scan support: Upload a .zip containing one OBJ file with its MTL and texture files (JPG/PNG), or an FBX with its textures. One model per ZIP; nested folders are flattened. The server converts to GLB with the same loaders the Studio app uses, so what you see in the browser is what renders. The converted GLB is stored as your model (GET /v1/models/:id/file), the original stays available (GET /v1/models/:id/source). Ideal for photogrammetry and structured-light scan exports (Artec Studio, RealityCapture, Metashape, etc.).
curl -X POST https://api.dx.gl/v1/models/ingest \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/model.glb", "renderSettings": {"aspect": "16:9"}}'
Response 201: Same as upload (duplicates return 200 with duplicate: true; a source format answers 202 with status: "converting", see Upload Model).
Downloads the file from the URL (GLB max 1 GB; source formats max 500 MB). The file name decides the format: .glb, or .fbx / .obj / .stl / .usdz / .zip where server-side conversion is enabled for that format. The name is the one the server sends in Content-Disposition when it has one of those extensions, else the URL's.
Share links. A Dropbox file link (dl=0) or a Google Drive file link (/file/d/…/view, open?id=…) is fetched as its direct download; a large Drive file's virus-scan confirmation is passed. The file must be shared as "anyone with the link". A URL that answers a web page instead of a file (a folder, a sign-in page, a Google Docs page) is refused with invalid_content_type (400).
Pull from your own S3/R2 bucket. Point url at a presigned GET URL from your bucket — no credentials leave your side. Presigned URLs sign the HTTP method, so DX.GL skips the availability HEAD probe for them and streams the object directly (the 1 GB cap still applies mid-download, and the file is GLB-validated on arrival). A common S3 default content-type (binary/octet-stream) is accepted. Example:
# 1. presign in your own infra (7-day max)
aws s3 presign s3://your-bucket/models/chair.glb --expires-in 3600
# 2. hand the URL to DX.GL
curl -X POST https://api.dx.gl/v1/models/ingest \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://your-bucket.s3.amazonaws.com/models/chair.glb?X-Amz-Signature=..."}'
Combined with GET /v1/renders/:id/download-url (presigned egress), this gives a bucket-to-bucket workflow where DX.GL never holds your storage credentials. The download aborts after 45 seconds without progress, with a 10-minute absolute ceiling — a timed-out download returns download_timeout (400). SHA-256 deduplication applies.
Gaussian splats (.spz, splat .ply, .splat, .ksplat) are not accepted here yet. Open them in Studio: the file is stored as uploaded, drawn by a splat renderer in the preview and on the fleet, and renders as video or stills (no Traced stills, no datasets). A splat file sent to POST /v1/models or to the URL import is refused like any other non-GLB file.
For large models, flaky links, or bucket-to-bucket pipelines, skip the multipart POST and upload straight to storage:
create-upload-url mints a presigned PUT to a staging area (default 1 h, expires 60–604800 s). After the PUT succeeds, finalize registers the model — it runs the exact same pipeline as the multipart upload (GLB validation, SHA-256 dedup with duplicate: true reuse, free poster-only system preview or billed render per renderSettings) and responds identically ({ modelId, renderId }). Staged uploads are GLB-only (max 1 GB — oversized staged objects are deleted at finalize). A ticket whose URL expired before the PUT, or whose PUT never happened, finalizes to 404 not_found. Abandoned staging objects are garbage-collected; don't rely on staging as storage.
url_resp=$(curl -s -X POST https://api.dx.gl/v1/models/create-upload-url -H "Authorization: Bearer dxgl_sk_...")
curl -T chair.glb "$(echo "$url_resp" | jq -r .data.url)"
curl -s -X POST https://api.dx.gl/v1/models/finalize \
-H "Authorization: Bearer dxgl_sk_..." -H "Content-Type: application/json" \
-d "{\"ticket\": \"$(echo "$url_resp" | jq -r .data.ticket)\", \"filename\": \"chair.glb\"}"
| Param | Type | Default | Description |
|---|---|---|---|
limit |
integer | 50 | Max 100 |
offset |
integer | 0 | Pagination offset (offset mode) |
cursor |
string | — | Keyset pagination: empty for page 1, then meta.nextCursor (see Response Format) |
updatedSince |
string | — | ISO 8601 — only rows modified at/after this instant |
tags |
string | — | Comma-separated tags (OR filter) |
group |
string | — | Group ID — the group's whole subtree (see Groups); none lists unfiled models |
status |
string | active |
active, archived, or any (active + archived; each row carries its status). Deleted models are never listed. |
q |
string | — | Search: models whose title, original file name or SKU contains this text (case-insensitive; % and _ match themselves). 2 to 100 characters, else 400 bad_request. Composes with the other filters and both pagination modes. |
Newest first; models created at the same instant are ordered by id, so paging never repeats or skips one.
curl "https://api.dx.gl/v1/models?limit=10&tags=furniture" \
-H "Authorization: Bearer dxgl_sk_..."
curl "https://api.dx.gl/v1/models?q=hoodie&cursor=" \
-H "Authorization: Bearer dxgl_sk_..."
Response 200:
{
"data": [
{
"id": "Ab3kF9x2qL1m",
"originalName": "chair.glb",
"title": "Ergonomic Chair",
"sku": "EC-1001",
"tags": ["furniture", "office"],
"group": { "id": "Gr0upAb3kF9x", "name": "Chairs" },
"fileSize": 4521984,
"sha256": "a1b2c3...",
"animationCount": 0,
"createdAt": "2026-02-15T20:00:00.000Z"
}
],
"meta": { "total": 42, "offset": 0, "limit": 50 }
}
Returns the model detail with all its renders:
curl https://api.dx.gl/v1/models/Ab3kF9x2qL1m \
-H "Authorization: Bearer dxgl_sk_..."
{
"data": {
"id": "Ab3kF9x2qL1m",
"originalName": "chair.glb",
"title": "Ergonomic Chair",
"sku": "EC-1001",
"tags": ["furniture", "office"],
"fileSize": 4521984,
"sha256": "a1b2c3...",
"animations": [
{ "name": "Walk", "duration": 1.933, "channels": 57 }
],
"meshNames": ["Body", "Cap", "Cap_1"],
"materialNames": ["woven", "rib"],
"edits": { "hideNames": ["Cap_1"], "materialEdits": { "rib": { "roughness": 0.4 } }, "meshOffsets": { "Cap": [0, 0.002, 0] } },
"editedAt": "2026-10-28T09:12:00.000Z",
"ingestStatus": null,
"previewStatus": "done",
"ingestError": null,
"sourceFormat": null,
"ingestWarnings": [],
"hasSource": false,
"currentVersion": { "id": "Vq2mN8xT4bLp", "number": 3, "createdAt": "2026-10-27T08:20:00.000Z", "note": "bottom-color.png replaced", "source": "manifest" },
"versionCount": 3,
"versionStatus": "done",
"createdAt": "2026-02-15T20:00:00.000Z",
"renders": [
{
"id": "Xz7pQ4w8nR2k",
"status": "done",
"renderSettings": { ... },
"createdAt": "2026-02-15T20:00:01.000Z",
"updatedAt": "2026-02-15T20:01:30.000Z"
}
]
}
}
previewStatus is the state of the optimized preview a real-time viewer loads (see Preview for a Real-Time Viewer): pending → processing → done, or failed, or skipped when the upload was already compressed and is served as uploaded; null on models that predate the preview pipeline. List Models carries it too.
ingestStatus is null for GLB uploads and pending → processing → done (or failed, with ingestError) for server-converted source formats (sourceFormat: fbx / obj / stl / usd / gltf). ingestWarnings lists what the converter had to leave out (e.g. "texture: wood.jpg" for a texture the file referenced but the upload did not include). hasSource says the original is available at /source. fileSize, sha256 and the inventory fields describe the GLB and are filled in once conversion is done.
edits is the model's saved Studio edits (null when none): hideNames (hidden meshes), materialEdits keyed by material name, meshOffsets (per-mesh nudges, raw units), rotation, decals, clipBox. They are keyed by the glTF node / mesh / material names, so they survive a new version whose names are unchanged; a plugin can compare the names it is about to export against these keys and warn before a rename orphans an edit (the editsMatch field on each version reports it after the fact). editedAt is when they were last saved.
currentVersion, versionCount and versionStatus describe the model's versions: currentVersion is null on a model the version system has not touched; versionStatus is pending / processing while a version is being built or restored.
| Field | Type | Description |
|---|---|---|
title |
string | Display title |
sku |
string | Product code |
tags |
string[] | Up to 20 tags (lowercased, trimmed) |
groupId |
string | null | The model's one group (home) — see Groups; null or "" unfiles. Manager+ role (403 forbidden otherwise) |
All fields are optional — only fields present in the body are changed (an omitted field is never touched; passing null or "" explicitly clears title/sku/groupId). A body with none of the four fields returns 400 bad_request.
curl -X PATCH https://api.dx.gl/v1/models/Ab3kF9x2qL1m \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"title": "Ergonomic Chair Pro", "sku": "ECP-2001", "tags": ["furniture", "office"]}'
Archives the model. Archived models are hidden from the default list; enumerate them with GET /v1/models?status=archived (or status=any). Detail, metadata edits, file download, and delete keep working on archived models.
curl -X PATCH https://api.dx.gl/v1/models/Ab3kF9x2qL1m/archive \
-H "Authorization: Bearer dxgl_sk_..."
Restores an archived model back to active status.
Downloads the stored GLB. Returns Content-Type: model/gltf-binary with a Content-Disposition: attachment header; the filename is the original name with a .glb extension. A model still converting answers 409 model_converting; one whose conversion failed, 422 conversion_failed.
curl -o chair.glb https://api.dx.gl/v1/models/Ab3kF9x2qL1m/file \
-H "Authorization: Bearer dxgl_sk_..."
Downloads the file exactly as uploaded for a server-converted model: the FBX / STL / USDZ, or the ZIP bundle (OBJ+MTL+textures). 404 no_source for models uploaded as GLB.
curl -OJ https://api.dx.gl/v1/models/Ab3kF9x2qL1m/source \
-H "Authorization: Bearer dxgl_sk_..."
For showing a model in your own WebGL viewer. Returns a presigned URL for the file Studio itself draws: the model as one GLB with meshopt-compressed, quantized geometry and KTX2 textures, built once when the model is uploaded. Renders never use it; they are made from the model's own file.
This is an advanced use case: you bring the viewer and its decoders. The encoding of the preview may change as the pipeline improves, so read extensionsRequired in the file instead of assuming a fixed set.
{
"data": {
"status": "ready",
"kind": "glb",
"url": "https://…/preview.glb.gz?X-Amz-…",
"bytes": 1602180,
"contentEncoding": "gzip",
"cacheKey": "7c50f66c07d80315260e5d8c0f5d6874",
"expiresIn": 3653,
"version": { "id": "Vz81kQp2mLx4", "number": 3 }
}
}
| Field | Description |
|---|---|
status |
ready: url is set. pending / processing: the preview (or the conversion of a source format before it) is still running; ask again in a few seconds. failed: it could not be built; the model's own file is still there through file-url. When not ready, kind and url are null and the fields below are absent |
kind |
glb: the optimized preview, one GLB. parts: the same preview as separate files (see below). master: the model as uploaded, because it was already compressed (Draco or meshopt) and no preview is built for such a file |
url |
Presigned, direct-from-bucket URL. No Authorization header, readable from any origin; anyone holding it can read the file until it expires |
bytes |
Stored size, which is the transfer size |
contentEncoding |
gzip when the stored file is gzipped. The response says Content-Encoding: gzip, so a browser, fetch in Node and curl --compressed hand you the GLB; a client that ignores the header must gunzip |
cacheKey |
Identity of the bytes. Changes when the preview is rebuilt (a new version, a reconvert), not when the URL is re-signed |
expiresIn |
Seconds the URL stays valid from now. Ask with ?expires= (default 3600, 60–604800); you get at least that much, short of the 7-day ceiling |
version |
The model's current version ({ id, number }), or null |
The route answers 200 for any model that exists, so it can be polled after an upload. A Gaussian splat has no mesh preview: 422 no_preview.
Keep the key on your server. Call this route from your backend and hand the url to the page. Cache the answer there for up to expiresIn instead of calling per visitor (the rate limit is per account).
Loading it in three.js. The preview needs the meshopt decoder and a KTX2 transcoder; both ship with three.js.
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'
import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js'
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js'
// Serve three's examples/jsm/libs/basis/ folder (the transcoder) from your site.
const ktx2 = new KTX2Loader().setTranscoderPath('/basis/').detectSupport(renderer)
const loader = new GLTFLoader().setMeshoptDecoder(MeshoptDecoder).setKTX2Loader(ktx2)
const gltf = await loader.loadAsync(preview.url) // the browser un-gzips
scene.add(gltf.scene)
For kind: "master" the file is whatever was uploaded; if its extensionsRequired lists KHR_draco_mesh_compression, add a DRACOLoader as well.
What is in the file.
extensionsRequired: EXT_meshopt_compression, KHR_mesh_quantization (16-bit positions) and, when the model has textures, KHR_texture_basisu. A viewer without a KTX2 transcoder cannot show the textures.EXT_mesh_gpu_instancing (three.js draws it as is). Each instanced node carries extras.dxgl_instanced { mesh, count, prefix, parent }, and the individual node names it replaced are gone from the preview.Caching. The URL changes each time it is signed, the bytes do not. Repeat calls inside a signing window (up to 30 minutes) return a byte-identical URL, which is what lets a browser's HTTP cache reuse the download. For a cache of your own, key on the model id and cacheKey, never on the URL.
curl "https://api.dx.gl/v1/models/Ab3kF9x2qL1m/preview" \
-H "Authorization: Bearer dxgl_sk_..."
Some models have their preview stored as separate files as well: the glTF JSON, one file per geometry buffer and one per texture, each named by its content hash. A viewer fetches them in parallel, and a part that did not change between two versions of a model is the same file, so a cache keyed by hash downloads only what changed.
Ask with kind=parts and read kind in the answer. A model has parts when it has versions and its workspace stores them; any other model, and a model with more than 2,000 parts, answers with the GLB exactly as above.
{
"data": {
"status": "ready",
"kind": "parts",
"url": null,
"gltf": {
"asset": { "version": "2.0" },
"extensionsRequired": ["EXT_meshopt_compression", "KHR_mesh_quantization", "KHR_texture_basisu"],
"buffers": [
{ "byteLength": 228024, "uri": "https://…/394fb7fb…?X-Amz-…", "extras": { "sha256": "394fb7fb…", "byteLength": 228024 } },
{ "byteLength": 438824, "extensions": { "EXT_meshopt_compression": { "fallback": true } } }
],
"images": [
{ "mimeType": "image/ktx2", "uri": "https://…/0355c0d5…?X-Amz-…", "extras": { "sha256": "0355c0d5…", "byteLength": 574861 } }
]
},
"parts": 3,
"bytes": 1361047,
"contentEncoding": null,
"cacheKey": "2c1fc5807ea7…",
"expiresIn": 5244,
"version": { "id": "VcQTBMKGMGTL", "number": 2 }
}
}
| Field | Description |
|---|---|
gltf |
The complete glTF 2.0 JSON of the preview (shortened above), with every buffers[].uri and images[].uri replaced by a presigned URL. A buffer without a uri is the meshopt fallback buffer; it has no file |
gltf.…extras.sha256 |
The content hash of that file: its stable name. extras.byteLength is its size |
parts |
Number of distinct files gltf points at |
bytes |
Size of all parts plus the JSON |
cacheKey |
Identity of the whole preview (the hash of its JSON) |
In three.js, with the loader set up as above:
const gltf = await loader.parseAsync(JSON.stringify(preview.gltf), '')
scene.add(gltf.scene)
The loader then fetches every part itself. The part URLs are signed like the others: no header, any origin, identical across calls inside a signing window. To keep parts across visits and versions, cache each one under its extras.sha256, never under its URL, and fall back to the GLB (kind=glb) if a part fails to load.
The model's saved Studio edits in a form you can use outside Studio. Get Model already returns edits, but a sticker in it names its image by imageAssetId and a material's replacement texture by mapAssetId, and those ids are not files. The sidecar is the same edits with two lists beside them that give every referenced asset a URL.
{
"data": {
"v": 1,
"translate": { "translateX": 0, "translateY": 0.1, "translateZ": 0 },
"materialEdits": { "zip": { "printable": false }, "rib": { "roughness": 0.8, "mapAssetId": "vy7EjP4ZiZla" } },
"decals": [ { "id": "d1", "imageAssetId": "QlQS8pFCqJ7B", "position": [0, 0.4, 0.3], "normal": [0, 0, 1], "euler": [0, 0, 0], "size": 0.5, "imageAspect": 1.5 } ],
"images": [ { "id": "QlQS8pFCqJ7B", "url": "https://…/image.webp?X-Amz-…", "name": "Logo", "width": 300, "height": 200, "aspect": 1.5 } ],
"maps": [ { "id": "vy7EjP4ZiZla", "url": "https://…/map.webp?X-Amz-…", "name": "Weave" } ],
"model": { "id": "Ab3kF9x2qL1m", "originalName": "hoodie.glb", "editedAt": "2026-11-14T14:18:17.712Z", "version": { "id": "Vz81kQp2mLx4", "number": 3 }, "editsMatch": { "matched": 4, "orphaned": [] } },
"expiresIn": 4302
}
}
| Field | Description |
|---|---|
v |
Format version, 1 |
| the edit keys | Whatever was saved, exactly as in edits on Get Model: hideNames, meshOffsets, rotation, scale, translate, materialEdits, decals, clipBox. A model with no saved edits has none of them, and the route still answers 200 |
images |
One entry per distinct decals[].imageAssetId. The file is the WebP the renderer itself draws (at most 960 px on its long side) when one exists, otherwise the image as uploaded |
maps |
One entry per distinct materialEdits.<name>.mapAssetId |
images[].url, maps[].url |
Presigned, direct-from-bucket, readable from any origin. null when the id no longer resolves (the asset was deleted, or it is another workspace's and not published): the entry stays, so you can tell a sticker has lost its image |
model |
Which model and version these edits belong to. editsMatch reports edits orphaned by a rename in the current version |
expiresIn |
Seconds the URLs stay valid. Ask with ?expires= (default 3600, 60–604800) |
translate and sticker positions are in Studio's normalized model frame (the visible model scaled so its largest extent is 2), so translateY: 0.1 lifts a garment whose largest side is 70 cm by 3.5 cm. Edits are keyed by material and mesh names and were made against the model stored here; they fit a copy of the same file served from anywhere else.
The images and maps lists have the shape of the registries the embeddable viewer's saved design uses, so a backend can pass the answer on unchanged.
Keeping a sidecar on your own host. The URLs expire (after 7 days at most), so a sidecar that will sit beside a model on a CDN has to carry its images with it. Download them once and point the sidecar at your copies:
GET /v1/models/:id/sidecar (a short ?expires= will do, since you download right away) and keep data without expiresIn.images and maps whose url is not null, download the file from url (no Authorization header) and save it in a folder beside the sidecar, named by the entry's id and the file's type (from its first bytes or its Content-Type): hoodie.assets/QlQS8pFCqJ7B.webp.url with the file's path relative to the sidecar: "url": "hoodie.assets/QlQS8pFCqJ7B.webp". An entry whose url was null stays so, and one whose download failed gets "url": null.hoodie.model.json. Nothing else in it changes.curl -s -H "Authorization: Bearer dxgl_sk_..." "https://api.dx.gl/v1/models/Ab3kF9x2qL1m/sidecar?expires=600" -o sidecar.json
jq -r '.data.images[], .data.maps[] | select(.url) | "\(.id) \(.url)"' sidecar.json # what to download
Answers the file itself, not JSON: the model's optimized preview as a GLB with its saved Studio edits inside. It is the preview and the sidecar in one download, with no second file and no URL that expires. Requires the read scope. This is an advanced use case, and the preview's encoding may change (read extensionsRequired, as for the preview).
curl -H "Authorization: Bearer dxgl_sk_..." -o hoodie.glb https://api.dx.gl/v1/models/Ab3kF9x2qL1m/export
extras.dxgl_edits (v: 1): the sidecar object, without expiresIn.images and maps has bufferView and mimeType in place of url. The bytes are in the file's own binary buffer, after everything the preview already had. An entry without a bufferView has lost its file.previewStatus: "skipped"), the uploaded file.Content-Length is sent.extras and would be dropped. Export again instead.| Status | Code | When |
|---|---|---|
404 |
model_not_found |
No such model in the token's workspace |
409 |
preview_not_ready |
The preview is still being built, or failed (previewStatus on the model says which) |
422 |
no_preview |
The model is a Gaussian splat |
The curl line above is the whole download: keep the answer as <name>.glb, with nothing in it to rewrite. To see what went in, read the file's JSON part (its length is the little-endian 32-bit number at byte 12, the JSON starts at byte 20) and look under extras.dxgl_edits: the edit keys, and in images and maps how many entries carry a bufferView.
Every mesh and material of the model's current version, read from its GLB when you ask. Get Model lists meshNames and materialNames too, but stops at 512 entries of each (collection and batch keys first), so a building with 6,520 meshes lists 512 there. This lists them all, with what each one is. Requires the read scope.
curl -H "Authorization: Bearer dxgl_sk_..." "https://api.dx.gl/v1/models/Ab3kF9x2qL1m/inventory?limit=2"
{
"data": {
"model": { "id": "Ab3kF9x2qL1m", "version": { "id": "Vq2mN8xT4bLp", "number": 3 }, "etag": "697ec0bd34becc26e0699e2881a49d90" },
"counts": { "meshes": 101, "materials": 26, "groups": 8, "triangles": 756516 },
"groups": [
{ "key": "node:Fabric", "name": "Fabric", "meshCount": 64 },
{ "key": "node:Zipper", "name": "Zipper", "meshCount": 9 }
],
"instanced": [],
"materials": [
{ "name": "Cotton_Jersey", "unique": true, "meshCount": 40, "triangles": 512310, "maps": ["baseColor", "normal", "normalOverlay"], "alphaMode": "OPAQUE", "doubleSided": true }
],
"meshes": [
{ "name": "Front_Left", "material": "Cotton_Jersey", "triangles": 18240, "group": "node:Fabric" },
{ "name": "Front_Right", "material": "Cotton_Jersey", "triangles": 18252, "group": "node:Fabric" }
],
"offset": 0,
"limit": 2,
"nextOffset": 2
}
}
meshes: one row per mesh as the renderer loads it, in load order; a mesh with several primitives is one row each. name is what hiddenMeshNames and meshOffsets match, material what materialEdits matches. Names can repeat (a mesh reused under unnamed nodes): a hide by name hides every row that has it.groups: top-level collections (a storey, Trees, a garment's Fabric / Zipper) whose key hides every mesh under them in one hiddenMeshNames entry. Listed from 64 meshes up, or at any size when the exporter marked its collections. A mesh row's group is that key.instanced: a mesh used 16 or more times in a model with 256 or more meshes and no animation. mesh:<name> hides every copy, mesh:<name>#<k> primitive k of every copy; count is the copies. Such a mesh's rows carry instancedKey.materials: every material in the file, in file order. unique: false means it has no name or shares it with another, so materialEdits can't address it alone. maps names the texture slots it fills (baseColor, metallicRoughness, normal, occlusion, emissive, an extension's by its own name such as clearcoatNormal or sheenColor, normalOverlay for a garment's seams).counts: totals over the whole model, every page. triangles counts every copy drawn.sections: a comma-separated subset of counts,groups,instanced,materials,meshes (default all); model always comes. ?sections=counts,materials answers without the mesh rows.meshes comes limit rows at a time (default and most 10,000) from offset; nextOffset is the next page's offset, null on the last. Send the first page's model.etag as etag with the next ones: if a new version landed in between, the answer is 409 model_changed and you start again from 0.etag, so a new version is in the next answer.| Status | Code | When |
|---|---|---|
400 |
bad_request |
An unknown section, or offset / limit out of range |
404 |
model_not_found |
No such model in the token's workspace |
409 |
model_converting |
The model is still being converted from its source format |
409 |
not_a_mesh |
The model is a Gaussian splat |
409 |
model_changed |
The etag you sent is not the current file's |
422 |
conversion_failed |
Conversion failed, so the model has no GLB |
422 |
inventory_too_large |
The model's glTF JSON is over 32 MB |
Re-runs the server-side conversion from the stored original — to retry after a failed conversion, or to pick up converter improvements. Nothing is re-uploaded. Answers 202 with status: "converting"; the model's ingestStatus cycles through pending → processing → done again, a fresh free poster-only system preview is rendered and the previous one is archived. Saved per-model edits key on mesh and material names, so they survive. 404 no_source for GLB uploads, 409 model_converting while a conversion is already running, 400 format_disabled if conversion for that format is switched off. Requires the render scope.
{ "sha256": "a1b2c3d4..." }
Response 200:
{
"data": {
"exists": true,
"modelId": "Ab3kF9x2qL1m"
}
}
Pre-flight check to avoid uploading duplicate files. Compute the SHA-256 of your file locally, then call this endpoint before uploading.
Soft-deletes the model. Existing renders remain accessible until independently deleted.
A model keeps its history. Every upload onto an existing model is a new version; the library, Studio and renders always use the current one, and any earlier version can be restored (a pointer move, nothing is copied). Storage is content-addressed: a version is a manifest of parts (the glTF JSON, one buffer per mesh and per animation, one part per image), each named by its SHA-256, so a version that changes one texture shares every other part with the one before and costs only that texture.
Versioned models are GLB models: a converted source (FBX / OBJ / STL / USDZ) gets versions once its GLB exists.
curl https://api.dx.gl/v1/models/Ab3kF9x2qL1m/versions \
-H "Authorization: Bearer dxgl_sk_..."
{
"data": {
"versions": [
{ "id": "Vq2mN8xT4bLp", "number": 3, "status": "ready", "source": "manifest", "note": "bottom-color.png replaced",
"createdAt": "2026-10-27T08:20:00.000Z", "createdBy": "Harri", "bytes": 16716741, "glbBytes": 16704512,
"editsMatch": { "matched": 2, "orphaned": [] }, "error": null, "isCurrent": true, "renderCount": 0 },
{ "id": "Vw9kL2pR6sHd", "number": 2, "status": "ready", "source": "upload", "note": "helmet-v2.glb", "...": "...", "isCurrent": false, "renderCount": 2 },
{ "id": "Vc4tB7nQ1zJe", "number": 1, "status": "ready", "source": "upload", "note": null, "...": "...", "isCurrent": false, "renderCount": 1 }
],
"currentVersionShortId": "Vq2mN8xT4bLp",
"pendingVersionShortId": null,
"versionStatus": "done"
}
}
Newest first. status is building while the worker materialises a version, ready once the model uses it, failed with error when it could not be built. bytes is the logical size (the sum of its parts); renderCount counts finished renders made from it. editsMatch says which saved Studio edits (keyed by material / mesh name) still bind to this version's names.
The simplest way to update a model: send the whole GLB. The server splits it into parts, stores only the parts the workspace does not have yet, puts the bytes in place and re-renders the preview.
curl -X POST https://api.dx.gl/v1/models/Ab3kF9x2qL1m/versions \
-H "Authorization: Bearer dxgl_sk_..." \
-F "[email protected]" \
-F "note=Export 2026-10-27"
{ "data": { "status": "building", "versionShortId": "Vw9kL2pR6sHd", "number": 2 } }
Poll GET /v1/models/:id until versionStatus is done (currentVersion.number then names the new one), or GET …/versions for the row. The same bytes as the current GLB answer { "status": "current" } without making a version. Manager role; 409 conflict while the model is converting, exporting, or building another version. Same size cap as uploads.
For a client that can split locally (a DCC plugin, a pipeline that holds the parts), send only what changed: on a residential connection a 400 MB model with one re-painted texture is a one-texture upload.
Phase A — propose. Send the manifest and the glTF JSON. The answer lists the parts the workspace lacks, each with a presigned PUT.
{
"note": "re-painted the seat",
"gltf": { "asset": { "version": "2.0" }, "buffers": [{ "uri": "Seat.bin", "byteLength": 184320 }], "images": [{ "uri": "seat_baseColor.png", "mimeType": "image/png" }], "...": "..." },
"manifest": {
"partition": { "rule": "mesh/v1" },
"buffers": [
{ "uri": "Seat.bin", "sha256": "9f1c…", "bytes": 184320, "kind": "mesh" },
{ "uri": "Frame.bin", "sha256": "0b77…", "bytes": 921600, "kind": "mesh" }
],
"images": [
{ "uri": "seat_baseColor.png", "sha256": "e3a0…", "bytes": 1048576, "mime": "image/png" },
{ "uri": "frame_normal.png", "sha256": "51d2…", "bytes": 2097152, "mime": "image/png" }
]
}
}
{
"data": {
"versionShortId": "Vq2mN8xT4bLp", "number": 3, "gltfSha256": "7c…",
"missing": [
{ "sha256": "e3a0…", "bytes": 1048576, "uri": "seat_baseColor.png", "putUrl": "https://…(presigned, 1 h)" }
],
"expiresAt": "2026-10-27T09:20:00.000Z"
}
}
Rule mesh/v1 means "buffers by uri, images as files": the server's own split puts each mesh's vertex and index data in its own buffer (one per animation too), but any layout where every buffer has a uri and no image sits in a bufferView is accepted — a Blender glTF Separate export (one .bin plus the image files) is a valid manifest as it is, and its unchanged textures dedupe against the parts the server already holds. Finer buffers only make geometry dedupe finer. The easiest way to produce a manifest that dedupes against the current version is to start from GET …/versions/:versionId and change only the parts you touched. manifest.gltf may be omitted: the server names unnamed materials, meshes and nodes exactly as ingest does and hashes the JSON itself, so gltfSha256 in the answer is the server's. Proposing the same manifest twice reuses the open proposal (safe to retry).
Phase B — upload. PUT each missing part's bytes to its putUrl (no auth header; the URL is the capability). Parallel and resumable: propose again to get the remaining list.
curl -X PUT "https://…(putUrl)" --data-binary @seat_baseColor.png
Phase C — commit.
{ "data": { "status": "building", "versionShortId": "Vq2mN8xT4bLp", "number": 3, "newParts": 1 } }
Every uploaded part is checked (size and SHA-256) before it is adopted; 409 conflict with missing when parts are still not uploaded, 422 validation_failed when bytes do not match their manifest entry. A manifest with nothing missing (a note-only or JSON-only change) commits at once.
The first returns { versionShortId, number, status, manifest, gltf }: the manifest and the JSON part, the starting point for a delta. The second streams one part's bytes (a buffer, an image, or the JSON part); content-addressed, cache it forever.
Makes an earlier version the current one. A pointer move: no new row, the list keeps every number; the model is rebuilt from that version's parts and its preview re-renders (status: building, then versionStatus: done). status: current when it already is. Manager role.
Not the current one, not one being built. 409 conflict when finished renders were made from it; force=1 deletes anyway (the renders keep their files, only their version label dangles). Frees the parts only this version referenced. Owner role.
Groups are the workspace's categories — the tenant's top-level rows (Artists / Product groups / Sites …) and what sits under them, at most 4 levels deep. Every model has at most one group (its home); tags stay the cross-cut. A token is one workspace, so there is no workspace parameter. Roles mirror the studio: members read, manager+ create / update / file, owner deletes.
Flat rows with parentId, ordered by (sort, name). includeHidden=1 also returns hidden groups for manager+ callers (hidden = out of pickers; their models stay listed). Requires read.
Response 200:
{
"data": [
{ "id": "Gr0upAb3kF9x", "parentId": null, "name": "Artists", "kind": "artists", "about": "## Biography\n\n## Exhibitions\n\n## Press\n",
"hidden": false, "sort": 0, "modelCount": 0, "subtreeModelCount": 42, "renderCount": 0, "subtreeRenderCount": 17, "childCount": 3,
"createdAt": "2026-09-10T10:00:00.000Z", "updatedAt": "2026-09-10T10:00:00.000Z" },
{ "id": "Gr0upAnaRuiz", "parentId": "Gr0upAb3kF9x", "name": "Ana Ruiz", "kind": null, "about": null, "hidden": false, "sort": 0,
"modelCount": 12, "subtreeModelCount": 12, "renderCount": 5, "subtreeRenderCount": 5, "childCount": 0, "createdAt": "…", "updatedAt": "…" }
]
}
| Field | Type | Description |
|---|---|---|
name |
string | Required, ≤ 80 chars |
parentId |
string | Nest under this group (omit for a top-level category) |
kind |
string | artists · products · sites · custom — seeds about with that cohort's headings |
about |
string | Markdown, ≤ 20000 chars (overrides the kind seed) |
fromTag |
string | File every unfiled model carrying this tag into the new group (tags stay untouched); the response carries filed |
Requires render and a manager+ role. Returns 201 with the group (+ filed).
curl -X POST https://api.dx.gl/v1/groups \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"name": "Artists", "kind": "artists"}'
PATCH is partial: only fields present change; parentId: null makes the group a top-level category; cycles and depth > 4 are refused with 400. DELETE is refused with 409 group_not_empty while the group still holds models, sub-groups or attachments.
Moves up to 200 models into the group in one call (manager+). To file or unfile a single model, PATCH /v1/models/:id with groupId.
Response 200: { "data": { "groupId": "…", "filed": 2, "modelIds": ["…"] } }
A render is a video generated from a model. Creating a render queues it for processing by the render pipeline.
{
"modelId": "Ab3kF9x2qL1m",
"renderSettings": {
"quality": "share",
"aspect": "16:9",
"bgColor": "#ffffff",
"length": 6,
"animation": "Walk",
"animationSpeed": 1,
"shadows": true,
"reflector": false,
"easing": true
}
}
Pricing note — read before your first render. The
qualityfield is optional and defaults to"standard"(HD 1080p) at 4 credits per second when omitted — a default 6-second render with noqualityset costs 24 credits. Pass"share"(540p, 1 credit/sec) explicitly for the cheapest tier: a 6ssharerender costs 6 credits. The other tiers:"4k"(16 credits/sec), and the encode is a separateformatfield (H.264 by default; ProRes 422 HQ ×2, ProRes 4444 ×4 — see Quality Tiers)."pro"is a legacy alias for4k+prores4444(64 credits/sec). A video render's cost is always tier rate × format multiplier × length in seconds. The JSON enum values are frozen for API stability and do not match the app's display labels one-to-one. See Render Settings for all options.
Idempotent retries. Send an Idempotency-Key header (any stable string ≤ 80 chars — e.g. a UUID minted once per submit intent, or your own order/SKU reference). If a render with the same key and byte-identical renderSettings was created within the last 30 minutes and hasn't errored, the request replays: you get the original render back with deduped: true and HTTP 200, and nothing is charged. This makes timed-out-and-retried submissions safe. One caveat: the same key with different settings creates (and charges) a new render — the key does not lock settings. POST /v1/renders/batch accepts the same header — one key covers the whole batch, each item replays against its own prior row and comes back with deduped: true. (Independently of the header, an identical resubmit of the same model + settings within a few seconds is deduplicated automatically.)
Converting models. A model uploaded as FBX / OBJ / STL / USDZ can only be rendered once its ingestStatus is done: until then the request answers 409 model_converting, and a model whose conversion failed answers 422 conversion_failed. Pass renderSettings with the upload instead to have the render queued automatically when conversion finishes.
Response 201 (200 with deduped: true on an idempotent replay):
{
"data": {
"id": "Xz7pQ4w8nR2k",
"modelId": "Ab3kF9x2qL1m",
"status": "pending",
"isPreview": false,
"renderSettings": { ... }
}
}
isPreview is legacy: true only on a render funded from a legacy free balance (see Credits), else false. On an idempotent replay the response also carries deduped: true.
| Param | Type | Description |
|---|---|---|
model |
string | Filter by model ID |
status |
string | Filter by status |
limit |
integer | Max 100, default 50 |
offset |
integer | Pagination offset (offset mode) |
cursor |
string | Keyset pagination: empty for page 1, then meta.nextCursor |
updatedSince |
string | ISO 8601 — only renders modified at/after this instant (status changes update it — ideal for completion polling across a big batch) |
{
"data": {
"id": "Xz7pQ4w8nR2k",
"modelId": "Ab3kF9x2qL1m",
"status": "done",
"renderSettings": { ... },
"fileSize": 2457600,
"errorMessage": null,
"failureCode": null,
"hasWebVariant": true,
"hasThumb": true,
"isPreview": false,
"isSystemPreview": false,
"unlockedAt": null,
"hlsStatus": "ready",
"hlsReady": true,
"datasetZipSize": null,
"createdAt": "2026-02-15T20:00:01.000Z",
"updatedAt": "2026-02-15T20:01:30.000Z"
}
}
| Field | Type | Description |
|---|---|---|
fileSize |
integer | Video file size in bytes (null until done) |
errorMessage |
string | Human-readable failure reason when status is error (first line of the worker's report) |
failureCode |
string | Machine-readable failure class when status is error, else null: model_download_failed, env_download_failed, overlay_missing (configured overlay asset deleted or out of workspace scope), overlay_download_failed, renderer_crash, renderer_error (bad/unparseable model), timeout, display_lost, encode_failed, upload_failed, reaped (render node stopped responding). Branch on this, not on message text. |
hasWebVariant |
boolean | Whether a web-optimized MP4 is available |
hasThumb |
boolean | Whether a thumbnail video is available |
isPreview |
boolean | Legacy: true only on a render funded from a legacy free balance (see Credits), else false |
isSystemPreview |
boolean | Whether this is the free system preview created by a bare model upload |
renderSettings.source |
string | "studio" on a Device render — a take rendered in the browser by Studio's Device tier and saved to the library ("Save to Videos"). These rows carry the size tier the take was recorded at in renderSettings.quality (share / standard / 4k; a few rows from 2026-10-13 read "device", meaning HD), cost no credits, have no web proxy (/video and ?quality=web both serve the H.264 master), and are HLS-packaged like any other render. Absent on worker renders. |
unlockedAt |
string | Legacy; do not rely on it. null on renders made through the API; a timestamp on Device renders (renderSettings.source: "studio", the time they were saved) and on some older renders |
hlsStatus |
string | HLS packaging status: pending/processing/ready/failed/skipped |
hlsReady |
boolean | Whether HLS playback is ready (hlsStatus === "ready") |
datasetZipSize |
integer | ZIP size in bytes (dataset and stills renders; null otherwise) |
These same fields appear on each item in List Renders.
Dismisses an errored render (transitions error → failed). Useful for acknowledging errors programmatically.
Cancels a render that is still queued (pending) and refunds the credits it was charged, to the pool they came from. The response reports the refund:
{ "data": { "id": "Xz7pQ4w8nR2k", "cancelled": true, "refundedCredits": 24 } }
Once a worker has claimed the job (any status past pending), cancellation returns 409 render_started — the GPU time is being spent and the render will complete or error normally.
Permanently deletes a terminal render (done, error, failed) and its files (video, poster, thumbnail). Queued and in-flight renders return 409 render_in_flight — cancel a queued render instead (which refunds); an in-flight render must finish or error first. Deleting a completed render never refunds (the GPU time was spent).
{
"renders": [
{ "modelId": "Ab3kF9x2qL1m", "renderSettings": { "aspect": "16:9", "bgColor": "#ffffff" } },
{ "modelId": "Ab3kF9x2qL1m", "renderSettings": { "aspect": "1:1", "bgColor": "#000000" } },
{ "modelId": "Yz9mK3v7pN4j", "renderSettings": { "aspect": "16:9" } }
]
}
Maximum 100 renders per batch. Each item requires a modelId and optional renderSettings. All credits are deducted atomically — if there aren't enough credits, the entire batch fails.
Response 201:
{
"data": [
{ "id": "Xz7pQ4w8nR2k", "modelId": "Ab3kF9x2qL1m", "status": "pending", "isPreview": false },
{ "id": "Bc5nL2x9mQ3r", "modelId": "Ab3kF9x2qL1m", "status": "pending", "isPreview": false },
{ "id": "Wv8jR6t4kP1s", "modelId": "Yz9mK3v7pN4j", "status": "pending", "isPreview": false }
]
}
Renders for the same model are automatically grouped into a batch — the worker renders shared frames once and encodes variants in parallel.
Batch requests honor the Idempotency-Key header (see Create Render): one key covers the whole batch, and on a retried call each item that matches a prior row is returned with deduped: true instead of being re-charged.
Download the output files of a completed render.
Returns the video file. Supports Range headers for streaming.
Pass ?quality=web to get the lighter web-optimized variant (when available, see hasWebVariant).
Content-Type: video/mp4 (h264 / hevc formats), video/quicktime (prores422hq / prores4444 formats, and the legacy pro tier — ProRes .mov) or application/zip (pngseq: the frames)
Returns the poster image (first frame). By default returns the 960 px WebP poster suitable for previews (renders before 2026-10-13 return it as PNG). Pass ?quality=full to get the full-resolution PNG at the video's native dimensions (e.g. 1920×1080). Pass ?format=png when your image widget cannot show WebP (CLO3D's panel images, for one): the same poster is re-encoded as PNG on the way out, cached immutable like the original. Any other format value is 400 bad_request; 503 png_unavailable means the server lacks the image library.
Content-Type: image/webp or image/png
Returns a quarter-resolution MP4 thumbnail video. Supports Range headers.
Content-Type: video/mp4
Downloads all render assets as a single ZIP file. The zip is streamed directly — no server-side buffering, suitable for large ProRes files. Contains:
video.mp4 or video.mov (main video; frames.zip for a PNG sequence)web.mp4 (web-optimized variant)poster.png (full-resolution poster; poster.webp when only the 960 px poster exists)thumb.mp4 (thumbnail video)The response includes Cache-Control: immutable — renders never change after completion.
curl -o assets.zip https://api.dx.gl/v1/renders/Xz7pQ4w8nR2k/bundle \
-H "Authorization: Bearer dxgl_sk_..."
Returns the render's HLS packaging state and playback entry points:
{
"data": {
"id": "Xz7pQ4w8nR2k",
"status": "ready",
"masterUrl": "/v1/renders/Xz7pQ4w8nR2k/hls/master.m3u8",
"thumbnailsVttUrl": "/v1/renders/Xz7pQ4w8nR2k/hls/thumbs.vtt"
}
}
masterUrl/thumbnailsVttUrl are null until status is ready. The manifests, fMP4 segments, VTT thumbnail track, and sprite JPEGs are served under:
All HLS endpoints require the bearer token like every other /v1 route — they are for server-side consumption or proxying (the API grants no browser CORS). For direct browser playback, serve the flat MP4 from your own CDN or use published share URLs.
Returns a short-lived URL that downloads the asset directly from object storage, taking the API out of the data path — the efficient way to pull large files (a 4K ProRes bundle can be tens of GB) and to parallelize or resume downloads with your own tooling (curl -C -, wget -c, or any HTTP client that resumes).
| Param | Description |
|---|---|
asset |
video (default), web, poster, full_poster, thumb, or dataset (the dataset or stills ZIP) |
expires |
Link lifetime in seconds — default 3600, min 60, max 604800 (7 days) |
disposition |
attachment (default: a browser saves the file) or inline (a browser tab plays the video or shows the poster). |
{ "data": { "url": "https://…?X-Amz-Signature=…", "asset": "video", "disposition": "attachment", "expiresIn": 3600 } }
The URL is an unauthenticated capability link until it expires — treat it as a secret and keep expires short. dataset requires the render to be done; asset endpoints 404 if that variant wasn't produced. (HLS manifests and the on-the-fly /bundle zip can't be presigned — use their streaming endpoints.)
Downloads the multi-view training dataset ZIP produced by a completed dataset
render (output: "dataset"). See Dataset Export
for the archive contents. The render must be done.
A stills render (output: "stills") downloads from the
same endpoint as {name}_stills.zip: one {model}_{nn}_{label}.png per pose plus
manifest.json.
Content-Type: application/zip
curl -o dataset.zip https://api.dx.gl/v1/renders/Xz7pQ4w8nR2k/dataset \
-H "Authorization: Bearer dxgl_sk_..."
| Field | Type | Default | Description |
|---|---|---|---|
quality |
string | "standard" |
Resolution tier: "draft" (Draft, 270p, 1 cr/sec), "share" (Standard, 540p, 1 cr/sec), "standard" (HD, 1080p, 4 cr/sec — the default when omitted), "4k" (4K, 16 cr/sec). "pro" is a legacy alias for 4k + format: "prores4444" (64 cr/sec). Display labels differ from JSON enum values; enums are frozen for API stability. |
format |
string | "h264" |
Encode format, independent of resolution: "h264" (MP4, ×1), "hevc" (H.265 MP4, hvc1, ×1), "prores422hq" (ProRes 422 HQ MOV, 10-bit 4:2:2, ×2), "prores4444" (ProRes 4444 MOV, 10-bit 4:4:4, with an alpha channel when the render keeps transparency, ×4). Credits/sec = tier rate × multiplier. ProRes formats are capped at 60 s. Non-H.264 masters play in the app via their H.264 web proxy. |
alpha |
boolean | — | Whether the delivered file keeps the model on transparency. true: a video needs format: "prores4444"; stills come out as PNGs with alpha. false: the background is in the file. Omitted: a prores4444 video is transparent, stills are composited. Not for a dataset. See Transparency. |
previewBacking |
string | "checker" |
What the previews of an alpha: true render sit on: "checker" or a 6-digit hex color. Never in the delivered file. |
effect |
string | "turntable" |
Camera path: "turntable" (360°), "hero-spin" (fast spin to front), "showcase" (look-around), "zoom-orbit" (360° + zoom), "reveal" (scale-up entrance), "keyframes" (custom fly-through, see keyframes/camera), "dataset" (vision training; flat cost per set by tier) |
sweepAngle |
number | — | Override sweep angle in degrees (hero-spin default 540, reveal default 180). Range: 10–1080. |
easeOutRatio |
number | — | Hero-spin deceleration fraction (default 0.6). Range: 0–1. |
amplitude |
number | — | Showcase swing angle in degrees (default 60). Range: 5–180. |
zoomStart |
number | — | Zoom-orbit starting radius multiplier (default 1.0). Range: 0.1–3. |
zoomEnd |
number | — | Zoom-orbit ending radius multiplier (default 0.7). Range: 0.1–3. |
scaleFrom |
number | — | Reveal starting model scale (default 0). Range: 0–1. |
vignette |
number | — | Vignette intensity (0 = none, 1 = full). Range: 0–1. |
vignetteClear |
number | — | The vignette's clear area: the share of the way from the frame's centre to its corners left untouched, in whole percents (0.5 = 50 %). The darkening starts there and still ends at the corners; from about 0.71 only the corners darken. Range: 0–0.9. Absent or 0 = darkening from the centre. Without a vignette it does nothing. |
ssaa |
boolean | — | Sampling. true: rendered at twice the output size and filtered down (2× supersampling). false: the frame as rendered at the output size, faster. No price difference. Omitted: supersampled as before. See Quality Tiers. |
aspect |
string | "16:9" |
Video aspect ratio preset: "16:9", "1:1", "9:16". The resolution tier sets the pixel size (270p / 540p / 1080p / 2160p short side). Ignored when width + height are sent; the stored settings then carry the reduced ratio ("1:2" for 400×800). |
width, height |
integer | — | Exact output size in pixels, for signage panels, banners, 4:5 feeds. Send both. Each 16–4096, even numbers, area at most 3840×2160, ratio within 1:4 and 4:1. Wins over aspect and quality: the credit tier is derived from the pixel area (≤ 960×540 bills as Standard 540p, ≤ 1920×1080 as HD, larger as 4K), so a 400×800 render costs 1 credit/sec and a 2160×2160 render 16/sec. quality: "pro" still means ProRes 4444. Not valid for datasets. |
bgColor |
string | "#ffffff" |
Background hex color, e.g. "#ff8800" (6-digit hex, must include #) |
bgImageId |
string | — | Overlay asset ID for background image (overrides bgColor). See Overlays. |
bgAlign |
string | "left" |
Horizontal anchor for the background image: "left", "center", "right" — which width slice of the 16:9-canonical cover the output keeps (vertical is never cropped) |
length |
number | 6 |
Video duration in seconds: greater than 0, up to 120 (ProRes 4444: up to 60; admin accounts uncapped). Decimal OK, e.g. 4.7. Credits = tier rate × seconds, 1-credit minimum. |
fps |
integer | 60 |
Frame rate, any integer 12–120 (24 / 25 / 30 / 50 / 60 / 120 are the usual picks). Billed flat up to 60 fps; above 60 the per-second rate scales pro-rata (120 fps = ×2) and the max length shrinks the same way (120 fps: 60 s H.264, 30 s ProRes). 4K + h264 is limited to 60 fps — use hevc or a ProRes format above that. Datasets ignore it. The web proxy and HLS play at the native rate up to 1080p (60 fps max at 4K); the master always keeps the native rate. |
animation |
string | — | Animation clip name to play. Discover a model's clips via GET /v1/models/:id → animations ([{ name, duration, channels }], seconds); animationCount appears on list rows. Use "*" for the first clip. |
animationSpeed |
number | 1 |
Animation playback speed multiplier, −10 to 10, non-zero (e.g. 0.5 for half speed, 2 for double; negative values play the clip in reverse). |
shadows |
boolean | true |
Enable ground shadows |
reflector |
boolean | false |
Enable reflective ground plane |
easing |
boolean | true |
Ease in/out on turntable rotation |
strictCredits |
boolean | false |
Legacy. For an account that still holds a legacy free balance: when its credits cannot cover the render, fail with 402 no_credits instead of funding the render from that balance (see Credits). No effect on an account without such a balance. In a batch, one item refused this way fails the whole (atomic) batch. |
rotateY |
number | 0 |
Turntable camera starting angle in degrees (-180 to 180). Determines the initial camera direction before rotation begins. Does not rotate the model. |
tiltX |
number | 0 |
Model pitch in degrees (-180 to 180), applied in the yawed frame — see Model Orientation. Useful for angling products in portrait aspect. Bypasses shadow caching. |
panX |
number | 0 |
Model yaw in degrees (-180 to 180). Applied first, before tiltX and rollZ. |
rollZ |
number | 0 |
Model roll around the Z axis in degrees (-180 to 180). Applied last. |
scaleX |
number | 1 |
Per-axis model scale X. 1 = original; a negative value mirrors that axis (chirality fix — see Model Orientation); non-uniform values stretch the proportions; a uniform scale (all three equal) is a no-op (the frame refits). Magnitude 0.01–20. |
scaleY |
number | 1 |
Per-axis model scale Y (up/down). Same semantics as scaleX. |
scaleZ |
number | 1 |
Per-axis model scale Z (front/back). Same semantics as scaleX. |
translateX |
number | 0 |
Model position offset X (slide left/right) in normalized units (the model spans ~2). Range -20 to 20. |
translateY |
number | 0 |
Model position offset Y — a positive value lifts the model off the ground so it floats above its shadow. Range -20 to 20. |
translateZ |
number | 0 |
Model position offset Z (slide front/back) in normalized units. Range -20 to 20. |
clipBox |
object | — | Six-plane region of interest { center:[x,y,z], halfSize:[x,y,z], quat?:[x,y,z,w], enabled?, castShadows?, fill?: { color, roughness } } in the model's raw GLB units. Geometry outside is cut away and casts no shadow; framing refits to the kept part. fill paints the cut interior in one flat, unlit colour (default white) instead of leaving it hollow; roughness is accepted for compatibility and has no effect. A box saved in Studio applies by default; { "enabled": false } renders the whole model. |
zoom |
number | 1.0 |
Camera zoom factor (0.5 to 2.0): values above 1 move the camera closer, below 1 move it farther (distance = base ÷ zoom). |
output |
string | "video" |
"video", "dataset" or "stills" — datasets also take datasetQuality and coverage, see Dataset Export; stills take a stills pose array, see Stills |
pathTraced |
boolean | false |
Stills only: render the set with the path tracer (soft shadows, real reflections) at 1 / 4 / 16 credits per still instead of the raster renderer's 1 / 2 / 4, see Stills. Any background and HDRI environment; no procedural scene. |
renderSettings accepts the full set of settings the Studio editor can
author — the same validator backs both surfaces. The fields above cover the
common cases; the following are also accepted (all optional). Invalid values
are rejected with invalid_settings.
Server-set keys.
previewandthumbOnlyare stamped by the server and rejected if sent. Note thatrenderSettingsobjects echoed back byGET /v1/renderscan contain a server-stampedpreview: true(on a render funded from a legacy free balance) — strip it before re-submitting those settings to a new render.
Two Looks retired. Until 2026-11-26
filteralso took a film-grain and a cartoon Look,grainandtoon. A new render that names either is refused withinvalid_settings. A render made with one keeps it, andGET /v1/rendersstill echoes it: choose anotherfilterbefore re-submitting those settings. On such a render the grain was left out of a PNG sequence and of a transparent file.
Saved Studio edits apply by default. When the model has saved edits (the
editsobject on Get Model), a render that leaves a key out takes the saved value:hiddenMeshNames(fromhideNames),meshOffsets,materialEdits,decals,clipBox(unless it was saved disabled) and the model rotation (panX/tiltX/rollZ, only when none of the three is sent). Send the key to override it. An empty value counts as sent:"decals": [],"hiddenMeshNames": []or"materialEdits": {}renders without the saved one. The same holds per item in a Batch Render.
| Group | Fields |
|---|---|
| Filter / post | filter (none/sepia/bw/vivid/warm/cool/faded/noir), toneMapping (filmic = ACES Filmic, the default film look / neutral = Khronos PBR Neutral, colours as authored), bloomEnabled, bloomStrength (0–2), dofEnabled, dofStrength (0–1), n8aoEnabled, n8aoIntensity (0.5–32), swayEnabled, swayIntensity (0–2), windEnabled, windIntensity (0–2; a quiet breeze at a garment's hem, periodic over the take) |
| Intro | intro (none/rise/dots/wire/liquid/ghost/decode/charge/holo/assemble/deflate — a timed reveal over the first moments of the video; video output only), introSeconds (0.5–60; longer than the video holds the unrevealed look throughout), introDelay (0–3 s hold before it starts), introOutro (mirror it at the end), introDirection (top/up/down/out), introColor (#rrggbb accent), introPreset (liquid: mercury/chrome/ice/snow/lava/water), introPattern (wire/decode: square/hex), introLine (wire/decode line width px, 0.5–3), introDepth (deflate: how sunken it starts, fraction of the model radius, 0.02–0.5), introDensity / introSize / introSpeed / introIntensity (Customize multipliers 0.25–4, 1 = the authored look; each effect reads a subset), introSeed (integer; same seed = same particles) |
| Fade | fadeInSeconds (0–5; an eased whole-frame fade up from fadeInColor over the first moments of the video; 0 = off), fadeInColor (#rrggbb, default black), fadeOutSeconds (0–5; fade out to fadeOutColor over the last moments; 0 = off), fadeOutColor (#rrggbb). Applied at encode time to every video variant and the poster (the poster is frame 0, so a fade in from black gives a black poster). Video output only |
| Text | textOverlays[] — text blocks (titles / captions / end-notes) rasterised by the renderer in Inter and composited at encode time above the fades, each with a time window and eased fades. Per block: text (≤ 500 chars, \n = new line), anchor (lt/ct/rt/lm/cm/rm/lb/cb/rb — the edge / centre the point pins), x/y (fractions of the frame), align (l/c/r), width (fraction of the frame width to wrap inside; null = one line per \n), size (fraction of the shorter side, 0.02–0.2), weight (400/700), font (a workspace font id from GET /v1/fonts, added in Studio's Text panel; absent = Inter), color (auto or #rrggbb; send ink with auto), from/to (seconds; null = whole take), fadeIn/fadeOut (0–3 s), opacity (0.05–1, default 1), steps[] (a sequence: { text, seconds } in turn at the same place, seconds: null on the last = to the end; from starts it, to is derived; steps crossfade with the fades). The poster (frame 0) carries any block visible at t = 0. No block cap; 256 KB per list; video only. |
| Shadows & reflector | shadowMode (shader/flat/accumulated), shadowDarkness (0–5), shadowSoftness (0–1), selfShadow (0–2; the model shading itself in any ground mode, 0 = none, past 1 the shadow also darkens the reflections; omit = on with a shadow mode, off with the reflector), reflectorMix (0–1), reflectorFade (0.05–5), reflectorDepthBlur (0–10) |
| Environment / IBL | envId (mint via POST /v1/assets/envs — a bad id hard-fails the render with a refund), envRotation (−180–180), envExposure (0.0156–4), envMode (grounded/lighting/floating), envOpacity (0–1), envBlur (0–1), envScale (0.25–4), envTint (hex), envTintStrength (0–1); built-in scenes: envId: "proc" + envRecipe (rig/sweep/sky/cyc/aurora/caustics), envVariant (caustics: pool/sea/lava), envParams (sliders, catalog order), envSpeed (0–3 motion), envRelief (0–1 floor), envSeed — a shader, no upload; the sun follows keyLightAzimuth/keyLightElevation |
| Lighting | spotlightIntensity (0–32), lightsIntensity (0–32), ambientIntensity (0–16), glossIntensity (0–16), keyLightColor (hex), fillLightColor (hex), keyLightAzimuth (−180–180, around the model, 0 = front), keyLightElevation (−90–90, sun height; 90 = overhead default, 0 = horizon, negative = from below); lights (point and spot lamps, see Scene lights) |
| Model | hiddenMeshNames (string[], ≤512, each ≤256 chars) — see Mesh Exclusions; meshOffsets ({ meshName: [x, y, z] }, ≤512 keys, model units, glTF root frame) — see Mesh Offsets |
| Background | bgGradient ({ stops: [{ color }] (2–8), angle: 0–359 } — both keys required when present) |
| Materials | materialEdits — object keyed by material name (≤256 keys, ≤32 KB serialized); each value takes color, roughness, metalness, opacity, alphaMode (opaque/mask/blend/soft; soft: a cutout with blended edges, for hair, which other glTF tools draw as BLEND), emissive/emissiveIntensity, aoMapIntensity, envMapIntensity, side, flatShading, wireframe, printable (false = decals are cut out on this material, the viewer's sticker-exclusion flag), normalScale, bumpScale, displacementScale, transmission, clearcoat/clearcoatRoughness, sheen/sheenRoughness/sheenColor, iridescence/iridescenceIOR, dispersion (0–1, glass rainbow fringes; needs transmission > 0), anisotropy (0–1, brushed-metal streak) / anisotropyRotation (radians), specularIntensity/specularColor, thickness, ior, attenuationColor, textureMaps toggles, mapAssetId (mint via POST /v1/assets/textures — a wrong id silently keeps the original map) |
| Decals | decals — array (≤64) of { id, imageAssetId, position:[x,y,z], normal:[x,y,z], euler:[x,y,z] (radians), size, imageAspect? (>0–100), placementScale? ([x,y,z] model scale at stamp time, each axis magnitude 0.01–20), roughness? (0–1), metalness? (0–1), opacity? (0–1), blend? (sticker/print), soak? (0–1), relief? ({ mode: emboss/engrave, depth: 0–1, ink?: boolean }), tint? (#rrggbb) }. position, normal and euler are in Studio's normalized model frame: the visible model scaled so its largest extent is 2 and centered on the origin, before the model rotation. The practical way to get them is to place the sticker in Studio, save, and read edits.decals from Get Model. Finish: roughness (default 1) and metalness (default 0) are the sticker's own surface, and opacity (default 1) is the ink coverage. blend: "print" renders the image as ink in the fabric instead of a sticker on top (the default): the decal takes the host material's normal and roughness maps, and soak sets how far the garment color comes through (0 = white-underbase print, 1 = dyed in; default 0.25). relief uses the image's alpha as a height the shading follows, raised (emboss) or carved (engrave); ink: false paints no color and leaves only the shape. tint multiplies a color into the image. placementScale is the model scale when the decal was stamped: the decal bakes at that scale and the final model scale rides on top, so a non-uniform model scale stretches the sticker (matching Studio's preview). Omit it → the decal bakes at the final scale (undistorted). |
Keyframe camera (effect: "keyframes") |
keyframes (array 1–64 of { pose: { position, lookAt, fov }, dwell?, easing? } — all three pose fields required on every keyframe), camera ({ target, radius, theta, phi, fov } — all five required when present), startAngle/endAngle, startTilt/endTilt, startZoom/endZoom, startFov/endFov, easeInSeconds/easeOutSeconds, kfSegmentDuration, loop |
panX, tiltX, and rollZ rotate the model; rotateY offsets where the camera starts its orbit — the two are independent. The three model rotations compose in a fixed order — yaw first, then pitch in the yawed frame, then roll:
panX — yaw around the vertical axis (turn the model left/right)tiltX — pitch around the yawed X axis (lean it forward/back)rollZ — roll around the resulting Z axiszoom scales the camera distance: 2.0 = twice as close, 0.5 = twice as far (distance = base ÷ zoom).
scaleX/scaleY/scaleZ scale the model per axis (1 = original): a negative value mirrors that axis — the fix for a model that loaded as its wrong-handed twin (e.g. a left shoe that should read as a right) — non-uniform values stretch its proportions, and a uniform scale is a visual no-op because the frame auto-refits. translateX/translateY/translateZ offset the model's position in normalized units (it spans ~2): a positive translateY lifts it off the ground to float above its shadow, while translateX/translateZ slide it (most visible on a keyframe path; on a turntable they read as an orbit-relative offset).
curl -X POST https://api.dx.gl/v1/renders \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{
"modelId": "Ab3kF9x2qL1m",
"renderSettings": {
"quality": "share",
"panX": 35,
"tiltX": -12,
"rotateY": 90,
"zoom": 1.3
}
}'
This yaws the model 35°, leans it toward the camera by 12°, starts the turntable orbit a quarter-turn around, and moves the camera 30% closer. A common product-shot recipe: panX to face the label, a small negative tiltX for a heroic angle, zoom 1.2–1.5.
hiddenMeshNames hides named meshes for the duration of the render — useful for packaging variants, alternate trims, or scan scaffolding:
{
"modelId": "Ab3kF9x2qL1m",
"renderSettings": {
"quality": "share",
"hiddenMeshNames": ["Packaging", "Stand_Base", "Cap_Alt"]
}
}
Names must match the mesh names in the GLB exactly (case-sensitive). Unknown names are a silent no-op — the render succeeds without hiding anything — so verify names against your source file. Up to 512 names, each ≤256 characters. Hidden meshes are also excluded from ground shadows and reflections.
Discovering names:
GET /v1/models/:idreturnsmeshNames(the render-time mesh names, exactly ashiddenMeshNamesmatches them) andmaterialNames(the keysmaterialEditsmatches).nullmeans the model predates inventory extraction — re-upload, or ask us to run the backfill. Note mesh names are the runtime names (spaces become_, duplicate names gain_1/_2suffixes), which can differ from what your authoring tool shows.
The lists hold at most 512 names each.
meshNamesstarts with the group keys, then lists mesh names in scene order: firstnode:<collection>keys (one per top-level collection, such as a storey orTrees; hides every mesh under it), thenmesh:<glTF mesh name>keys (one per mesh reused enough to be drawn as a batch, plusmesh:<glTF mesh name>#<primitive>for each part of a multi-part one; hides every copy), then the mesh names. A model with more than 512 entries is cut at 512, so the names that come last in the scene are not listed; nothing in the response says the list was cut. Those meshes can still be hidden: by their runtime name, or through thenode:/mesh:key of a group they belong to.materialNameslists the first 512 distinct material names in file order. Every key and name in either list can be passed as it is. Model Inventory lists every mesh and material, uncut.
meshOffsets moves named meshes for the duration of the render, in the model's own units and in the glTF root frame (before any rotate / scale / translate you set). The usual reason is two coplanar surfaces that flicker against each other (z-fighting): lift one by a hair and the flicker is gone, without touching the uploaded file.
{
"modelId": "Ab3kF9x2qL1m",
"renderSettings": {
"quality": "share",
"meshOffsets": { "Label_Plane": [0, 0.002, 0] }
}
}
Names match like hiddenMeshNames (exact, case-sensitive, unknown names are a silent no-op). Up to 512 keys; each value is [x, y, z], finite, at most 1e6 in magnitude. The moved mesh is measured for bounds, grounding and framing, casts its shadow from where it now sits, and stickers placed on it follow. Offsets saved in Studio (Edit › Meshes › Nudge) are applied by default when you do not send the key; send {} to render without them.
lights adds point and spot lamps to a render, for interiors and set lighting. They light the frame in the real-time renderer and in a traced render alike, and cost nothing extra.
"lights": [
{ "id": "desk", "name": "Desk lamp", "type": "spot", "position": [1000, 1600, 600], "target": [1000, 100, 600],
"outer": 0.6, "inner": 0.4, "color": "#ffe0b0", "intensity": 3000000, "size": 120, "castShadow": true, "source": "user" },
{ "id": "fill", "name": "", "type": "point", "position": [-800, 1200, 900], "color": "#ffffff",
"intensity": 500000, "range": 4000, "castShadow": false, "source": "user" }
]
| Field | Type | Notes |
|---|---|---|
id |
string | 1–64 letters, digits, - or _; unique in the list |
name |
string | Up to 120 characters; "" is fine |
type |
string | point (every way) or spot (a cone from position toward target) |
position |
[x, y, z] | In the model's raw GLB units and frame, like clipBox: a lamp turns with panX / tiltX / rollZ and scales with the model |
target |
[x, y, z] | Spot only, required: where the cone aims, raw GLB frame; not the lamp's own position |
color |
hex | 6-digit hex |
intensity |
number | 0 to 1e9. 1 lights a surface 1 raw unit away as brightly as the key light at its default; it falls off with the square of the distance. A model in metres takes small numbers, one in millimetres large ones (500 mm away: about 250000) |
range |
number | Optional cut-off distance in raw units (default none) |
size |
number | Optional radius of the lamp in raw units, 0 to 1e6: a bigger lamp throws softer shadows, as a real one does; 0 is a point with hard edges. Left out, the lamp is as soft as the key light at its default Softness (its size seen from the model's centre is the key's 7.5°) |
inner, outer |
number | Spot only: half-angles of the cone in radians, inner ≤ outer ≤ π/2 (defaults 0 and π/4); full strength inside inner, nothing past outer |
castShadow |
boolean | The lamp casts the model's shadow, onto the model and onto the ground |
source |
string | user for lamps you place (file is reserved for a file's own lights) |
Up to 32 lamps, at most 4 with castShadow. Unknown keys inside a lamp are refused. A Gaussian splat ignores lamps.
Two independent axes: quality picks the resolution, format picks the encode.
quality |
Display label | Resolution | Credits / sec (H.264) |
|---|---|---|---|
draft |
Draft | 480×270 | 1 |
share |
Standard | 960×540 | 1 |
standard |
HD (default when quality omitted) |
1920×1080 | 4 |
4k |
4K | 3840×2160 | 16 |
draft has a quarter of Standard's pixels at Standard's price: it is there for turnaround (a fast look, a path-traced preview), not for saving credits.
Sampling: ssaa: true renders at twice the output size and filters down on the GPU (2× supersampling); ssaa: false delivers the frame as rendered at the output size, which is faster and a touch rougher on fine texture and tight highlights. The price is the same either way. Omitted, a render is supersampled as before. A path-traced video is traced at its output size whatever the key says.
format |
Codec | Alpha | Multiplier | Output | Max length |
|---|---|---|---|---|---|
h264 (default) |
H.264 MP4 | No | ×1 | .mp4 |
120 s |
hevc |
HEVC / H.265 MP4 (hvc1) |
No | ×1 | .mp4 |
120 s |
prores422hq |
ProRes 422 HQ, 10-bit 4:2:2 | No | ×2 | .mov |
60 s |
prores4444 |
ProRes 4444, 10-bit 4:4:4 (+ alpha) | Yes, by default | ×4 | .mov |
60 s |
pngseq |
PNG sequence, 8-bit RGB or RGBA, lossless | Yes, when asked | ×4 | .zip |
60 s |
Credits per second = tier rate × format multiplier: an HD ProRes 4444 render is 16/sec, a 4K ProRes 422 HQ is 32/sec, a 540p ProRes 4444 is 4/sec.
Frame rate is a third axis: fps (default 60) leaves the rate alone up to 60 fps and multiplies it pro-rata above (120 fps = ×2). Max length is a frame budget, so 120 fps halves the caps in the table.
An explicit size (width + height) replaces the tier's preset dimensions; the tier is then derived from the pixel area (≤ 960×540 → share rate, ≤ 1920×1080 → standard, larger → 4k), which prices every preset shape exactly as before. An explicit size never resolves to draft: sizes stop at 3840×2160.
quality: "pro"is a legacy alias forquality: "4k"+format: "prores4444"(64 credits/sec) and stays accepted; pairing it with any otherformatis rejected. The JSON enum values are frozen for API stability. The display labels were renamed in a later UX pass; use the JSON values shown in the first column when making API calls.
hevc, prores422hq, prores4444 and pngseq masters are not played in the app directly; the app and ?quality=web use the H.264 web proxy.
format: "pngseq" delivers the take as frames, not as a video file: a zip (stored, not compressed again) of one PNG per frame, for compositing and editing software.
frame_00000.png, frame_00001.png … in order, numbered from 0, then manifest.json: { "kind": "png-sequence", "frames", "fps", "width", "height", "pattern": "frame_%05d.png", "firstFrame": 0, "colorSpace": "sRGB" }, plus "alpha": "straight" when the frames have alpha.alpha: true the PNGs are RGBA with straight alpha and no background. Without it (or with alpha: false) they are RGB with the background in them. Unlike prores4444, an omitted alpha means no transparency.png_sequence_too_large and is refunded. That is a long 4K take of noise-like content; a model over a photograph or an HDRI backdrop fits at any length and size offered. Use prores4444 for a take past it.no_credits).GET /v1/renders/:id/video and download-url return the zip (application/zip); the bundle holds it as frames.zip. The public URL is /v/{userId}/{renderId}/frames. web.mp4, the poster and the thumbnail are as for any render.A render keeps the model on transparency, with nothing behind it in the file, when it says so with alpha:
alpha: true, video. Needs a format that keeps transparency: prores4444 or pngseq. A ProRes 4444 .mov has an alpha channel and no background; its alpha is premultiplied (the color is already multiplied by the alpha, as over black) and the file declares BT.709. A PNG sequence's alpha is straight.alpha: true, stills. The PNGs in the zip keep their alpha, straight as PNG is; manifest.json says "alpha": "straight".alpha: false. The background is in the file. prores4444 with alpha: false is an ordinary 4:4:4 master, pngseq a sequence of RGB frames.alpha key. As it always was: a prores4444 video is transparent (so quality: "pro" still delivers a 4K transparent master) and stills are composited. A pngseq render has its background.A dataset is always transparent and takes no alpha key. A Gaussian splat refuses alpha: true.
What a transparent file carries. The Look (filter) on the model's color, the overlay frame, text, and the fades as fades of alpha: the model fades to and from nothing, and fadeInColor / fadeOutColor are not used. Until 2026-11-20 a transparent prores4444 master was the bare frames and only its previews showed those layers.
What it leaves out, on every output of the render so the previews show what the file holds: vignette. It is not refused.
Previews. The web proxy, thumbnail and poster of an alpha: true render, and a stills set's preview images, sit on previewBacking: "checker" (the default) or a 6-digit hex color. The backing is never in the delivered file. A render with no alpha key keeps its own bgColor / bgGradient / bgImageId behind its previews.
Video is billed per second — a render's cost is the tier rate above × the format multiplier × its length in seconds. The default length is 6s, so a 6s share turntable = 6 credits, and a 6s render with quality omitted (= standard/HD) = 24 credits. Renders use GPU-accelerated 2× supersampling (SSAA) for anti-aliased edges unless ssaa: false asks for the frame as rendered (see Quality Tiers).
Note: New accounts receive a 100-credit signup bonus. The bonus lands in the regular credit balance and spends like purchased credits.
Set output: "dataset" with datasetQuality to generate a NeRF/3DGS-ready training dataset. Three tiers:
Tier (datasetQuality) |
Views | Resolution | Credits (flat) |
|---|---|---|---|
100x800 |
100 | 800×800 | 40 |
196x1024 |
196 | 1024×1024 | 160 |
400x2048 |
400 | 2048×2048 | 640 |
Use coverage: "hemisphere" (default) or coverage: "sphere" for full sphere viewpoints.
Output ZIP contains:
images/ — RGB PNG frames (composited on white background)depth/ — 8-bit grayscale depth PNGs (closer = darker, farther = lighter). Tight near/far planes maximize precision across the model's actual depth span.depth_16bit/ — 16-bit grayscale depth PNGs (65,536 levels of precision for surface reconstruction): depth = pixel_value/65535 * (depth_far - depth_near) + depth_nearnormals/ — world-space normal map PNGs (RGB = n·0.5 + 0.5, Y-up; transforms.json carries normal_space: "world")masks/ — foreground/background alpha mask PNGstransforms.json — Camera intrinsics + per-frame 4×4 transform matrices (instant-ngp / nerfstudio format). Includes depth_near and depth_far for decoding: depth = pixel_value/255 * (depth_far - depth_near) + depth_nearpoints3D.ply — seed point cloud (~100k surface points back-projected from the depth maps, with RGB; binary little-endian PLY) for initialising Gaussian-splat trainingoverview.webp — 4-quadrant contact sheet (10×10 grid of all views across RGB, depth, normals, masks)Depth background: a depth pixel of 0 means no surface (background), not a surface at depth_near. With the default planes (near = R − 1.5·r, far = R + 1.5·r for orbit radius R and model radius r) no surface pixel encodes below about one sixth of the range, so 0 is unambiguous; use masks/ when you need the exact foreground set.
Quick start: Unzip the dataset and train a 3D Gaussian Splat with nerfstudio:
unzip dataset.zip -d mymodel
ns-train splatfacto --data ./mymodel \
--max-num-iterations 15000 \
--pipeline.model.sh-degree 3 \
--pipeline.model.background-color white
The background-color white flag is required because images are composited on a white background.
Set output: "stills" with a stills array to render one PNG per camera pose — product-page angle sets, marketplace image sets, thumbnails. With alpha: true the PNGs keep their alpha: the model and its ground shadow on transparency, for a product cutout (see Transparency). Each still is priced by the quality tier (the pixel size; aspect or width + height apply as for video):
quality |
Size (16:9) | Credits per still | … path traced (pathTraced: true) |
|---|---|---|---|
draft |
480×270 | 1 | 1 |
share |
960×540 | 1 | 1 |
standard |
1920×1080 | 2 | 4 |
4k |
3840×2160 | 4 | 16 |
Path traced (pathTraced: true) renders the same poses with a GPU path tracer instead of the real-time renderer: a soft area-light key whose size follows shadowSoftness, real ground shadows and reflections, 512 samples per pixel with a denoiser. It is the choice for the shot that matters; the default raster stills are roughly a thousand times cheaper to produce and remain the right tool for automated volume. The frame carries alpha — the model and its shadow on transparency — so bgColor, bgGradient and bgImageId all apply, composited behind it exactly as for raster stills. A custom HDRI (envId, with envMode, envRotation, envExposure, envTint) lights the still and, in floating and grounded modes, is its backdrop (the surrounding sphere, or the dome with its floor under the model), with envBlur, envOpacity and envScale applied as for raster stills. Procedural scenes (envId: "proc") are rejected. Everything else — quality, aspect / width + height, material edits, hidden meshes, decals, clip box, transforms, keyLightAzimuth / keyLightElevation, spotlightIntensity, shadowSoftness, shadows / reflector as the ground mode — applies unchanged.
length, fps and format do not apply. Each entry carries a pose in the keyframe shape (position, lookAt, fov, normalized model frame) and an optional label (≤ 24 characters) that names the file: {model}_{nn}_{label}.png. Up to 64 stills per job.
{
"modelId": "Ab3kF9x2qL1m",
"renderSettings": {
"output": "stills",
"quality": "standard",
"stills": [
{ "pose": { "position": [1.8, 1.0, 2.6], "lookAt": [0, 0.4, 0], "fov": 35 }, "label": "hero" },
{ "pose": { "position": [0, 0.5, 3.2], "lookAt": [0, 0.4, 0], "fov": 35 }, "label": "front" },
{ "pose": { "position": [0, 3.2, 0.3], "lookAt": [0, 0.4, 0], "fov": 35 }, "label": "top" }
]
}
}
The job is done when the ZIP is up: GET /v1/renders/:id/dataset (or download-url?asset=dataset) returns {name}_stills.zip with the PNGs and a manifest.json (file names, labels and poses in order); datasetZipSize carries its size. The render's poster is a contact sheet of the set; there is no video, so /video and HLS 404.
Renders progress through these statuses:
Any status can transition to error if the render fails. Poll for done or error; treat the intermediate statuses as opaque "in progress" states.
| Status | Description |
|---|---|
pending |
Queued, waiting for a worker to pick it up (cancellable) |
poster-processing |
Worker is rendering frames, poster extracted |
poster-done |
Recovery state: poster uploaded but the video pass was interrupted — a worker will resume it (not part of the happy path) |
video-processing |
Video being encoded (ffmpeg) |
done |
All assets ready (video, poster, thumbnail) |
error |
Render failed |
failed |
An errored render you dismissed via PATCH /v1/renders/:id/dismiss |
A curated, free-to-use catalogue — original and CC0 models, HDRIs, backgrounds and stickers — that any account can copy into its own workspace. Browse it to try the API without uploading anything; add returns ids that plug straight into renders.
| Query | Default | Description |
|---|---|---|
kind |
models |
models, environments (HDRIs), backgrounds, stickers. Any other value is 400 bad_request. |
q |
— | Free text over name / tags / credit |
tags |
— | Comma-separated tags (OR) |
limit, offset |
50, 0 | Pagination (max 100) |
Response 200:
{
"data": [
{ "kind": "models", "id": "lib1AbC2dEf3", "name": "Coffee cup", "tags": ["product", "stickers"], "license": "CC0", "credit": null, "fileSize": 1204211, "animationCount": 0, "renderShortId": "rnd1AbC2dEf3", "hasThumb": true }
],
"meta": { "total": 1, "offset": 0, "limit": 50, "tags": ["apparel", "product", "stickers"] }
}
Overlay kinds carry width, height and description instead of the model fields. meta.tags is the kind's whole tag vocabulary. Requires the read scope. 404 not_found when the deployment has no Library.
Copies the item into your workspace as an owned row and returns its id: a model for Create Render, or an overlay asset for bgImageId (backgrounds), decals[].imageAssetId (stickers) or envId (HDRIs). Models arrive with their poster. Re-adding is a no-op — alreadyThere: true with the existing id.
Response 200:
{ "data": { "kind": "models", "id": "mdl1AbC2dEf3", "name": "Coffee cup", "alreadyThere": false, "source": "lib1AbC2dEf3" } }
Requires the render scope and an editor role in a bound workspace (403 forbidden otherwise). Counts against the workspace owner's caps — 429 limit_reached at the model / overlay / environment limits.
Overlay assets are reusable background (or foreground) images for renders. Upload once, reference by ID in render settings. System overlays (published by admins) are available to all users.
| Field | Type | Default | Description |
|---|---|---|---|
file |
file | — | Image file (PNG, JPEG, WebP; max 25 MB) |
layer |
string | "background" |
"background", "foreground", "decal" (referenced from decals[].imageAssetId), or "texture" (referenced from materialEdits.<name>.mapAssetId for base-color swaps). Any other value is rejected with 400 bad_request. |
name |
string | — | Display name (max 100 chars) |
description |
string | — | Short description (max 500 chars) |
alignment |
string | "left" |
Horizontal anchor when used as a background: "left", "center", "right" (see bgAlign under render settings) |
opacity |
number | 1 |
Overlay opacity, 0–1 (background/foreground compositing) |
Response 200:
{ "data": { "id": "abc123DEF456", "layer": "background", "alignment": "left", "name": "My Gradient" } }
List items additionally carry fileSize, width, height, opacity, filename, isSystem, and createdAt.
Uploading requires the render scope (listing requires read). Each account can hold up to 100 overlay assets — at the cap, uploads return 429 limit_reached; delete unused assets to free slots.
Returns your overlay assets plus all published system overlays.
Deletes an overlay you own: it leaves the lists and frees its slot. Assets are shared by a workspace, so the delete is a soft one: renders, saved edits and takes that already name the id keep resolving it, and the image stays stored. A second DELETE of the same id answers 404.
Failure mode: overlay assets referenced by a render fail loudly, like environments — if the id does not resolve (never existed, or another workspace's) or the file can't be fetched by the time the render is picked up, the render errors with
failureCode: "overlay_missing"/"overlay_download_failed"and the credits are refunded, rather than silently shipping without the configured frame. A deleted overlay still resolves.
Pass the overlay id as bgImageId in render settings:
{ "renderSettings": { "bgImageId": "abc123DEF456", "aspect": "16:9", "length": 6 } }
When bgImageId is set, bgColor is ignored. The image is scaled to cover a 16:9 box at the output height, then cropped to the output width from the bgAlign anchor (default: left). Scaling by height makes the composition resolution-independent, and since 16:9 is the widest aspect, narrower outputs (1:1, 9:16) are just a horizontal slice — the image is never cropped vertically. Legacy 9-point values ("top-left" … "bottom-right") are still accepted and collapse to their horizontal token.
Pre-flight for bulk pipelines: returns { "id": "...", "exists": true } if this exact source content already exists as an asset of that layer in the workspace (uploads record a content sha) — skip the upload and reuse the id instead of re-uploading into the 100-asset cap. layer defaults to background; texture works too. A deleted asset does not exist here. Uploading the file again brings a texture back under its id (POST /v1/assets/textures dedupes by content); POST /v1/overlays does not dedupe, so any other layer gets a new id.
Google Font families a workspace added in Studio's Text panel (Text → Font → +). A family is fetched from Google once and stored, so device takes, cloud renders and text stickers all paint from the same files under the same name. Fonts are added in Studio; the API lists them.
Returns { data: [{ id, family, weights, fileCount, bytes, createdAt }] }, sorted by family. Put id on textOverlays[].font; absent = Inter. weights lists what Google had (400 and/or 700; a family without 700 gets a synthetic bold). An id the workspace no longer has renders in Inter.
Beyond overlays, renderSettings references two more asset kinds — both mintable over the API. Assets are workspace-scoped: they resolve in the workspace's renders (see Workspace-bound keys).
materialEdits.<name>.mapAssetId)POST returns 201 { "id": ... } — pass the id as materialEdits.<materialName>.mapAssetId to replace that material's base-color map. Re-POSTing identical bytes returns 200 with deduped: true and the existing id (content-sha dedup, per workspace). Quota: 100 textures / 500 MB per account; at the cap uploads return 429 limit_reached.
DELETE takes a texture out of the list and the quota. It is a soft delete, as for overlays: renders and saved edits that name the id keep their map, and re-POSTing the same bytes brings the texture back under the same id (200, deduped: true), with the name of the new upload.
Failure mode: a wrong or missing
mapAssetIdsilently degrades — the render keeps the model's original map (deliberate stale-edit tolerance). Verify the id (it's echoed inrenderSettings) and the material name (GET /v1/models/:id→materialNames, exact match).
envId)Custom HDRI environments use the pre-encoded gainmap triple — the exact output of gainmap-js encodeAndCompress (the same encoder Studio runs in the browser): sdr (WebP), gainmap (WebP), metadata (JSON), plus an optional small thumb WebP. There is no server-side HDR→gainmap encoder — encode your .hdr/.exr with gainmap-js, or upload it through Studio's Environment panel and reuse the id. Parts are validated on upload (WebP magic, JSON metadata); caps: 48 MB per part, 20 environments / 200 MB per account (429 limit_reached at the cap).
POST returns 201 { "id": ... } — pass it as envId in render settings, with envMode/envRotation/envExposure etc. controlling how it's used.
DELETE takes an environment out of the list and the quota. It is a soft delete, as for overlays: renders and saved scenes that name the id keep their lighting. GET /v1/assets/envs/:id answers 404 not_found for a deleted environment, like a second DELETE.
Both GET routes return each environment with urls for its files, so your own real-time viewer can light a model with the same environment a render uses:
{
"data": {
"id": "Qm4tZ8rK2xLp",
"name": "Loft",
"fileSize": 3481220,
"width": 4096,
"height": 2048,
"createdAt": "2026-11-14T02:22:53.532Z",
"urls": {
"sdr": "https://…/sdr.webp?X-Amz-…",
"gainmap": "https://…/gainmap.webp?X-Amz-…",
"metadata": "https://…/metadata.json?X-Amz-…",
"thumb": "https://…/thumb.webp?X-Amz-…"
},
"expiresIn": 4025
}
}
| Field | Description |
|---|---|
urls.sdr, urls.gainmap, urls.metadata |
The gainmap triple, in the order gainmap-js GainMapLoader.load([sdr, gainmap, metadata], …) takes it |
urls.thumb |
A small preview image; the SDR image when the environment was stored without a thumb |
expiresIn |
Seconds the URLs stay valid from now. Ask for a lifetime with ?expires= (default 3600, 60–604800); you get at least that much, short of the 7-day ceiling |
The URLs are presigned and point straight at the storage bucket, like file-url: no Authorization header, readable from any origin (a browser can load them as textures), and anyone holding one can read that file until it expires. Mint them on your server and hand them to the page; never ship the API key to a browser. Repeat calls inside a signing window (up to 30 minutes) return byte-identical URLs and the files never change, so a browser's HTTP cache holds them. If you keep a cache of your own, key it on the environment id, not on the URL.
Failure mode (asymmetric with textures): a bad
envIdhard-fails the render — the worker can't fetch the environment, the render errors withfailureCode: "env_download_failed", and the credits are refunded. Textures degrade silently; environments and overlay frames fail loudly (see Overlays).
Returns the authenticated user's account info and credit balance.
curl https://api.dx.gl/v1/account \
-H "Authorization: Bearer dxgl_sk_..."
{
"data": {
"id": "Ab3kF9x2qL1m",
"email": "[email protected]",
"credits": 100,
"paid": 100,
"free": 0,
"total": 100,
"scopes": ["read", "render"],
"workspace": { "id": "Wk7pQ2rT9sLa", "name": "Ann's workspace", "personal": true, "role": "owner" }
}
}
| Field | Type | Description |
|---|---|---|
credits |
integer | Spendable credit balance (unchanged; equals paid) |
paid |
integer | Ordinary render credits — the signup bonus and any purchases land here |
free |
integer | Legacy balance from a retired grant; 0 on accounts made today (the signup bonus and purchases are paid) |
total |
integer | paid + free — matches what /quote reports as available |
scopes |
array | The scopes granted to the token making this request |
workspace |
object | The workspace this key operates on: { id, name, personal, role }. A personal key names your personal workspace (personal: true); a bound key names the workspace it is bound to. role is the role the key acts with there (owner / manager / editor / viewer; always owner for a personal key). For a bound key the balances above are the workspace owner's pool — the one that funds this key's renders. Before 2026-11-22 a personal key answered null here and personal / role were absent. |
Estimate the credit cost for a set of renders before committing. Useful for agents and scripts that need to budget credits across multiple models.
{
"renders": [
{ "quality": "standard", "length": 12 },
{ "quality": "4k" },
{ "output": "dataset", "datasetQuality": "196x1024" }
]
}
Each item in the renders array accepts the cost-relevant render fields: quality, format, output, datasetQuality, stills (only its length prices), and length (video duration in seconds; defaults to 6). Two legacy aliases are also honored: videoLength (equivalent to length) and effect: "dataset" (equivalent to output: "dataset"). Video cost = tier rate × length; datasets are flat per set.
Response 200:
{
"data": {
"creditsRequired": 304,
"creditsAvailable": 500,
"sufficient": true,
"breakdown": [
{ "quality": "standard", "format": "h264", "length": 12, "credits": 48 },
{ "quality": "4k", "format": "h264", "length": 6, "credits": 96 },
{ "datasetQuality": "196x1024", "credits": 160 }
]
}
}
| Field | Type | Description |
|---|---|---|
creditsRequired |
integer | Total credits needed for all renders |
creditsAvailable |
integer | Current credit balance (paid + free) |
sufficient |
boolean | Whether the account has enough credits |
breakdown |
array | Per-item credit cost |
Maximum 100 items per quote request.
curl -X POST https://api.dx.gl/v1/quote \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"renders": [{"quality": "4k"}, {"quality": "4k"}, {"quality": "4k"}]}'
Read-only endpoints for discovering credit packs and reconciling spend. Purchasing itself happens in the web app (Stripe checkout), not over the API.
Lists the purchasable credit packs.
{
"data": [
{ "id": "…", "name": "1,000 credits", "credits": 1000, "priceCents": 7900, "stripePriceId": "price_…" }
]
}
Returns the caller's credit ledger (purchases, renders, refunds, grants), newest first, scoped to the token's account.
| Param | Type | Description |
|---|---|---|
limit |
integer | Max 100, default 50 |
offset |
integer | Pagination offset |
{
"data": [
{
"id": "…",
"createdAt": "2026-02-15T20:00:01.000Z",
"type": "purchase",
"credits": 1000,
"priceCents": 7900,
"source": "storefront",
"description": "1,000 credit pack",
"renderId": null
}
],
"meta": { "total": 12, "offset": 0, "limit": 50 }
}
type is one of purchase, render, refund, promo, referral,
admin_grant, signup_bonus, and on older entries the legacy unlock.
renderId is set for entries tied to a specific render, otherwise null.
No authentication required. Returns database connectivity status.
Video is charged per second of output (cost = rate × seconds, × fps/60 when fps is above 60); stills are charged per image (draft 1, share 1, standard 2, 4k 4 — see Stills); datasets are a flat cost per set:
quality |
Credits / sec (× format multiplier) |
|---|---|
draft |
1 |
share |
1 |
standard |
4 |
4k |
16 |
format |
Multiplier |
|---|---|
h264 (default) |
×1 |
hevc |
×1 |
prores422hq |
×2 |
prores4444 |
×4 |
pro (legacy alias, = 4k + prores4444) = 64.
New accounts include a 100-credit signup bonus, added to the regular credit balance, where it spends like purchased credits. Credits never expire.
Batch renders deduct credits atomically based on the sum of all items' quality costs. If there aren't enough credits, the entire batch fails.
When credits are exhausted, render requests return 402 with error code no_credits.
Legacy balances. Some older accounts still hold a legacy free balance (free on /v1/account); no account is given one today. When such an account's credits cannot cover a render and that balance can, the render is funded from it and carries isPreview: true. Set strictCredits: true in renderSettings to get 402 no_credits instead. On an account without such a balance strictCredits has no effect.
Requests are rate-limited per token account. When a limit is hit, the API
returns 429 with error code rate_limited and a Retry-After header (in
seconds) — honor it and retry. Current defaults (subject to tuning):
| Scope | Limit |
|---|---|
| All authenticated requests | 300 / minute |
POST /v1/models/ingest (URL fetches) |
20 / 10 minutes |
Batch endpoints make high throughput cheap within these limits — one
POST /v1/renders/batch call submits up to 100 renders.
Independent of request-rate limits, the following hard caps apply today:
| Limit | Value |
|---|---|
| Upload / ingest file size | 1 GB |
| Ingest download timeout | 45 s without progress (10 min absolute) |
| Overlay image size | 25 MB |
| Overlay assets per account | 100 |
Renders per batch (POST /v1/renders/batch) |
100 |
Items per quote (POST /v1/quote) |
100 |
List page size (limit) |
100 |
| Code | Status | Description |
|---|---|---|
unauthorized |
401 | Missing, invalid, or revoked token |
token_expired |
401 | Token has expired |
forbidden |
403 | Account suspended, or operating on a resource you don't own (e.g. deleting a system overlay) |
insufficient_scope |
403 | Token lacks required scope |
no_file |
400 | No file in upload request |
bad_request |
400 | Malformed request (e.g. no updatable fields in a PATCH, invalid overlay upload, invalid cursor/updatedSince, unknown asset param) |
invalid_format |
400 | File extension not accepted (.glb / .zip) |
invalid_url |
400 | Malformed URL |
invalid_url_scheme |
400 | Ingest URL must be http(s) |
url_error |
400 | Ingest URL could not be fetched |
download_timeout |
400 | Ingest download stalled (45 s) or exceeded the 10-minute ceiling |
url_required |
400 | Missing url field |
invalid_settings |
400 | Invalid renderSettings value |
invalid_length |
422 | Video length outside the allowed range for the tier |
invalid_fps |
422 | fps outside 12–120, or 4K + H.264 above 60 fps |
invalid_dims |
422 | width/height not both present, odd, outside 16–4096, area above 4K, ratio beyond 1:4..4:1, or sent for a dataset |
model_converting |
409 | The model's conversion to GLB has not finished: retry when ingestStatus is done |
conversion_failed |
422 | The model could not be converted: re-export it as GLB |
splat_unsupported |
422 | Traced stills or a dataset asked of a Gaussian splat |
scene_lights_unavailable |
422 | lights sent from a workspace where scene lights are not switched on |
traced_stills_stickers |
422 | Path-traced stills asked with a sticker that has a print finish or a relief (the model's saved stickers count) |
traced_stills_material |
422 | Path-traced stills asked with a material edit the tracer has no form for: wireframe, back faces only, or a changed env-map intensity (saved edits count) |
model_id_required |
400 | Missing modelId field |
file_too_large |
400 | File exceeds the 1 GB limit |
no_credits |
402 | No render credits remaining |
model_not_found |
404 | Model does not exist |
group_not_found |
404 | Group does not exist in this workspace (?group=, groupId, /v1/groups/:id, parentId) |
render_not_found |
404 | Render does not exist |
dataset_not_found |
404 | ZIP not available (render not done, or neither a dataset nor a stills render) |
not_found |
404 | Unknown endpoint, HLS asset not ready, or resource missing (e.g. overlay on DELETE) |
asset_not_found |
404 | Requested asset variant was not produced for this render (/download-url) |
rate_limited |
429 | Rate limit hit — honor the Retry-After header (see Rate Limits) |
render_started |
409 | Cancel refused — the worker already claimed the job |
render_in_flight |
409 | Delete refused — render is queued or in progress (cancel instead) |
group_not_empty |
409 | Delete refused — group still holds models, sub-groups or attachments (move or delete them first) |
renders_required |
400 | Missing or empty renders array |
too_many |
400 | Batch exceeds 100 renders |
upload_limit |
429 | Free upload limit reached |
limit_reached |
429 | Overlay asset cap (100) reached |
video_not_found |
404 | Video not yet available |
poster_not_found |
404 | Poster not yet available |
thumb_not_found |
404 | Thumbnail not yet available |
file_not_found |
404 | Model file not found in storage |
sha256_required |
400 | Missing sha256 field |
timeout |
408 | URL pre-flight (HEAD) timed out |
upload_failed |
varies | Upload could not be processed (message has detail). When the upload was fine and the render it asked for was refused, the refusal's own code is returned instead (invalid_length, splat_unsupported, …) |
ingest_failed |
varies | URL ingest failed (message has detail) |
internal |
500 | Internal server error |
# Upload a GLB model and start rendering
curl -X POST https://api.dx.gl/v1/models \
-H "Authorization: Bearer dxgl_sk_..." \
-F "[email protected]" \
-F 'renderSettings={"aspect":"16:9","bgColor":"#ffffff","length":6}'
# Upload a 3D scan (OBJ+MTL+textures in a ZIP)
curl -X POST https://api.dx.gl/v1/models \
-H "Authorization: Bearer dxgl_sk_..." \
-F "[email protected]" \
-F 'renderSettings={"aspect":"1:1","bgColor":"#ffffff","length":9}'
# Create a 4K render (16 credits/sec — default 6s = 96 credits)
curl -X POST https://api.dx.gl/v1/renders \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"modelId":"Ab3kF9x2qL1m","renderSettings":{"quality":"4k","aspect":"16:9","bgColor":"#ffffff"}}'
# Create a Pro render (ProRes 4444 with alpha, 64 credits/sec — default 6s = 384 credits)
curl -X POST https://api.dx.gl/v1/renders \
-H "Authorization: Bearer dxgl_sk_..." \
-H "Content-Type: application/json" \
-d '{"modelId":"Ab3kF9x2qL1m","renderSettings":{"quality":"pro","aspect":"16:9","bgColor":"#000000"}}'
# Check render status
curl https://api.dx.gl/v1/renders/Xz7pQ4w8nR2k \
-H "Authorization: Bearer dxgl_sk_..."
# Download the video when done
curl -o chair.mp4 https://api.dx.gl/v1/renders/Xz7pQ4w8nR2k/video \
-H "Authorization: Bearer dxgl_sk_..."
# Download all assets as a zip
curl -o chair.zip https://api.dx.gl/v1/renders/Xz7pQ4w8nR2k/bundle \
-H "Authorization: Bearer dxgl_sk_..."
import requests, time
API = "https://api.dx.gl/v1"
HEADERS = {"Authorization": "Bearer dxgl_sk_..."}
# Upload
with open("chair.glb", "rb") as f:
r = requests.post(f"{API}/models", headers=HEADERS,
files={"file": f},
data={"renderSettings": '{"aspect":"16:9","length":6}'})
render_id = r.json()["data"]["renderId"]
# Poll
while True:
r = requests.get(f"{API}/renders/{render_id}", headers=HEADERS)
status = r.json()["data"]["status"]
if status == "done": break
if status == "error": raise Exception("Render failed")
time.sleep(5)
# Download
r = requests.get(f"{API}/renders/{render_id}/video", headers=HEADERS)
with open("chair.mp4", "wb") as f:
f.write(r.content)
const fs = require('fs');
const API = 'https://api.dx.gl/v1';
const headers = { 'Authorization': 'Bearer dxgl_sk_...' };
// Upload (Node 20+: openAsBlob pairs with the built-in fetch/FormData —
// a ReadStream would be stringified by the built-in FormData, not streamed)
const form = new FormData();
form.append('file', await fs.openAsBlob('chair.glb'), 'chair.glb');
form.append('renderSettings', JSON.stringify({ aspect: '16:9', length: 6 }));
const upload = await fetch(API + '/models', { method: 'POST', headers, body: form });
const renderId = (await upload.json()).data.renderId;
// Poll
let status;
do {
await new Promise(r => setTimeout(r, 5000));
const res = await fetch(API + '/renders/' + renderId, { headers });
status = (await res.json()).data.status;
} while (status !== 'done' && status !== 'error');
// Download
const video = await fetch(API + '/renders/' + renderId + '/video', { headers });
fs.writeFileSync('chair.mp4', Buffer.from(await video.arrayBuffer()));