> ## 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.

# Create a scene

> Create a new scene and get a presigned upload URL for the source file.



## OpenAPI

````yaml https://api.splat-3d.com/openapi.json post /v1/scenes
openapi: 3.1.0
info:
  title: Splat3D API
  version: 1.8.0
  description: Turn photos and videos into interactive 3D Gaussian Splat scenes.
servers:
  - url: https://api.splat-3d.com
    description: Production
security: []
paths:
  /v1/scenes:
    post:
      tags:
        - Scenes
      summary: Create a scene
      description: Create a new scene and get a presigned upload URL for the source file.
      operationId: createScene
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSceneBody'
      responses:
        '201':
          description: Scene created with presigned upload URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSceneResponse'
        '400':
          description: >-
            `invalid_input`: a path, query, header or body value is invalid.
            When it fails the schema, `error.details` lists one `{field,
            message}` per problem and `error.message` joins them.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            `insufficient_scope`: the API key lacks the `write:scenes` scope,
            which keys created as Write or All carry. The request was refused
            before it read or changed any scene, quota or credit balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '415':
          description: >-
            The request has a body that isn't sent as `Content-Type:
            application/json`. `curl -d` sends form encoding unless you add that
            header. Nothing was created, claimed or charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Parameter out of range for the chosen tier. `error.details` lists
            each violation as {field, value, allowed, tier, hint}.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            `quota_exceeded`: the monthly scene creation quota is used up.
            `meta` holds `period`, `limit` and `field`. `rate_limited`: more
            than 300 requests, or 30 create, `/process` and `/retrain` requests,
            this minute, counted per user. The request was refused before it
            read or changed any scene, quota or credit balance. Wait
            `Retry-After` seconds, then send it again. `meta.limit` and
            `X-RateLimit-Limit` name the limit that refused.
          headers:
            Retry-After:
              description: Seconds to wait before sending the request again.
              schema:
                type: integer
                example: 60
            X-RateLimit-Limit:
              description: >-
                Requests a minute the limit that refused allows. Every `/v1`
                response carries it, naming its route's limit.
              schema:
                type: integer
                example: 300
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            `internal_error`: an unexpected failure on our side. Contact support
            with `meta.request_id`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: >-
            Temporarily unavailable, e.g. a database blip. Not an answer about
            your key or scene. No `Retry-After`: this operation doesn't dedupe
            repeats, and a repeated create or `/retrain` makes another scene.
            Check `GET /v1/scenes` before sending it again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateSceneBody:
      type: object
      properties:
        title:
          type:
            - string
            - 'null'
          maxLength: 200
          example: My scene
        address:
          type:
            - string
            - 'null'
          maxLength: 500
          example: 123 Main St
        content_type:
          type: string
          example: video/mp4
        file_size:
          type: integer
          minimum: 0
          example: 52428800
        preset:
          type: string
          enum:
            - fast
            - standard
            - quality
            - ultra
            - custom
          example: standard
        training_model:
          type: string
          enum:
            - gsplat
          example: gsplat
        training_tier:
          type: string
          enum:
            - fast
            - standard
            - quality
            - pro
            - hd
            - ultra
          description: >-
            Legacy alias of `preset`, read only when `preset` is absent. `pro`
            and `hd` mean `quality`.
        sfm:
          type: object
          additionalProperties: {}
        training:
          type: object
          additionalProperties: {}
        output:
          type: object
          additionalProperties: {}
        enable_lod:
          type: boolean
          description: >-
            Checked against the tier, not kept. Send `enable_lod` in the
            `/process` body to get level-of-detail chunks.
        webhook_url:
          type: string
          maxLength: 2048
          format: uri
          pattern: ^[Hh][Tt][Tt][Pp][Ss]:\/\/
          description: >-
            https URL to receive a webhook when scene processing completes or
            fails.
          example: https://example.com/webhooks/splat
        webhook_secret:
          type: string
          maxLength: 256
          description: Secret for HMAC-SHA256 webhook signature verification.
      additionalProperties: false
    CreateSceneResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            scene_id:
              type: string
              description: The new scene.
              example: a1b2c3d4e5f6
            id:
              type: string
              description: Same as `scene_id`.
              example: a1b2c3d4e5f6
            upload_url:
              type: string
              format: uri
              description: 'Presigned URL: `PUT` the source file here, then call `/process`.'
              example: https://r2.dev/upload?...
            sceneId:
              type: string
              description: Same as `scene_id`. Kept for older clients.
              example: a1b2c3d4e5f6
              deprecated: true
            uploadUrl:
              type: string
              format: uri
              description: Same as `upload_url`. Kept for older clients.
              example: https://r2.dev/upload?...
              deprecated: true
          required:
            - scene_id
            - id
            - upload_url
            - sceneId
            - uploadUrl
        meta:
          type: object
          properties:
            request_id:
              type: string
              format: uuid
          required:
            - request_id
      required:
        - data
        - meta
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code. One of: `invalid_input`,
                `invalid_grant`, `source_missing`, `unauthorized`,
                `insufficient_credits`, `forbidden`, `insufficient_scope`,
                `not_found`, `conflict`, `retry_blocked`, `payload_too_large`,
                `source_unusable`, `quota_exceeded`, `queue_full`,
                `rate_limited`, `internal_error`, `upstream_error`,
                `service_unavailable`. More may be added, so treat an unknown
                code by its HTTP status.
              example: not_found
            message:
              type: string
              example: Scene not found.
            details:
              type: array
              items:
                type: object
                additionalProperties: {}
              description: >-
                Structured detail, absent on most errors. A request that fails
                validation (400 `invalid_input`) lists one `{field, message}`
                per problem. A parameter outside the tier's range (422) lists
                `{field, value, allowed, tier, hint}`; `source_unusable` names
                the rule that failed.
              example:
                - field: iterations
                  value: 15000
                  allowed:
                    min: 3000
                    max: 10000
                  tier: standard
                  hint: iterations=15000 requires the quality tier or higher.
          required:
            - code
            - message
        meta:
          type: object
          properties:
            request_id:
              type: string
              format: uuid
              example: 550e8400-e29b-41d4-a716-446655440000
            period:
              type: string
              description: '`quota_exceeded`: the month whose quota is used up.'
              example: 2026-10
            limit:
              type: integer
              description: >-
                `quota_exceeded`: the monthly limit. `queue_full`: how many
                scenes may process at once. `rate_limited`: the requests a
                minute the limit that refused allows.
              example: 100
            field:
              type: string
              description: >-
                `quota_exceeded`: the quota used up, `scenes_created` or
                `scenes_processed`.
              example: scenes_created
            current:
              type: integer
              description: '`queue_full`: how many of your scenes are processing now.'
              example: 2
          required:
            - request_id
      required:
        - error
        - meta
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key in format: s3d_...'

````

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