.spz format, from a text prompt or a 360° panorama. You can then render new views from cameras you place and rebuild the scene from them to fill in what the first pass could not see. Use it for game levels, virtual sets and backgrounds behind your 3D characters.
How scenes work
- Session. Every request carries a
sessionIdyou choose: 1–128 letters, digits,_or-, scoped to your account. A session holds one scene and its image batches. - One task at a time. A session runs one task at a time. Submitting while one is
queuedorprocessinganswers409, before anything is charged, with that task’s ID inerror.details.running_task_id. - Batch. A set of posed images. Creating a scene makes an
initialbatch, each generate call makes ageneratedbatch. TheirbatchIds are what generate and reconstruct take inreferenceBatchIds. - Camera. Poses are 4×4 camera-to-world matrices (
c2w). Every view in a batch comes with itsc2w, so the easiest new camera is an existing one, moved.
scn_ task, which you poll with GET /v1/scenes/{task_id}.
Parameters
Send JSON (up to 1 MiB).pano and custom-pano also accept multipart/form-data to upload files.
URLs must be public
http(s) addresses. The API reference covers coordinate frames and every validation rule.
Price
You pay 1 credit ($0.01) per view, each time the model runs. A panorama counts as 6 views.
The script below creates a scene (6 credits), generates one perspective view (1) and reconstructs from both batches (6 + 1 = 7, assuming the panorama batch holds its usual 6 views): 14 credits ($0.14) in all. Credits are reserved at submit and refunded in full unless the task finishes
ready. The task’s credits field shows what it holds.
If your balance is short, the submit answers 402 INSUFFICIENT_CREDITS and nothing is queued.
Build, extend and reconstruct
The script creates a scene from a prompt, savesscene.spz and panorama.png, generates a view from the first camera moved 0.3 units sideways, then reconstructs and saves scene-v2.spz. It needs no input files.
prompt and quality with "panoramaUri": "https://example.com/courtyard-360.jpg", or upload the file:
Get the result
Each submit answers with a task inqueued (with queuePosition) or already processing:
GET /v1/scenes/{task_id} every 5 seconds until status is ready, failed or cancelled. A ready result holds:
Each
outputBatch.views[] entry has the image url, its c2w and intrinsic. Every URL is signed for 3 hours; read the task again for fresh ones, and download what you keep soon after the task finishes. Scenes belong to your account, so any of its API keys can read them.
The .spz opens in any SPZ Gaussian-splat viewer. The Viggle Splat Engine also loads it: the web package places it behind a character, and the Unity package imports it as a static capture.
If something fails
409on submit: the session is busy. Wait forerror.details.running_task_id, then submit again.429 RATE_LIMITEDon submit: the credit reservation gate is busy. Retry with backoff.- Task
failedwithINVALID_REQUEST: the model rejected the input, for example a batch from another session. Fix it first. - Task
failedwithPROCESSING_FAILED, orcancelled: submit the same request again. Failed and cancelled tasks are refunded. 404on poll: wrong ID, a task from another account, or past retention. This endpoint uses the codeINVALID_REQUESTfor it.
Next steps
3D characters
Put a rigged character in the scene.
Limits and retention
How long results and links last.
API reference
Cameras, projection, field of view and seed.