{
  "openapi": "3.1.1",
  "info": {
    "title": "Voice & Lip-sync API",
    "description": "Text to speech, voice cloning, lip-sync and video processing for any clip.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Lip-sync"
    },
    {
      "name": "Text to speech"
    },
    {
      "name": "Voice cloning"
    },
    {
      "name": "Processes"
    }
  ],
  "paths": {
    "/v1/galaxy/playground/lip-sync": {
      "get": {
        "operationId": "list-lip-sync-jobs",
        "parameters": [
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal` lists only the jobs created by, or assigned to, the member who owns the API key. `org` (default) lists the whole organization's. A role limited to its own work always gets `personal`.",
            "schema": {
              "enum": [
                "personal",
                "org"
              ],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "How many of the newest jobs to return. Default 24, at most 100.",
            "schema": {
              "type": "number",
              "examples": [
                24
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The jobs, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LipSyncResponseDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List lip-sync jobs",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's newest lip-sync jobs, newest first: 24 by default, up to 100 with `limit`. No paging. List entries carry `outputUrl` but not `videoUrl` or `audioUrl`.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "description": "Re-time the lips in a video to new speech (`multipart/form-data`): send the `video` and the `audio` files, or pick them from your assets with `videoAssetId` and `audioAssetId`. The length is measured from the audio (else the video) and charged before anything starts. Returns straight away with the job `RUNNING` and the `credits` charged; poll Get a lip-sync job until it is `COMPLETED` or `FAILED`.",
        "operationId": "start-a-lip-sync",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateLipSyncMultipartDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The job was started. It is `RUNNING`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LipSyncResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `A project name is required.`\n- `A video file is required.` / `An audio file is required.`\n- `We couldn't read this file's length`: neither the audio nor the video could be measured.\n- `Lip-sync model \"<model>\" is turned off for this organization. Enable its provider in Settings → Provider Preference.`\n- `Unknown lip-sync model \"<model>\".`\n- `No <vendor> API key is set for this organization. Add one in Settings → Voice & Lipsync.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the measured length, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "This `requestId` was already used (`This lip-sync was already started. Please wait for it to finish.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "A file is too large (`Lip-sync takes a video up to 1000 MB and an audio file up to 100 MB.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The render could not be started (`Could not start the lip-sync. Please try again.`). The job is marked failed and the credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Start a lip-sync",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the job starts, per second of the measured length, at the rate of the job's model. When the render is done the charge is adjusted to the rendered length (never more than twice the start charge). Refunded in full if the render fails, including when the video is blocked by content moderation. Deleting the job while it renders keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Lip sync (lipsync-2) | Rendering a lip-synced video on lipsync-2 in the video playground. Charged per second of rendered output. | 750 credits per minute |\n| Lip sync (lipsync-2-pro) | Rendering a lip-synced video on lipsync-2-pro in the video playground. Charged per second of rendered output. | 1200 credits per minute |\n| Lip sync (sync-3) | Rendering a lip-synced video on sync-3 in the video playground. Charged per second of rendered output. | 2000 credits per minute |\n| Lip sync (latentsync) | Rendering a lip-synced video on latentsync in the video playground. Charged per second of rendered output. | 300 credits per minute |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/{id}": {
      "get": {
        "operationId": "get-a-lip-sync-job",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the lip-sync job.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LipSyncResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No lip-sync job with this ID in your organization (`Lip-sync job not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a lip-sync job",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One lip-sync job, with links to play its output and its inputs. Poll it after Start a lip-sync until `status` is `COMPLETED`, `FAILED` or `TERMINATED`. A render can take many minutes; every 10 to 30 seconds is enough.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/{id}/download-url": {
      "post": {
        "operationId": "get-a-lip-sync-download-url",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the lip-sync job.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A download link for the video.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No lip-sync job with this ID in your organization (`Lip-sync job not found`). Or the job has no video yet (`This lip-sync job has no video yet.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a lip-sync download URL",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A short-lived link to download the lip-synced video of a `COMPLETED` job. Each call is recorded in your organization's audit log.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/{id}/retry": {
      "post": {
        "description": "Render a job again from its stored video and audio, keeping its ID: retry a `FAILED` job, or redo a `COMPLETED` one. A `COMPLETED` job keeps its current video until the new render succeeds. Not allowed while the job is still rendering. Returns the job `RUNNING` with the `credits` charged; poll it as after Start a lip-sync.",
        "operationId": "re-run-a-lip-sync",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the lip-sync job.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The render was started again. The job is `RUNNING`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LipSyncResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- `This lip-sync is still rendering.`\n- `The original video/audio is no longer available to re-run.`\n- `Lip-sync model \"<model>\" is turned off for this organization. Enable its provider in Settings → Provider Preference.`\n- `Unknown lip-sync model \"<model>\".`\n- `No <vendor> API key is set for this organization. Add one in Settings → Voice & Lipsync.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the render, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No lip-sync job with this ID in your organization (`Lip-sync job not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The job is already being re-run (`This is already being re-run`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The render could not be started again (`Could not restart the lip-sync. Please try again.`). The job is marked failed and the credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Re-run a lip-sync",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:create`. An API key acts with the role of the member who created it.\n\n**Credits:** A re-run is a new render: charged again when it starts, at the rate of the job's model, for the length of the previous render (or the stored files, measured again). Adjusted and refunded like a new job.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Lip sync (lipsync-2) | Rendering a lip-synced video on lipsync-2 in the video playground. Charged per second of rendered output. | 750 credits per minute |\n| Lip sync (lipsync-2-pro) | Rendering a lip-synced video on lipsync-2-pro in the video playground. Charged per second of rendered output. | 1200 credits per minute |\n| Lip sync (sync-3) | Rendering a lip-synced video on sync-3 in the video playground. Charged per second of rendered output. | 2000 credits per minute |\n| Lip sync (latentsync) | Rendering a lip-synced video on latentsync in the video playground. Charged per second of rendered output. | 300 credits per minute |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/{id}/save-to-assets": {
      "post": {
        "description": "Copy the lip-synced video of a `COMPLETED` job into your organization's assets. Without `folderId` it goes to the `playground/lip-sync/output` folder. Every call saves a new version.",
        "operationId": "save-a-lip-sync-to-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the lip-sync job.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePlaygroundOutputToAssetsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The video was saved to assets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveLipSyncToAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The job has no video yet (`This lip-sync has no generated video to save yet.`), or `folderId` is not a folder you can save into: a project or task folder (`Files can only be saved into folders in the organization drive`) or a system folder (`\"<name>\" is a system folder — files can't be saved into it`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No lip-sync job with this ID in your organization (`Lip-sync job not found`). Or no folder with this `folderId` (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The video could not be read or saved (`Could not read the generated video. Please try again.`, `This video is too large to save to assets.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save a lip-sync to assets",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/models": {
      "get": {
        "operationId": "list-lip-sync-models",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The models.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlaygroundLipSyncModelOptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List lip-sync models",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The lip-sync models of the vendors enabled for your organization. Use a model whose `available` is `true` as `model` when you price or start a lip-sync. Each model has its own price; see Start a lip-sync.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/quote": {
      "post": {
        "description": "What a lip-sync of a given length would be charged on a model, and how many credits your organization has. Nothing is charged. Start a lip-sync measures the files itself, so its charge can differ if the length you pass here is not the length of the audio.",
        "operationId": "price-a-lip-sync",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LipSyncQuoteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The price and your balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LipSyncQuoteResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`durationSeconds` is missing, not a number or 0 (`We couldn't read this file's length`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a lip-sync",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/lip-sync/upload/presign": {
      "post": {
        "operationId": "get-a-lip-sync-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLipSyncUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentUploadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty or over its limit, or it is not a video (`.mp4`, `.mov`, `.webm`, `.mkv`, `.avi`, `.m4v`) or audio file (`.mp3`, `.wav`, `.m4a`, `.ogg`, `.aac`, `.flac`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The member asked for 60 upload URLs in the last hour, or has 5 GB of uploads not yet used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a lip-sync upload URL",
        "tags": [
          "Lip-sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.lip_sync:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For a large video (up to 1000 MB) or audio file (up to 100 MB). Returns a presigned `uploadUrl`: `PUT` the file to it with exactly `size` bytes and the given `headers`, within 10 minutes. Then start the lip-sync with `videoUploadKey` / `audioUploadKey` set to `objectKey`. The file never passes through this API. An upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/tts/generate": {
      "post": {
        "description": "Turn the text of one saved speech card into audio with the voice you choose. Save the card first with Save a session. The call returns straight away with `status: RUNNING`; poll Get a session until the card is `COMPLETED` (its `outputUrl` plays the audio) or `FAILED`. Generating a card again replaces its audio and is charged again.",
        "operationId": "generate-speech",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateSpeechDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generation started. Poll the session for the result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateSpeechResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `Text to synthesize is empty.`\n- `A speech card takes at most 5,000 characters — this one is <n>. Split it into smaller cards.`\n- `This text-to-speech provider is not enabled for your organization.`\n- `This voice is not available to your organization. Pick a voice from the voice library.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the estimated length, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The card was never saved in your organization (`This card has not been saved yet. Wait a moment and try again, or reload the page.`) or has been deleted (`This card was deleted. Reload the page to see the session as it is now.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The card is already generating (`This card is already being generated.`), or this `requestId` was already used (`This speech was already generated from this request. Please wait for it to finish.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The text was blocked by content moderation (`This text can’t be turned into speech: it was flagged as <category>. Nothing was charged.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 422,
                      "message": "Unprocessable Entity"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Generation could not be started (`Speech generation is unavailable right now. Please try again.`). The card is marked failed and the credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Generate speech",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when generation starts, per second of speech, estimated from the length of the text and its language. When the audio is ready the charge is adjusted to its real length (never more than twice the estimate). Refunded in full if generation fails. Deleting the card or its session while it generates keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text to speech | Synthesizing speech in the video playground. Charged per second of generated audio. | 120 credits per minute |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/tts/sessions/{id}/save-to-assets": {
      "post": {
        "description": "Copy every generated clip of a session into your organization's assets, one audio file per clip. Without `folderId` the clips go to the `playground/text-to-speech/output` folder. A clip saved before is saved again as a new version (`<name>_v2.wav`, `_v3`, …). Only clips that are `COMPLETED` are saved. Returns how many were saved.",
        "operationId": "save-a-session-to-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the session (the `sessionId` you saved it under).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePlaygroundOutputToAssetsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many clips were saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveTtsSessionToAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`folderId` is not a folder you can save into: a project or task folder (`Files can only be saved into folders in the organization drive`) or a system folder (`\"<name>\" is a system folder — files can't be saved into it`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No session with this ID in your organization (`Session not found`), or no folder with this `folderId` (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save a session to assets",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/video-process": {
      "get": {
        "operationId": "list-processes",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Default 1.",
            "schema": {
              "type": "string",
              "examples": [
                "1"
              ]
            }
          },
          {
            "name": "pageSize",
            "required": false,
            "in": "query",
            "description": "Entries per page, from 1 to 50. Default 10.",
            "schema": {
              "type": "string",
              "examples": [
                "10"
              ]
            }
          },
          {
            "name": "type",
            "required": false,
            "in": "query",
            "description": "Only this kind of process.",
            "schema": {
              "type": "string",
              "enum": [
                "tts",
                "voice_clone",
                "lip_sync"
              ],
              "examples": [
                "tts"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only processes whose name contains this text.",
            "schema": {
              "type": "string",
              "examples": [
                "narration"
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Sort order. Default `date_desc` (latest activity first).",
            "schema": {
              "type": "string",
              "enum": [
                "date_desc",
                "date_asc",
                "name_asc",
                "name_desc"
              ],
              "examples": [
                "date_desc"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal` lists only the processes created by, or assigned to, the member who owns the API key. `org` (default) lists the whole organization's. A role limited to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only processes with this status: `DRAFT`, `RUNNING`, `COMPLETED`, `FAILED` or `TERMINATED`.",
            "schema": {
              "type": "string",
              "enum": [
                "DRAFT",
                "RUNNING",
                "COMPLETED",
                "FAILED",
                "TERMINATED"
              ],
              "examples": [
                "COMPLETED"
              ]
            }
          },
          {
            "name": "createdAt",
            "required": false,
            "in": "query",
            "description": "Only processes created in a date range: JSON with ISO dates, `{\"gte\":\"…\",\"lte\":\"…\"}` (either end may be left out). An invalid value is ignored.",
            "schema": {
              "type": "string",
              "examples": [
                "{\"gte\":\"2026-09-01T00:00:00.000Z\",\"lte\":\"2026-09-30T23:59:59.999Z\"}"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of processes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoProcessListDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List processes",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.video_process:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The history of text-to-speech sessions, voice clones and lip-sync jobs in your organization, one entry per session or job, latest activity first. Filter by `type`, `status`, name (`search`) and creation date (`createdAt`). Paginated with `page` and `pageSize`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/video-process/{id}": {
      "get": {
        "operationId": "get-a-process",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the clip: a text-to-speech card ID, or the `id` of a voice-clone or lip-sync entry in List processes (inside `clips`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The clip.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoProcessDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No clip with this ID in your organization (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a process",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.video_process:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One clip: a text-to-speech card, or the entry of a voice clone or lip-sync job.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "rename-a-process",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the clip: a text-to-speech card ID, or the `id` of a voice-clone or lip-sync entry in List processes (inside `clips`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameVideoSessionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The clip was renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundIdResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No clip with this ID in your organization (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Rename a process",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.video_process:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the name of one clip: a text-to-speech card, or a voice-clone or lip-sync entry. Renaming an entry does not rename the cloned voice or the lip-sync job itself.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/video-process/{id}/download-url": {
      "post": {
        "operationId": "get-a-process-download-url",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the clip: a text-to-speech card ID, or the `id` of a voice-clone or lip-sync entry in List processes (inside `clips`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A download link for the output.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No clip with this ID in your organization (`Process not found`). Or the clip has no output yet (`This process has nothing to download yet.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a process download URL",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.video_process:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A short-lived link to download the output of one clip that is `COMPLETED`: a text-to-speech card's audio or a lip-sync video. Each call is recorded in your organization's audit log.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/video-process/session/{sessionId}": {
      "get": {
        "operationId": "get-a-session",
        "parameters": [
          {
            "name": "sessionId",
            "required": true,
            "in": "path",
            "description": "ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The session.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoProcessGroupDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No session with this ID in your organization (`Session not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a session",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A text-to-speech session with all its cards in `clips`. Poll it after Generate speech until the card is `COMPLETED` (its `outputUrl` plays the audio) or `FAILED`; every few seconds is enough. Keep `revision` for your next save.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "save-a-session",
        "parameters": [
          {
            "name": "sessionId",
            "required": true,
            "in": "path",
            "description": "ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSessionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The session as saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoProcessGroupDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, for example a card `id` that is not a UUID, a name over 255 characters or a card text over 5,000 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The session changed since `baseRevision` (another save landed first). Nothing was saved. The body carries the current `session`: apply your changes to it and save again with its `revision`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaleSessionErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save a session",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create or update a text-to-speech session and its speech cards. The first call with a new `sessionId` (a UUID you choose) creates the session. Each card has a UUID you choose; send the whole list of cards every time, in reading order. A card must be saved before you can generate its speech. Saving is free, but changing the text, language or voice of a `COMPLETED` card clears its audio, and generating it again is charged again. A card that is generating keeps its text and is not deleted by a save. Returns the session as saved, with its new `revision`: pass it as `baseRevision` next time.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "rename-a-session",
        "parameters": [
          {
            "name": "sessionId",
            "required": true,
            "in": "path",
            "description": "ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameVideoSessionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Whether the session was renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameSessionResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Rename a session",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the name of a text-to-speech session. An unknown `sessionId` is not an error: the response says `updated: 0`.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/video-process/session/{sessionId}/export-urls": {
      "post": {
        "operationId": "get-session-download-urls",
        "parameters": [
          {
            "name": "sessionId",
            "required": true,
            "in": "path",
            "description": "ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The download links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionExportUrlsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No session with this ID in your organization (`Session not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get session download URLs",
        "tags": [
          "Text to speech"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.tts:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Links to download the generated audio of every card in a session, valid for 5 minutes. Each call is recorded in your organization's audit log.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/voice-clone": {
      "get": {
        "operationId": "list-cloned-voices",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The cloned voices, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VoiceCloneResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List cloned voices",
        "tags": [
          "Voice cloning"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.voice_clone:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Cloned voices your organization can use, newest first: its own and those shared from other organizations in its group (`ownedByOrg: false`). Up to 200 voices; no paging.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "description": "Create a voice from audio samples of one speaker (`multipart/form-data`): upload 1 to 5 files in `samples`, or pick audio from your assets with `sampleAssetIds`. Returns straight away (202) with the voice `processing`. Poll Get a cloned voice until it is `ready`, then use its `provider` and `providerVoiceId` in Generate speech.",
        "operationId": "clone-a-voice",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateVoiceCloneMultipartDto"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Cloning started. The voice is `processing`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceCloneResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `A voice name is required.`\n- `At least one audio sample is required.`\n- `A voice clone takes at most 5 audio samples.`\n- `This voice-cloning provider is not enabled for your organization.`\n- `Your ElevenLabs account has no free voice slots. Delete a cloned voice you no longer use and try again.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for a voice clone, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The shared ElevenLabs voice pool is full (`The shared voice pool is full — try later or add your own ElevenLabs key.`), or this `requestId` was already used (`This voice clone was already started. Please wait for it to finish.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "A sample is larger than 100 MB (`Each audio sample must be 100 MB or smaller.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Cloning could not be started (`Voice cloning could not be started. Please try again.`). The voice is marked failed and the credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Clone a voice",
        "tags": [
          "Voice cloning"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.voice_clone:create`. An API key acts with the role of the member who created it.\n\n**Credits:** A flat price per voice, charged when cloning starts. Refunded if cloning fails. Deleting the voice while it is still cloning keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Instant voice clone | Creating one cloned voice from a sample in the video playground. Charged per cloned voice. | 500 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/voice-clone/{id}": {
      "get": {
        "operationId": "get-a-cloned-voice",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the cloned voice.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5b9e2d4c-1a3f-4c7e-8b6d-2f1e0a9c8b7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The voice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceCloneResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No cloned voice with this ID in your organization or its group (`Cloned voice not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a cloned voice",
        "tags": [
          "Voice cloning"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.voice_clone:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One cloned voice. Poll it after Clone a voice until `status` is `ready` or `failed`; every few seconds is enough.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/voice-clone/{id}/retry": {
      "post": {
        "description": "Clone a `failed` voice again from the samples it was created with, keeping its ID. Returns straight away (202) with the voice `processing`; poll it as after Clone a voice.",
        "operationId": "retry-a-voice-clone",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the cloned voice.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5b9e2d4c-1a3f-4c7e-8b6d-2f1e0a9c8b7d"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cloning started again. The voice is `processing`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceCloneResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The voice is not `failed` (`Only a failed voice clone can be retried.`), its samples are gone (`The original audio samples are no longer available to retry.`), or your ElevenLabs account has no free voice slot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for a voice clone, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "The voice was shared from another organization in your group (`This cloned voice is shared from another organization in your group — only that organization can retry it.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No cloned voice with this ID in your organization or its group (`Cloned voice not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The voice is already being retried (`This voice clone is already being retried.`), or the shared ElevenLabs voice pool is full.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Retry a voice clone",
        "tags": [
          "Voice cloning"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.voice_clone:create`. An API key acts with the role of the member who created it.\n\n**Credits:** A retry is a new attempt: charged again when it starts, and refunded if it fails again.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Instant voice clone | Creating one cloned voice from a sample in the video playground. Charged per cloned voice. | 500 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/voice-clone/upload/presign": {
      "post": {
        "operationId": "get-a-voice-sample-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentUploadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty or over 100 MB, or it is not an audio file (`.mp3`, `.wav`, `.m4a`, `.ogg`, `.aac`, `.flac`, `.webm`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The member asked for 60 upload URLs in the last hour, or has 5 GB of uploads not yet used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a voice sample upload URL",
        "tags": [
          "Voice cloning"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.voice_clone:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For an audio sample up to 100 MB. Returns a presigned `uploadUrl`: `PUT` the file to it with exactly `size` bytes and the given `headers`, within 10 minutes. Then clone the voice with `sampleUploadKeys` listing the `objectKey`s. The file never passes through this API. An upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "CreateLipSyncMultipartDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the job.",
            "examples": [
              "Launch video — Hindi"
            ]
          },
          "language": {
            "type": "string",
            "description": "BCP-47 code of the audio, such as `hi-IN`. The engine does not use it; it is stored on the job.",
            "examples": [
              "hi-IN"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "sync-3",
              "lipsync-2-pro",
              "lipsync-2",
              "latentsync"
            ],
            "description": "Model to render with, from List lip-sync models. It must be available to your organization. Omit it for the default (`lipsync-2` when available).",
            "examples": [
              "lipsync-2"
            ]
          },
          "numberOfSpeakers": {
            "type": "string",
            "description": "Number of speakers in the video, as a number in a string. Stored on the job; the engine does not use it yet.",
            "examples": [
              "1"
            ]
          },
          "emotionDetection": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Emotion detection, `true` or `false`. Stored on the job; the engine does not use it yet.",
            "examples": [
              "false"
            ]
          },
          "videoAssetId": {
            "type": "string",
            "description": "ID of a video in your organization's assets to use instead of uploading `video`.",
            "examples": [
              "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
            ]
          },
          "audioAssetId": {
            "type": "string",
            "description": "ID of an audio file in your organization's assets to use instead of uploading `audio`.",
            "examples": [
              "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e"
            ]
          },
          "videoUploadKey": {
            "type": "string",
            "description": "The `objectKey` from Get a lip-sync upload URL (`kind: video`), once the `PUT` has finished. Use it instead of `video` for a large file: the bytes never pass through this API.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c7e2a-9d3f-4e5a-8b6c-1d2e3f4a5b6c.mp4"
            ]
          },
          "videoFileName": {
            "type": "string",
            "description": "The name of the video uploaded with `videoUploadKey`.",
            "examples": [
              "interview.mp4"
            ]
          },
          "audioUploadKey": {
            "type": "string",
            "description": "The `objectKey` from Get a lip-sync upload URL (`kind: audio`), once the `PUT` has finished. Use it instead of `audio`.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/9d3f4e5a-8b6c-1d2e-3f4a-5b6c4b1c7e2a.wav"
            ]
          },
          "audioFileName": {
            "type": "string",
            "description": "The name of the audio file uploaded with `audioUploadKey`.",
            "examples": [
              "dub-es.wav"
            ]
          },
          "durationSeconds": {
            "type": "string",
            "description": "Length in seconds, as a number in a string. Accepted but not used: the server measures the audio (else the video) and charges for that; when neither can be measured the job is refused with 400.",
            "examples": [
              "42.5"
            ]
          },
          "requestId": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you create for this request. It becomes the ID of the job. A retry with the same `requestId` is refused with 409, so the video is never rendered and charged twice.",
            "examples": [
              "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
            ]
          },
          "video": {
            "contentMediaType": "application/octet-stream",
            "description": "The video with the face to lip-sync, up to 1000 MB. Required unless you pass `videoUploadKey` or `videoAssetId`."
          },
          "audio": {
            "contentMediaType": "application/octet-stream",
            "description": "The new speech to sync the lips to, up to 100 MB. Required unless you pass `audioUploadKey` or `audioAssetId`."
          }
        },
        "required": [
          "name",
          "language"
        ]
      },
      "CreateLipSyncUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes; send the name again when you use the upload, so the job shows it.",
            "examples": [
              "interview.mp4"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "video/mp4"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              104857600
            ]
          },
          "kind": {
            "type": "string",
            "description": "Which input this file is: the `video` or the `audio`.",
            "enum": [
              "video",
              "audio"
            ],
            "examples": [
              "video"
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size",
          "kind"
        ]
      },
      "CreateStagedUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "CreateVoiceCloneMultipartDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the new voice, shown in the voice library.",
            "examples": [
              "Priya — narrator"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia"
            ],
            "description": "Provider that clones the voice. It must be enabled for your organization. Microsoft voices cannot be cloned.",
            "examples": [
              "elevenlabs"
            ]
          },
          "language": {
            "type": "string",
            "description": "BCP-47 code of the samples' language. Optional: a cloned voice can speak every language its provider supports.",
            "examples": [
              "en-US"
            ]
          },
          "gender": {
            "type": "string",
            "description": "Gender of the voice, shown in the voice library.",
            "examples": [
              "female"
            ]
          },
          "description": {
            "type": "string",
            "description": "Description of the voice. Sent to the provider and shown in the voice library.",
            "examples": [
              "Warm, calm female voice for product videos."
            ]
          },
          "model": {
            "type": "string",
            "description": "Informational only; not used by the server.",
            "examples": [
              "eleven_multilingual_v2"
            ]
          },
          "removeBackgroundNoise": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "`true` to remove background noise from the samples before cloning. Default `false`.",
            "examples": [
              "false"
            ]
          },
          "sampleAssetIds": {
            "type": "string",
            "description": "Comma-separated IDs of audio files in your organization's assets to use as samples, instead of or as well as uploading them. Counted with the uploads against the limit of 5.",
            "examples": [
              "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d,1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e"
            ]
          },
          "sampleUploadKeys": {
            "type": "string",
            "description": "Comma-separated `objectKey`s from Get a voice sample upload URL, once each `PUT` has finished. Use them instead of uploading `samples` here: the bytes never pass through this API. Up to 5 samples in all, counting uploads and `sampleAssetIds`.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c7e2a-9d3f-4e5a-8b6c-1d2e3f4a5b6c.wav"
            ]
          },
          "requestId": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you create for this request. It becomes the ID of the new voice. A retry with the same `requestId` is refused with 409, so the voice is never cloned and charged twice.",
            "examples": [
              "5b9e2d4c-1a3f-4c7e-8b6d-2f1e0a9c8b7d"
            ]
          },
          "samples": {
            "type": "array",
            "items": {
              "contentMediaType": "application/octet-stream"
            },
            "description": "One to 5 audio samples of the speaker, each up to 100 MB (send the field once per file). Required unless you pass `sampleUploadKeys` or `sampleAssetIds`."
          }
        },
        "required": [
          "name",
          "provider"
        ]
      },
      "DocumentUploadUrlResponseDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the raw file bytes to it with the same `Content-Type` as the format (for example `application/vnd.openxmlformats-officedocument.presentationml.presentation` for `.pptx`) and exactly `size` bytes. Valid for `expiresInSeconds`.",
            "examples": [
              "https://storage.example.com/0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c….pptx?X-Amz-Signature=…"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "Storage key of the upload. Send it as `objectKey` to Translate a document (or Count billable words) once the `PUT` has finished.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c7e2a-9d3f-4e5a-8b6c-1d2e3f4a5b6c.pptx"
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "Largest file this route accepts, in bytes (500 MB).",
            "examples": [
              524288000
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds until `uploadUrl` expires.",
            "examples": [
              600
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers to send with the `PUT`, exactly as given: the URL is signed over them, so another `Content-Type` is refused (403).",
            "examples": [
              {
                "Content-Type": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
              }
            ]
          }
        },
        "required": [
          "uploadUrl",
          "objectKey",
          "maxBytes",
          "expiresInSeconds",
          "headers"
        ]
      },
      "DownloadUrlResponseDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Presigned link to download the file. It works for a short time (about 15 minutes); request a new one when it has expired.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/lip-sync/2c4e6a8b/output.mp4?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          }
        },
        "required": [
          "url"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "GenerateSpeechDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text to speak, up to 5,000 characters. Send the text of the card named in `cardId`; the card's pronunciation rules are applied to it before synthesis.",
            "examples": [
              "Welcome to our quarterly product update."
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "BCP-47 code of the speech, such as `hi-IN`. The voice must support it. Also used to estimate the length that is charged.",
            "examples": [
              "hi-IN"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia",
              "microsoft"
            ],
            "description": "Provider the voice belongs to. It must be enabled for your organization. A cloned voice uses the `provider` of the clone.",
            "examples": [
              "elevenlabs"
            ]
          },
          "voiceId": {
            "type": "string",
            "description": "The provider's voice ID: a voice from the voice catalog, or `providerVoiceId` of a cloned voice that is `ready`. A voice your organization may not use is refused with 400.",
            "examples": [
              "JBFqnCBsd6RMkjVDRZzb"
            ]
          },
          "sessionId": {
            "type": "string",
            "description": "The session the card belongs to (the `sessionId` you saved it under with Save a session).",
            "format": "uuid",
            "examples": [
              "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
            ]
          },
          "sessionName": {
            "type": "string",
            "description": "Name of the session, stored on the clip for display.",
            "examples": [
              "Product update narration"
            ]
          },
          "cardId": {
            "type": "string",
            "description": "ID of the speech card to generate, as saved with Save a session. The audio is stored on that card. Returns 404, with nothing charged, when the card was never saved or has been deleted.",
            "format": "uuid",
            "examples": [
              "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
            ]
          },
          "voiceName": {
            "type": "string",
            "description": "Display name of the voice, stored on the clip.",
            "examples": [
              "George"
            ]
          },
          "voiceGender": {
            "type": "string",
            "description": "Gender of the voice, stored on the clip for display.",
            "examples": [
              "male"
            ]
          },
          "voiceType": {
            "type": "string",
            "description": "Type of the voice, stored on the clip for display (for example a marker for a cloned voice).",
            "examples": [
              "premade"
            ]
          },
          "emotion": {
            "type": "string",
            "description": "Tone of delivery, such as `Happy`. Providers that do not support it ignore it.",
            "examples": [
              "Neutral"
            ]
          },
          "requestId": {
            "type": "string",
            "description": "A UUID you create for this request. Send a new one for every generation; a retry that sends the same one again is refused with 409, so a speech clip is never generated and charged twice.",
            "format": "uuid",
            "examples": [
              "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
            ]
          }
        },
        "required": [
          "text",
          "targetLanguage",
          "provider",
          "voiceId",
          "cardId"
        ]
      },
      "GenerateSpeechResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of this generation run.",
            "examples": [
              "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
            ]
          },
          "cardId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The card being generated (the `cardId` you sent).",
            "examples": [
              "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "Always `RUNNING`. Poll Get a session until the card is `COMPLETED` or `FAILED`.",
            "examples": [
              "RUNNING"
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits charged now, estimated from the length of the text. Adjusted to the real audio length when the clip is ready; refunded if generation fails.",
            "examples": [
              24
            ]
          }
        },
        "required": [
          "id",
          "cardId",
          "status",
          "credits"
        ]
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              402
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "examples": [
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "You don't have enough credits to start this. It needs 120; you have 45."
            ]
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "examples": [
              120
            ]
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              45
            ]
          },
          "owed": {
            "type": "number",
            "description": "Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      },
      "LipSyncQuoteDto": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "sync-3",
              "lipsync-2-pro",
              "lipsync-2",
              "latentsync"
            ],
            "description": "Model to price. Omit it for your organization's default model.",
            "examples": [
              "sync-3"
            ]
          },
          "durationSeconds": {
            "type": "number",
            "minimum": 0,
            "description": "Length of the render in seconds: the length of the audio you will send. Rounded to the nearest whole second (at least 1). Must be more than 0.",
            "examples": [
              42.5
            ]
          }
        },
        "required": [
          "durationSeconds"
        ]
      },
      "LipSyncQuoteResponseDto": {
        "type": "object",
        "properties": {
          "credits": {
            "type": "number",
            "description": "Credits the render would be charged when it starts.",
            "examples": [
              538
            ]
          },
          "balance": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              12000
            ]
          },
          "seconds": {
            "type": "number",
            "description": "Whole seconds it was priced for.",
            "examples": [
              43
            ]
          },
          "model": {
            "type": "string",
            "description": "The model it was priced for.",
            "examples": [
              "lipsync-2"
            ]
          }
        },
        "required": [
          "credits",
          "balance",
          "seconds",
          "model"
        ]
      },
      "LipSyncResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the job.",
            "examples": [
              "Launch video — Hindi"
            ]
          },
          "model": {
            "type": "string",
            "description": "Model the job renders with.",
            "examples": [
              "lipsync-2"
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "BCP-47 code of the audio. Null on jobs created before it was recorded.",
            "examples": [
              "hindi_india"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while rendering, `COMPLETED` when the video is ready, `FAILED` (credits refunded; see `error`) or `TERMINATED` (stopped by the user).",
            "examples": [
              "COMPLETED"
            ]
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Length of the render in seconds: as measured at start, then the rendered length once done.",
            "examples": [
              43
            ]
          },
          "numberOfSpeakers": {
            "type": [
              "number",
              "null"
            ],
            "description": "The `numberOfSpeakers` you sent, if any.",
            "examples": [
              1
            ]
          },
          "emotionDetection": {
            "type": "boolean",
            "description": "The `emotionDetection` you sent.",
            "examples": [
              false
            ]
          },
          "outputUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short-lived link (about 15 minutes) to play the lip-synced video. Only when `status` is `COMPLETED`. To download it, use Get a lip-sync download URL.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/lip-sync/2c4e6a8b/output.mp4?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short-lived link to the input video. Returned by the single-job routes; null in List lip-sync jobs.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/lip-sync/2c4e6a8b/video.mp4?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          },
          "audioUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short-lived link to the input audio. Returned by the single-job routes; null in List lip-sync jobs.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/lip-sync/2c4e6a8b/audio.wav?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          },
          "videoName": {
            "type": [
              "string",
              "null"
            ],
            "description": "File name of the input video.",
            "examples": [
              "launch-video.mp4"
            ]
          },
          "audioName": {
            "type": [
              "string",
              "null"
            ],
            "description": "File name of the input audio.",
            "examples": [
              "launch-hindi.wav"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the job failed, in plain words. Null unless `FAILED`.",
            "examples": [
              null
            ]
          },
          "saveState": {
            "type": "string",
            "enum": [
              "none",
              "current",
              "stale"
            ],
            "description": "`none`: never saved to assets. `current`: saved and matches the current video. `stale`: saved, but the video was rendered again since.",
            "examples": [
              "none"
            ]
          },
          "savedVersion": {
            "type": "number",
            "description": "How many versions were saved to assets (0 = never).",
            "examples": [
              0
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits charged for the render this request started. Only in the responses of Start a lip-sync and Re-run a lip-sync.",
            "examples": [
              538
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the job was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "model",
          "status",
          "emotionDetection",
          "createdAt"
        ]
      },
      "PlaygroundIdResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the record the request acted on.",
            "examples": [
              "2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a"
            ]
          }
        },
        "required": [
          "id"
        ]
      },
      "PlaygroundLipSyncModelOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "sync-3",
              "lipsync-2-pro",
              "lipsync-2",
              "latentsync"
            ],
            "description": "Model ID. Pass it as `model`.",
            "examples": [
              "lipsync-2"
            ]
          },
          "label": {
            "type": "string",
            "description": "Name of the model, with its vendor and output quality.",
            "examples": [
              "lipsync-2 · Sync Labs · HD"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "syncso",
              "fal"
            ],
            "description": "Vendor the model renders on.",
            "examples": [
              "syncso"
            ]
          },
          "available": {
            "type": "boolean",
            "description": "True when your organization can use the model: a key for its vendor is set (your organization's, its parent's or the platform's).",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "value",
          "label",
          "provider",
          "available"
        ]
      },
      "RenameSessionResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The session ID you sent.",
            "examples": [
              "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
            ]
          },
          "updated": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "description": "1 when the session was renamed; 0 when there is no session with this ID in your organization.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "id",
          "updated"
        ]
      },
      "RenameVideoSessionDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "The new name.",
            "examples": [
              "Product update narration"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "SaveLipSyncToAssetsResponseDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new file in your assets.",
            "examples": [
              "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
            ]
          },
          "alreadySaved": {
            "type": "boolean",
            "description": "Always `false`: every save files a new version. Kept so the response shape stays the same.",
            "examples": [
              false
            ]
          },
          "version": {
            "type": "number",
            "description": "Version number of this save. Version 1 is named `<name>.mp4`, later ones `<name>_v2.mp4`, `_v3`, …",
            "examples": [
              1
            ]
          },
          "versioned": {
            "type": "boolean",
            "description": "True when an earlier version is still in assets, so this save added a new version.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "assetId",
          "alreadySaved",
          "version",
          "versioned"
        ]
      },
      "SavePlaygroundOutputToAssetsDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "description": "Drive folder to save into. Pass the organization id for the drive root (\"My Drive\"). Must belong to the caller’s organization and sit outside system folders (the feature’s own default folder is allowed). Omit to use the default folder.",
            "examples": [
              "123e4567-e89b-12d3-a456-426614174000"
            ]
          }
        }
      },
      "SaveTtsSessionToAssetsResponseDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Generated clips in the session that were considered.",
            "examples": [
              3
            ]
          },
          "saved": {
            "type": "number",
            "description": "Clips saved to assets for the first time.",
            "examples": [
              2
            ]
          },
          "versioned": {
            "type": "number",
            "description": "Clips saved again as a new version (`<name>_v2.wav`, `_v3`, …). The earlier versions stay in assets.",
            "examples": [
              1
            ]
          },
          "upToDate": {
            "type": "number",
            "description": "Always 0: every save files a new version. Kept so the response shape stays the same.",
            "examples": [
              0
            ]
          },
          "failed": {
            "type": "number",
            "description": "Clips that could not be saved. Try again later.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "total",
          "saved",
          "versioned",
          "upToDate",
          "failed"
        ]
      },
      "SessionCardDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you create for the card. Keep it: you pass it as `cardId` to Generate speech, and send it again on later saves.",
            "examples": [
              "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the card (the clip).",
            "examples": [
              "Intro"
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 5000,
            "description": "Text the card speaks, up to 5,000 characters.",
            "examples": [
              "Welcome to our quarterly product update."
            ]
          },
          "language": {
            "type": "string",
            "description": "BCP-47 code of the speech, such as `hi-IN`.",
            "examples": [
              "hi-IN"
            ]
          },
          "voice": {
            "description": "The voice the card speaks with.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionCardVoiceDto"
              }
            ]
          },
          "emotion": {
            "type": "string",
            "description": "Tone of delivery. Default `Neutral`.",
            "examples": [
              "Neutral"
            ]
          },
          "pronunciations": {
            "description": "Pronunciation rules for this card, up to 100: each `match` in the text is spoken as its `alias`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionCardPronunciationDto"
            }
          },
          "playbackRate": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 2,
            "description": "Playback speed, from 0.5 to 2 (default 1). Applied when the clip is saved to assets; it does not change the generated audio, so changing it costs nothing.",
            "examples": [
              1
            ]
          },
          "volume": {
            "type": "number",
            "minimum": 0,
            "maximum": 1.5,
            "description": "Volume, from 0 to 1.5 (default 1). Applied when the clip is saved to assets, like `playbackRate`.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "SessionCardPronunciationDto": {
        "type": "object",
        "properties": {
          "match": {
            "type": "string",
            "description": "Text to look for in the card, up to 200 characters.",
            "examples": [
              "Vitra"
            ]
          },
          "alias": {
            "type": "string",
            "description": "What to say instead, up to 200 characters.",
            "examples": [
              "Veetra"
            ]
          }
        },
        "required": [
          "match",
          "alias"
        ]
      },
      "SessionCardVoiceDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia",
              "microsoft"
            ],
            "description": "Provider the voice belongs to.",
            "examples": [
              "elevenlabs"
            ]
          },
          "voiceId": {
            "type": "string",
            "description": "The provider's voice ID (for a cloned voice, its `providerVoiceId`).",
            "examples": [
              "JBFqnCBsd6RMkjVDRZzb"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the voice.",
            "examples": [
              "George"
            ]
          },
          "gender": {
            "type": "string",
            "description": "Gender of the voice.",
            "examples": [
              "male"
            ]
          },
          "voiceType": {
            "type": "string",
            "description": "Type of the voice, for display.",
            "examples": [
              "premade"
            ]
          }
        },
        "required": [
          "provider",
          "voiceId"
        ]
      },
      "SessionExportUrlDto": {
        "type": "object",
        "properties": {
          "cardId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the card.",
            "examples": [
              "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
            ]
          },
          "url": {
            "type": "string",
            "description": "Link to download the audio of the card, valid for 5 minutes. The audio is as generated, without `playbackRate` or `volume` applied.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/tts/8d7c6b5a/output.wav?X-Amz-Expires=300&X-Amz-Signature=…"
            ]
          }
        },
        "required": [
          "cardId",
          "url"
        ]
      },
      "SessionExportUrlsResponseDto": {
        "type": "object",
        "properties": {
          "urls": {
            "description": "A download link for every card that has audio, in reading order. Empty when no card has been generated.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionExportUrlDto"
            }
          }
        },
        "required": [
          "urls"
        ]
      },
      "StaleSessionErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              409
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `Conflict`.",
            "examples": [
              "Conflict"
            ]
          },
          "code": {
            "type": "string",
            "description": "Always `TTS_SESSION_STALE`.",
            "examples": [
              "TTS_SESSION_STALE"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened.",
            "examples": [
              "This session was changed in another tab or by a teammate since this editor loaded it."
            ]
          },
          "session": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VideoProcessGroupDto"
              }
            ],
            "description": "The session as it is now. Apply your changes to it and save again with its `revision`."
          }
        },
        "required": [
          "statusCode",
          "error",
          "code",
          "message",
          "session"
        ]
      },
      "UpsertSessionDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the session. Default `Untitled`.",
            "examples": [
              "Product update narration"
            ]
          },
          "cards": {
            "description": "Every card of the session, in reading order. New IDs create cards; known IDs update them. Changing the text, language or voice of a `COMPLETED` card clears its audio. Cards left out are deleted only when you send `baseRevision`, and a card that is generating is never deleted or re-worded by a save.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionCardDto"
            }
          },
          "voiceSettings": {
            "type": "object",
            "additionalProperties": true,
            "description": "ElevenLabs tuning per voice, keyed `<provider>:<voiceId>`: `voiceConsistency` (0, 0.5 or 1), `voiceMatch` (0 to 1), `styleEmphasis` (0 to 1) and `enhancedVoiceMatch` (boolean). Every card that uses the voice shares it. Values out of range are adjusted.",
            "examples": [
              {
                "elevenlabs:JBFqnCBsd6RMkjVDRZzb": {
                  "voiceConsistency": 0.5,
                  "voiceMatch": 0.75,
                  "styleEmphasis": 0,
                  "enhancedVoiceMatch": true
                }
              }
            ]
          },
          "baseRevision": {
            "type": "string",
            "format": "date-time",
            "description": "The `revision` of the session you last read or saved. The save applies only if the session is still at that revision; otherwise it returns 409 with the current session. Send it on every save after the first; without it, no card is ever deleted.",
            "examples": [
              "2026-10-04T09:30:00.123Z"
            ]
          }
        },
        "required": [
          "cards"
        ]
      },
      "VideoProcessAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Member ID.",
            "examples": [
              "7f6e5d4c-3b2a-4190-8f7e-6d5c4b3a2918"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the member.",
            "examples": [
              "Asha Rao"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL of the member.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image"
        ]
      },
      "VideoProcessDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the clip: the card ID for text to speech, the process ID for a voice clone or lip-sync.",
            "examples": [
              "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "tts",
              "voice_clone",
              "lip_sync"
            ],
            "description": "What produced the clip.",
            "examples": [
              "tts"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the clip.",
            "examples": [
              "Intro"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`DRAFT` (saved, not generated yet), `RUNNING`, `COMPLETED`, `FAILED` or `TERMINATED` (stopped by the user). A clip stuck in `RUNNING` far past its time limit is reported as `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "BCP-47 code of the clip.",
            "examples": [
              "hi-IN"
            ]
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Length of the generated audio or video in seconds.",
            "examples": [
              4.2
            ]
          },
          "refId": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a voice clone or lip-sync: the ID of the cloned voice or lip-sync job. Null for text to speech.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "For text to speech, the card as saved: `text`, `voice`, `emotion`, `pronunciations`, `playbackRate` and `volume`. For a voice clone or lip-sync, internal details that may change; do not depend on them.",
            "examples": [
              {
                "text": "Welcome to our quarterly product update.",
                "voice": {
                  "provider": "elevenlabs",
                  "voiceId": "JBFqnCBsd6RMkjVDRZzb",
                  "name": "George",
                  "gender": "male",
                  "voiceType": "premade"
                },
                "emotion": "Neutral",
                "pronunciations": [],
                "playbackRate": 1,
                "volume": 1
              }
            ]
          },
          "outputUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short-lived link (about 15 minutes) to play the generated audio or video, when `status` is `COMPLETED`. To download, use a download URL route.",
            "examples": [
              "{{STORAGE_BASE_URL}}/playground/tts/8d7c6b5a/output.wav?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          },
          "saveState": {
            "type": "string",
            "enum": [
              "none",
              "current",
              "stale"
            ],
            "description": "Text to speech only. `none`: never saved to assets. `current`: saved and matches the current audio. `stale`: saved, but generated again since.",
            "examples": [
              "none"
            ]
          },
          "savedVersion": {
            "type": "number",
            "description": "Text to speech only. How many versions were saved to assets (0 = never).",
            "examples": [
              0
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the clip was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "status",
          "createdAt"
        ]
      },
      "VideoProcessGroupDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Session ID for text to speech; the clip ID for a voice clone or lip-sync.",
            "examples": [
              "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c"
            ]
          },
          "isSession": {
            "type": "boolean",
            "description": "True for a text-to-speech session.",
            "examples": [
              true
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the session or job.",
            "examples": [
              "Product update narration"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "tts",
              "voice_clone",
              "lip_sync"
            ],
            "description": "What kind of process it is.",
            "examples": [
              "tts"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "Overall status: `RUNNING` if any clip is, else `FAILED` if any failed, else `COMPLETED` if any is done, else `TERMINATED` if any was stopped, else `DRAFT`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "BCP-47 code shared by every clip; null when they differ.",
            "examples": [
              "hindi_india"
            ]
          },
          "clipCount": {
            "type": "number",
            "description": "Number of clips.",
            "examples": [
              3
            ]
          },
          "totalDurationSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Total length of the clips in seconds.",
            "examples": [
              12.6
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "For a session, when it was last changed; otherwise when the job was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "clips": {
            "description": "The clips: the cards of a session in reading order, or the one clip of a job.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VideoProcessDto"
            }
          },
          "voiceSettings": {
            "type": "object",
            "additionalProperties": true,
            "description": "Text to speech only. ElevenLabs tuning per voice, keyed `<provider>:<voiceId>`: `voiceConsistency` (0, 0.5 or 1), `voiceMatch` (0 to 1), `styleEmphasis` (0 to 1) and `enhancedVoiceMatch` (boolean). Every card that uses the voice shares it. Values out of range are adjusted.",
            "examples": [
              {
                "elevenlabs:JBFqnCBsd6RMkjVDRZzb": {
                  "voiceConsistency": 0.5,
                  "voiceMatch": 0.75,
                  "styleEmphasis": 0,
                  "enhancedVoiceMatch": true
                }
              }
            ]
          },
          "revision": {
            "type": "string",
            "format": "date-time",
            "description": "Text to speech only. The revision of the session; send it as `baseRevision` on your next save.",
            "examples": [
              "2026-10-04T09:30:00.123Z"
            ]
          },
          "assignees": {
            "description": "Members assigned to the process. Only in List processes.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VideoProcessAssigneeDto"
            }
          }
        },
        "required": [
          "id",
          "isSession",
          "name",
          "type",
          "status",
          "clipCount",
          "createdAt",
          "clips"
        ]
      },
      "VideoProcessListDto": {
        "type": "object",
        "properties": {
          "items": {
            "description": "One entry per session or job.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VideoProcessGroupDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Entries across all pages.",
            "examples": [
              42
            ]
          },
          "page": {
            "type": "number",
            "description": "This page number.",
            "examples": [
              1
            ]
          },
          "totalPages": {
            "type": "number",
            "description": "Number of pages (at least 1).",
            "examples": [
              5
            ]
          }
        },
        "required": [
          "items",
          "total",
          "page",
          "totalPages"
        ]
      },
      "VoiceCloneResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the cloned voice.",
            "examples": [
              "5b9e2d4c-1a3f-4c7e-8b6d-2f1e0a9c8b7d"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the voice.",
            "examples": [
              "Priya — narrator"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia"
            ],
            "description": "Provider the voice was cloned with.",
            "examples": [
              "elevenlabs"
            ]
          },
          "providerVoiceId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The provider's ID for the voice. Pass it as `voiceId` (with `provider`) to Generate speech. Null until the clone is `COMPLETED`.",
            "examples": [
              "pNInz6obpgDQGcFmaJgB"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` while cloning, `COMPLETED` once it can be used, `FAILED` if cloning failed (the credits are refunded; you can retry it).",
            "examples": [
              "COMPLETED"
            ]
          },
          "isActive": {
            "type": "boolean",
            "description": "False when the provider no longer holds the voice. It is created again automatically the next time you use it.",
            "examples": [
              true
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "playground",
              "translate-video"
            ],
            "description": "Product the voice was cloned in. Every cloned voice can be used in every product.",
            "examples": [
              "playground"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the voice.",
            "examples": [
              "Warm, calm female voice for product videos."
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language given for the samples, if any.",
            "examples": [
              "en"
            ]
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gender of the voice, if given.",
            "examples": [
              "female"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the voice was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "previewUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short-lived link to a preview of the voice: the provider's preview, or else the first sample (only for the organization that cloned it). Null when there is neither, and on the responses of Clone a voice and Retry a voice clone.",
            "examples": [
              "{{STORAGE_BASE_URL}}/voices/5b9e2d4c/preview.mp3?X-Amz-Expires=900&X-Amz-Signature=…"
            ]
          },
          "ownedByOrg": {
            "type": "boolean",
            "description": "True when your organization cloned the voice. A voice shared from another organization in your group can be used, but only that organization can retry or delete it.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "id",
          "name",
          "provider",
          "providerVoiceId",
          "status",
          "isActive",
          "source",
          "createdAt",
          "previewUrl",
          "ownedByOrg"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
