Skip to main content
JST-2 builds an explorable 3D scene, a Gaussian splat in .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.
Scene fields are camelCase. Unlike the rest of V1, the scene endpoints use sessionId, panoramaUri, referenceBatchIds, targetC2w and so on, in requests and responses. Unknown fields are rejected with 400, so session_id will not work.

How scenes work

  • Session. Every request carries a sessionId you 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 queued or processing answers 409, before anything is charged, with that task’s ID in error.details.running_task_id.
  • Batch. A set of posed images. Creating a scene makes an initial batch, each generate call makes a generated batch. Their batchIds are what generate and reconstruct take in referenceBatchIds.
  • Camera. Poses are 4×4 camera-to-world matrices (c2w). Every view in a batch comes with its c2w, so the easiest new camera is an existing one, moved.
Every call is asynchronous. It answers right away with a 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, saves scene.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.
To start from your own panorama, replace prompt and quality with "panoramaUri": "https://example.com/courtyard-360.jpg", or upload the file:

Get the result

Each submit answers with a task in queued (with queuePosition) or already processing:
Poll 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

  • 409 on submit: the session is busy. Wait for error.details.running_task_id, then submit again.
  • 429 RATE_LIMITED on submit: the credit reservation gate is busy. Retry with backoff.
  • Task failed with INVALID_REQUEST: the model rejected the input, for example a batch from another session. Fix it first.
  • Task failed with PROCESSING_FAILED, or cancelled: submit the same request again. Failed and cancelled tasks are refunded.
  • 404 on poll: wrong ID, a task from another account, or past retention. This endpoint uses the code INVALID_REQUEST for 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.