models

Create a custom XTTS voice and reserve latent upload URLs

post/v1/models/custom

Request

  • Base URL: https://api.ditto.audio (the document declares no server; this is the origin it was published from)
  • URL: https://api.ditto.audio/v1/models/custom
  • Auth: HTTP bearer

Request body

namestring required
engine'piper' | 'xtts' | 'kokoro' | 'pocket' | 'rvc' | 'system' | 'morpho'

xtts (default) or rvc. RVC voices persist model.onnx + model.pth.

sourceHashstring

sha-256 of the source model.pth (for an in-browser pth→onnx voice). Stored so a future client can skip re-converting via GET /models/custom/by-source/:hash.

baseSlugstring

base XTTS voice to overlay (omit for a full self-contained bundle)

languagestring
sampleRatenumber

Example request

{
  "name": "My Cloned Narrator",
  "baseSlug": "xtts-v2",
  "files": [
    {
      "fileName": "xtts_gpt.onnx"
    }
  ],
  "language": "en",
  "sampleRate": 24000
}

Changes

No recorded changes to this operation across all 1 revision of this API.