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

# Retrain a scene

> Process a scene's source again as a new scene (a version), at the tier `quality_tier` or `preset` names, standard when neither is sent. `id` and `scene_id` name the new scene; the source scene is left as it is, running or not. Each request makes another version. A retrain refused before any charge keeps no new version; after a `502` the new version stays, failed and refunded.



## OpenAPI

````yaml https://api.splat-3d.com/openapi.json post /v1/scenes/{id}/retrain
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/{id}/retrain:
    post:
      tags:
        - Scenes
      summary: Retrain a scene
      description: >-
        Process a scene's source again as a new scene (a version), at the tier
        `quality_tier` or `preset` names, standard when neither is sent. `id`
        and `scene_id` name the new scene; the source scene is left as it is,
        running or not. Each request makes another version. A retrain refused
        before any charge keeps no new version; after a `502` the new version
        stays, failed and refunded.
      operationId: retrainScene
      parameters:
        - schema:
            type: string
            description: Scene ID
            example: a1b2c3d4e5f6
          required: true
          name: id
          in: path
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetrainSceneBody'
      responses:
        '200':
          description: Retraining started, as a new scene.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetrainSceneResponse'
        '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'
        '402':
          description: >-
            `insufficient_credits`: your balance doesn't cover this launch.
            Nothing was charged. After `/process` the scene stays `uploading`:
            add credits and call `/process` again. After `/retrain` no new
            version is kept.
          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'
        '404':
          description: Scene not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            Scene cannot be retrained in its current state, or its last failure
            would repeat (`retry_blocked`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '413':
          description: >-
            `payload_too_large`: the scene's source file exceeds the 5.0 GB
            upload limit. No new version was created and nothing was charged.
          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: >-
            `source_unusable`: the scene's source file won't make a usable
            scene: it is empty, a video under 30 seconds, a 360° video, a photo
            upload that isn't a zip, or a zip with fewer than 20 JPEG or PNG
            photos (5 for a COLMAP model). `details` names the rule. No new
            version was created and nothing was charged. Create a new scene with
            a usable file.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            `queue_full`: as many of your scenes are processing as your plan
            allows at once. Nothing was charged, and `meta` holds `limit` and
            `current`. After `/process` the scene stays `uploading`: call
            `/process` again once one finishes. After `/retrain` no new version
            is kept, unless the response carries no `Retry-After`: then check
            `GET /v1/scenes` before sending it again. `quota_exceeded`: the
            monthly quota is used up; `meta` holds `period`, `limit` and
            `field`. After `/retrain` no new version is kept. `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: 120 with
                `queue_full`, 60 with `rate_limited`. Not sent with
                `quota_exceeded`.
              schema:
                type: integer
                example: 120
            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'
        '502':
          description: >-
            `upstream_error`: the GPU backend refused the launch, or the capture
            data could not be stored. The charge was refunded. Repeating the
            same `/process` request returns this saved failure.
          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:
    RetrainSceneBody:
      type: object
      properties:
        quality_tier:
          type: string
          enum:
            - fast
            - standard
            - pro
            - ultra
          description: >-
            The tier to run at, in pricing's names (`pro` runs the `quality`
            preset). Standard when neither this nor `preset` is sent.
          example: pro
        preset:
          type: string
          enum:
            - fast
            - standard
            - quality
            - ultra
          description: >-
            The tier to run at, in create's preset names. Sent with
            `quality_tier`, both must name the same tier.
          example: quality
      additionalProperties: false
    RetrainSceneResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              description: The new scene, a version of the source. Poll it.
              example: f6e5d4c3b2a1
            scene_id:
              type: string
              description: Same as `id`.
              example: f6e5d4c3b2a1
            source_scene_id:
              type: string
              description: The scene retrained, left as it was.
              example: a1b2c3d4e5f6
            retraining:
              type: boolean
            quality_tier:
              type: string
              description: The tier the new scene runs at, in pricing's names.
              example: pro
          required:
            - id
            - scene_id
            - source_scene_id
            - retraining
            - quality_tier
        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.