Marble 2 beta
TypeScript quickstart
Turn a photo into a new viewpoint with Atlas. Run this on your server with Node.js 24 and a Developer API key.
For CLI installation, the bundled SKILL.md, and agent usage, see CLI.
Read How To Use Atlas before choosing model inputs or combining tasks. For coordinate calculations, use Cameras and posed images.
1. Install
Install the latest tag of the public
TypeScript client.
Create .env with WLT_API_KEY=your_key_here and add .env to .gitignore.
2. Generate a view
Save as generate.ts. The sample photo of a torii gate is by
Daniel Erlandson on Pexels.
3. See the result
Open the printed URL to see the generated image. The camera moves 0.25 metres along world X in the estimated scene. Metric scale is predicted, so physical distances are approximate.
For a web app, run generation in a backend job and return its status to the browser. Save operation IDs to resume polling and reuse an idempotency key for retries of the same submission. A timeout stops local waiting; it does not cancel the server task. See How To Use Atlas for camera controls and depth output.
For CPU processing of depth with Three.js, apply the EXR row mapping before unprojecting or matching image pixels.