> ## Documentation Index
> Fetch the complete documentation index at: https://docs.splat-3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create your first 3D scene in 5 minutes.

# Quickstart

This guide walks you through creating a 3D scene from a video using the Splat3D API. By the end, you'll have a shareable 3D Gaussian Splat.

> [!NOTE]
>
> You'll need an API key. Create one from the [Splat3D dashboard](https://splat-3d.com/dashboard) under **Settings > API Keys**.

## Set your API key

```bash theme={null}
export SPLAT3D_API_KEY="s3d_your_key_here"
```

## Step 1: Create a scene

Create a scene and get a presigned upload URL. This tells Splat3D what you're uploading and how you want it processed.

Uploading a photo zip, an ARKit capture or a COLMAP model instead? [Supported inputs](https://docs.splat-3d.com/guides/supported-inputs.md) has the `content_type` and packaging for each.

```bash cURL theme={null}
# Keep the response: the next steps need its sceneId and uploadUrl (parsed with jq).
RESPONSE=$(curl -s -X POST https://api.splat-3d.com/v1/scenes \
  -H "Authorization: Bearer $SPLAT3D_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "My First Scene",
    "content_type": "video/mp4",
    "preset": "standard"
  }')
SCENE_ID=$(echo "$RESPONSE" | jq -r '.data.sceneId')
UPLOAD_URL=$(echo "$RESPONSE" | jq -r '.data.uploadUrl')
```

```python Python theme={null}
import os

import requests

SPLAT3D_API_KEY = os.environ["SPLAT3D_API_KEY"]

response = requests.post(
    "https://api.splat-3d.com/v1/scenes",
    headers={"Authorization": f"Bearer {SPLAT3D_API_KEY}"},
    json={
        "title": "My First Scene",
        "content_type": "video/mp4",
        "preset": "standard",
    },
)
data = response.json()["data"]
scene_id = data["sceneId"]
upload_url = data["uploadUrl"]
```

```javascript JavaScript theme={null}
const SPLAT3D_API_KEY = process.env.SPLAT3D_API_KEY;

const response = await fetch("https://api.splat-3d.com/v1/scenes", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${SPLAT3D_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    title: "My First Scene",
    content_type: "video/mp4",
    preset: "standard",
  }),
});
const { data } = await response.json();
const { sceneId, uploadUrl } = data;
```

**Response:**

```json theme={null}
{
  "data": {
    "sceneId": "a1b2c3d4e5f6",
    "uploadUrl": "https://..."
  },
  "meta": {
    "request_id": "..."
  }
}
```

## Step 2: Upload your video

Upload your video file directly to the presigned URL. The PUT goes straight
to cloud storage and bypasses the API entirely.

```bash theme={null}
curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: video/mp4" \
  --data-binary @walkthrough.mp4
```

> [!NOTE]
>
> **Upload size cap.** Uploads are capped at **5 GB** on every plan, and the
> upload URL lasts 24 hours. The size is checked
> authoritatively at `POST /v1/scenes/{id}/process` against the actual bytes
> in R2 — exceeding the cap returns `413 payload_too_large` before any
> credits are charged. See [Upload limits](https://docs.splat-3d.com/guides/upload-limits.md).

> [!TIP]
>
> Record at least 30 seconds of video, or take at least 20 photos all around the subject: `/process` refuses less with `422 source_unusable`, before charging. 360° video isn't supported yet, and is refused the same way. For best results, record a slow, steady walkthrough. Avoid fast movements and ensure good lighting. 30-60 seconds of footage typically produces great results.

## Step 3: Start processing

Once the upload completes, kick off the reconstruction pipeline.

```bash cURL theme={null}
curl -X POST https://api.splat-3d.com/v1/scenes/$SCENE_ID/process \
  -H "Authorization: Bearer $SPLAT3D_API_KEY"
```

```python Python theme={null}
requests.post(
    f"https://api.splat-3d.com/v1/scenes/{scene_id}/process",
    headers={"Authorization": f"Bearer {SPLAT3D_API_KEY}"},
)
```

```javascript JavaScript theme={null}
await fetch(`https://api.splat-3d.com/v1/scenes/${sceneId}/process`, {
  method: "POST",
  headers: { Authorization: `Bearer ${SPLAT3D_API_KEY}` },
});
```

## Step 4: Poll for completion

The pipeline takes about 8 minutes on `fast`, 15 on `standard`, 25 on `quality` and 45 on `ultra` (see [Quality Presets](https://docs.splat-3d.com/guides/presets.md)). Poll the scene status until it's `complete`.

```bash cURL theme={null}
curl https://api.splat-3d.com/v1/scenes/$SCENE_ID \
  -H "Authorization: Bearer $SPLAT3D_API_KEY"
```

```python Python theme={null}
import time

while True:
    response = requests.get(
        f"https://api.splat-3d.com/v1/scenes/{scene_id}",
        headers={"Authorization": f"Bearer {SPLAT3D_API_KEY}"},
    )
    data = response.json()["data"]
    pct = data["processing_pct"]  # null unless processing
    eta = data["eta_seconds"]  # an estimate; null unless processing
    print(f"Status: {data['status']}"
          + (f" ({pct}%)" if pct is not None else "")
          + (f", about {round(eta / 60)} min left" if eta is not None else ""))

    if data["status"] == "complete":
        break
    elif data["status"] in ("failed", "cancelled"):
        print("Processing failed:", data.get("processing_error"))
        break

    time.sleep(15)
```

```javascript JavaScript theme={null}
const poll = async () => {
  while (true) {
    const res = await fetch(
      `https://api.splat-3d.com/v1/scenes/${sceneId}`,
      { headers: { Authorization: `Bearer ${SPLAT3D_API_KEY}` } }
    );
    const { data } = await res.json();
    const pct = data.processing_pct; // null unless processing
    const eta = data.eta_seconds; // an estimate; null unless processing
    console.log(
      `Status: ${data.status}${pct === null ? "" : ` (${pct}%)`}` +
        (eta === null ? "" : `, about ${Math.round(eta / 60)} min left`)
    );

    if (data.status === "complete") return data;
    if (data.status === "failed" || data.status === "cancelled") {
      throw new Error(data.processing_error ?? "Scene did not complete");
    }

    await new Promise((r) => setTimeout(r, 15000));
  }
};
```

The response shape is a flat `SceneDetail` object — the same fields are always present, just with different values depending on state (`sceneDetailSchema` in `api/src/routes/schemas.ts`). `status` is the stored status, the same on every call; `processing_stage`, `processing_pct` and `eta_seconds` are `null` unless the scene is processing. `eta_seconds` is an estimate of the time left and can move either way between polls.

**Processing response** (while running):

```json theme={null}
{
  "data": {
    "id": "a1b2c3d4e5f6",
    "status": "training",
    "processing_stage": "training",
    "processing_pct": 65,
    "eta_seconds": 312,
    "processing_error": null,
    "num_gaussians": null,
    "viewer_url": null,
    "download_url": null,
    "format": null
  },
  "meta": { "request_id": "..." }
}
```

**Completed response:**

```json theme={null}
{
  "data": {
    "id": "a1b2c3d4e5f6",
    "status": "complete",
    "processing_stage": null,
    "processing_pct": null,
    "eta_seconds": null,
    "processing_error": null,
    "num_gaussians": 1940000,
    "ssim": 0.91,
    "psnr_holdout": 24.5,
    "ssim_holdout": 0.89,
    "preset": "standard",
    "training_time_seconds": 233.7,
    "viewer_url": "https://splat-3d.com/tour/a1b2c3d4e5f6",
    "download_url": "https://api.splat-3d.com/v1/scenes/a1b2c3d4e5f6/download",
    "format": "spz",
    "lod_meta_url": null
  },
  "meta": { "request_id": "..." }
}
```

> [!NOTE]
>
> Quality metrics (`psnr_holdout`, `ssim_holdout`) are measured on images
> held out of training, so they are populated only when
> `output.holdout_ratio` is above 0. `standard`, `quality` and `ultra`
> hold out 10% by default; `fast` holds out none, so its metrics are `null`.

## Step 5: Download the result

Download the reconstructed 3D model. By default you get [SPZ](https://docs.splat-3d.com/guides/output-formats.md#spz), a compact format native viewers load, or SOG for a scene without one; the `X-Splat-Format` header names the file sent. Add `?format=sog` for SOG (optimized for web) or `?format=ply` for the raw PLY file.

```bash cURL theme={null}
# Download SOG (web-optimized)
curl -L -o scene.sog \
  "https://api.splat-3d.com/v1/scenes/$SCENE_ID/download?format=sog" \
  -H "Authorization: Bearer $SPLAT3D_API_KEY"

# Download PLY (raw, for offline tools)
curl -L -o scene.ply \
  "https://api.splat-3d.com/v1/scenes/$SCENE_ID/download?format=ply" \
  -H "Authorization: Bearer $SPLAT3D_API_KEY"
```

> [!NOTE]
>
> The download endpoint answers `200` with the file itself, and only to the
> scene owner's API key: there is no presigned link to hand out. To share a
> scene, make it public (`PATCH /v1/scenes/{id}` with `{"is_public": true}`)
> and share its `viewer_url`. Use `-o <filename>` (not `-O`) so curl writes
> to a known path instead of trying to derive a name from the URL.

```python Python theme={null}
# Download SOG
response = requests.get(
    f"https://api.splat-3d.com/v1/scenes/{scene_id}/download?format=sog",
    headers={"Authorization": f"Bearer {SPLAT3D_API_KEY}"},
)
with open(f"scene-{scene_id}.sog", "wb") as f:
    f.write(response.content)
```

```javascript JavaScript theme={null}
const res = await fetch(
  `https://api.splat-3d.com/v1/scenes/${sceneId}/download?format=sog`,
  { headers: { Authorization: `Bearer ${SPLAT3D_API_KEY}` } }
);
const blob = await res.blob();
```

## Next steps

> [card] [Quality Presets](https://docs.splat-3d.com/guides/presets.md)
>
> Choose between fast previews and ultra-quality reconstructions.

> [card] [Training Parameters](https://docs.splat-3d.com/guides/training-parameters.md)
>
> Fine-tune the reconstruction pipeline for your specific use case.

> [card] [Output Formats](https://docs.splat-3d.com/guides/output-formats.md)
>
> Understand SOG vs PLY and when to use each.

> [card] [API Reference](https://docs.splat-3d.com/api-reference/overview.md)
>
> Full endpoint documentation with all request/response schemas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.