{"openapi":"3.1.0","info":{"title":"Voxmint API","description":"A REST API for speech synthesis with [VoxCPM](https://github.com/OpenBMB/VoxCPM):\ntext-to-speech and voice design.\n\n## Authentication\n\nEndpoints that act on an account take a bearer token. For programmatic use,\ncreate an **API key** in the app under *Developer*, then send it as:\n\n```\nAuthorization: Bearer vox_sk_your_key_here\n```\n\nKeys carry scopes — `read` for listing and downloading, `write` for anything\nthat generates or stores. Key management and administration deliberately\nrefuse API keys and require an interactive login, so a leaked key cannot mint\nmore keys or widen its own reach.\n\n## Conventions\n\n* JSON in, JSON out, except audio endpoints, which return `audio/wav` (generations older than 30 days may be `audio/mpeg`; ask for `?format=wav`).\n* Errors are `{\"detail\": \"...\"}` with a conventional status code.\n* Every response carries `X-Request-ID`; quote it when reporting a problem.\n* Generation endpoints return `X-RateLimit-Limit`, `X-RateLimit-Remaining` and\n  `X-RateLimit-Reset` (seconds until the window rolls over). Over the limit is\n  `429` with `Retry-After`.\n* `503` from a synthesis route means the model is still warming up; the\n  `Retry-After` header says how long to wait. `GET /health` and `GET /ready`\n  report that state directly.\n\n## Versioning\n\nThe current version is mounted at `/api/v1`. Paths under `/api` without a\nversion are an unversioned alias kept for the web app; pin `/api/v1` in code.","contact":{"name":"Voxmint support","email":"support@voxmint.app"},"license":{"name":"MIT"},"version":"1.0.0"},"paths":{"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify/resend":{"post":{"tags":["auth"],"summary":"Resend Verification","operationId":"resend_verification","responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Identical answer whether or not the account exists, so this cannot probe for users.","operationId":"forgot_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google":{"post":{"tags":["auth"],"summary":"Google Sign In","description":"Sign in, sign up or link, with the ID token from Google's button.","operationId":"google_sign_in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSignInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/logout-all":{"post":{"tags":["auth"],"summary":"Logout All","operationId":"logout_all","responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update Me","operationId":"update_me","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/ui-language-hint":{"get":{"tags":["auth"],"summary":"Ui Language Hint","description":"Whether this account has ever made audio with a Vietnamese catalogue voice.","operationId":"ui_language_hint","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Ui Language Hint Api V1 Auth Me Ui Language Hint Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/change-password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/delete-account":{"post":{"tags":["auth"],"summary":"Delete Account","description":"Schedule this account for erasure in 7 days; it is locked until then and can be kept.","operationId":"delete_account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionScheduled"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/cancel-deletion":{"post":{"tags":["auth"],"summary":"Cancel Deletion","operationId":"cancel_deletion","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/cancel-deletion/token":{"post":{"tags":["auth"],"summary":"Cancel Deletion By Token","description":"The \"Keep my account\" link from the email: works without signing in.","operationId":"cancel_deletion_by_token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDeletionTokenRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/keys":{"get":{"tags":["api keys"],"summary":"List your API keys","description":"Return every key on the account, with what each has spent. Secrets are never included.\n\nIn a team, a member sees the keys they made there; the owner and admins see all of the team's.","operationId":"list_keys","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKeyOut"},"type":"array","title":"Response List Keys Api V1 Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api keys"],"summary":"Create an API key","description":"Mint a key.\n\nThe secret is in this response and nowhere else — only its hash is stored,\nso it cannot be shown again. A key made in a team belongs to the team and\nspends its credits; every member may make their own.","operationId":"create_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/keys/{key_id}":{"delete":{"tags":["api keys"],"summary":"Revoke an API key","description":"Revoke immediately. The next request using it is rejected.","operationId":"revoke_key","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/voices":{"get":{"tags":["voices"],"summary":"List Voices","operationId":"list_voices","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(reference|design|preset)$"},{"type":"null"}],"title":"Kind"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceOut"},"title":"Response List Voices Api V1 Voices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/voices/design":{"post":{"tags":["voices"],"summary":"Create Designed Voice","description":"Save a natural-language voice description for reuse.","operationId":"create_designed_voice","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignVoiceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/voices/{voice_id}":{"get":{"tags":["voices"],"summary":"Get Voice","operationId":"get_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["voices"],"summary":"Update Voice","operationId":"update_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["voices"],"summary":"Delete Voice","operationId":"delete_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/voices/{voice_id}/move":{"post":{"tags":["voices"],"summary":"Move Voice","description":"Move one of your personal voices into a team you're an active member of.\n\nThe voice then belongs to the team and stays with it if you leave (the client shows that\nerasing your account later can't take it from the team. This is the only data that moves\nbetween workspaces. The ``X-Workspace-Id`` header is ignored: the voice is always personal.","operationId":"move_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveVoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/voices/{voice_id}/audio":{"get":{"tags":["voices"],"summary":"Get Voice Audio","description":"A ``?token=`` URL can't carry X-Workspace-Id, so the account is the voice's own.","operationId":"get_voice_audio","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/catalog/voices":{"get":{"tags":["catalog"],"summary":"List Catalog Voices","operationId":"list_catalog_voices","security":[{"HTTPBearer":[]}],"parameters":[{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Language"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Gender"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Search"}},{"name":"accent","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Accent"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogVoiceOut"},"title":"Response List Catalog Voices Api V1 Catalog Voices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/catalog/languages":{"get":{"tags":["catalog"],"summary":"Catalog Languages","operationId":"catalog_languages","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/catalog/voices/{voice_id}":{"get":{"tags":["catalog"],"summary":"Get Catalog Voice","operationId":"get_catalog_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogVoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/catalog/voices/{voice_id}/preview":{"get":{"tags":["catalog"],"summary":"Catalog Preview","description":"Serve the preset's sample clip.\n\nNormally a pure file read: the clips are pre-rendered in the background at\nstartup (``services.previews.prewarm``), so this path is the common one and\ncosts no GPU time and no generation allowance.\n\nThe lazy render below is the fallback for a clip that is still missing --\npre-rendering was disabled, the engine was not warm in time, or this voice\nwas added to the catalogue since the last restart.","operationId":"catalog_preview","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/catalog/voices/{voice_id}/import":{"post":{"tags":["catalog"],"summary":"Import Catalog Voice","description":"Copy a preset into the caller's library so it can be edited and reused.\n\nBy default this saves the description and seed. With ``render_sample`` it","operationId":"import_catalog_voice","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogImportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/public/catalog/voices/{voice_id}/preview":{"get":{"tags":["public"],"summary":"Public Catalog Preview","description":"A live catalogue voice's preview as MP3. Reads files only; never synthesises.","operationId":"public_catalog_preview","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tts/generate":{"post":{"tags":["synthesis"],"summary":"Generate","description":"Synthesise speech and store the result in the caller's history.","operationId":"generate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}},"503":{"description":"The model is warming up or the engine queue is full. Retry-After, when sent, says how long to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tts/batch":{"post":{"tags":["synthesis"],"summary":"Batch","description":"Synthesise many lines with one set of settings, each as its own clip.\n\nThe whole batch's cost is reserved up front, so it either fits or is refused\nat once; lines that fail are refunded. Lines are processed in order and\nindependently: one failure is reported against its own line. If the caller\ngoes away (Stop in the Studio drops the request), the batch stops before its\nnext line, and the lines it never started are refunded with the failures.","operationId":"batch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}},"503":{"description":"The model is warming up or the engine queue is full. Retry-After, when sent, says how long to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tts/stream":{"post":{"tags":["synthesis"],"summary":"Stream","description":"Stream audio as it is generated, so playback can start immediately.\n\nKept in history like every generation: ``X-Generation-Id`` names the record.","operationId":"stream","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}},"503":{"description":"The model is warming up or the engine queue is full. Retry-After, when sent, says how long to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tts/generate/stream":{"post":{"tags":["synthesis"],"summary":"Generate And Stream","description":"Stream speech as it is generated, and save it to history like ``/tts/generate``.\n\nThe response is a chunked ``audio/wav``. ``X-Generation-Id`` names the\nrecord; once the stream ends, the record's ``status`` says how it went.","operationId":"generate_and_stream","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}},"503":{"description":"The model is warming up or the engine queue is full. Retry-After, when sent, says how long to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tts/preview":{"post":{"tags":["synthesis"],"summary":"Preview Text","description":"Show the exact text (with its style prefix) that would be sent to the model.","operationId":"preview_text","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tts/tags":{"get":{"tags":["synthesis"],"summary":"Expressive Tags","description":"The expressive tags the editor suggests.\n\nA ``sound`` is spoken inline; a ``style`` changes the delivery of the text\nafter it; a ``pause`` is silence where it stands. Any bracketed tag that is\nnot a sound or a pause works as a style.","operationId":"expressive_tags","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/generations":{"get":{"tags":["generations"],"summary":"List Generations","operationId":"list_generations","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(speech|design|sfx|music|dialogue)$"},{"type":"null"}],"title":"Mode"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(queued|running|succeeded|failed)$"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedGenerations"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["generations"],"summary":"Clear History","operationId":"clear_history","security":[{"HTTPBearer":[]}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/generations/{generation_id}":{"get":{"tags":["generations"],"summary":"Get Generation","operationId":"get_generation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["generations"],"summary":"Delete Generation","operationId":"delete_generation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/generations/{generation_id}/audio":{"get":{"tags":["generations"],"summary":"Get Generation Audio","description":"The audio as stored (WAV, or MP3 once older than AUDIO_COMPACT_AFTER_DAYS); ``?format=wav`` always gives WAV.\n\nA ``?token=`` URL can't carry X-Workspace-Id, so the account is the generation's own,\nif the caller may act in it.","operationId":"get_generation_audio","security":[{"HTTPBearer":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"const":"wav","type":"string"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/generations/{generation_id}/captions":{"get":{"tags":["generations"],"summary":"Get Generation Captions","description":"Subtitles for a clip generated with word timings, cut into lines the way speech to text cuts them.","operationId":"get_generation_captions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["srt","vtt"],"type":"string","default":"srt","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sfx":{"post":{"tags":["sfx"],"summary":"Start a sound effect","description":"Start making a clip and answer at once with its job, with the credits held.\n\nPoll `GET /sfx/{id}` every few seconds until `status` is `succeeded` or `failed`, then download\nthe WAV from `GET /generations/{id}/audio`. The first clip after a quiet spell can take over a\nminute (`stage` is `warming`); later ones take seconds. A failed clip costs nothing.","operationId":"create_job","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SfxRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SfxJobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/sfx/{job_id}":{"get":{"tags":["sfx"],"summary":"Check on a sound effect","operationId":"get_job","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SfxJobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/music":{"post":{"tags":["music"],"summary":"Start a song","description":"Start making a song and answer at once with its job, with the credits held.\n\nPoll `GET /music/{id}` every few seconds until `status` is `succeeded` or `failed`, then download\nthe stereo WAV from `GET /generations/{id}/audio?format=wav`. Most songs are ready within 30 seconds,\nand the first one after a quiet spell can take up to a minute or two (`stage` is `warming`). A failed song\ncosts nothing. Adult content in the style or lyrics is refused with a 422 and the code `adult_content`.","operationId":"music_create_job","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MusicRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MusicJobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The balance does not cover this request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaExceededError"}}}},"429":{"description":"Over the generation limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/music/{job_id}":{"get":{"tags":["music"],"summary":"Check on a song","operationId":"music_get_job","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MusicJobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/billing/config":{"get":{"tags":["billing"],"summary":"Billing Config","description":"Public: what the pricing page shows, and how to open checkout.","operationId":"billing_config","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Billing Checkout","description":"Start a purchase. Returns the URL of Polar's hosted checkout for the caller.\n\nIn a team, only credit packs, for the team, bought by its owner or a billing member.","operationId":"billing_checkout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/team-checkout":{"post":{"tags":["billing"],"summary":"Billing Team Checkout","description":"Start buying a Team, or renew a lapsed one. Returns the URL of Polar's hosted checkout.\n\nNothing is stored here: the team, its owner and its billing begin when Polar's paid webhook\narrives, with the team id minted now carried in the checkout's metadata. The Polar customer\nis the person paying, so a personal subscription and a team's never conflict.","operationId":"billing_team_checkout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/change-plan":{"post":{"tags":["billing"],"summary":"Billing Change Plan","description":"Move an existing subscription to another plan or interval.\n\nAn upgrade (a higher plan, or a longer interval) applies now and Polar invoices the\ndifference. A downgrade (a lower plan, or a shorter interval) applies at the next\nrenewal, with nothing charged or credited now. So does any change of interval during\nthe first period of a quarterly plan that holds its free month.","operationId":"billing_change_plan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Billing Portal","description":"A link to Polar's customer portal: cancel, update the card, download invoices.\n\nIn a team, only for the person who pays for it: the portal is their Polar customer's, so it\nshows their own subscriptions and card, which nobody else in the team may manage.","operationId":"billing_portal","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/me":{"get":{"tags":["billing"],"summary":"Billing Me","description":"Your plan, this period's allowance, your packs, and what they unlock (in a team: the team's).","operationId":"billing_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/ledger":{"get":{"tags":["billing"],"summary":"Billing Ledger","description":"Your 20 most recent credit movements, newest first (in a team: see billing.recent_ledger).","operationId":"billing_ledger","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/logs":{"get":{"tags":["logs"],"summary":"Your API request log","description":"Requests made with your API keys, newest first. Page with ``before=next_before``.","operationId":"list_logs","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Id"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"enum":["errors","ok"],"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Path"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiLogPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/logs/{request_id}":{"get":{"tags":["logs"],"summary":"One logged request","operationId":"get_log","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiLogDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/support/identity":{"get":{"tags":["support"],"summary":"Get Identity","description":"Who the Chatwoot widget should say the signed-in user is, signed so it can't be forged.","operationId":"get_identity","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportIdentity"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/health":{"get":{"tags":["system"],"summary":"Health","description":"Liveness probe. Cheap on purpose - no database, no model.","operationId":"health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/ready":{"get":{"tags":["system"],"summary":"Ready","description":"Readiness probe: the model must be resident before traffic is useful.","operationId":"ready","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/models":{"get":{"tags":["system"],"summary":"List Models","description":"The TTS models a generation can use, what each can do, and whether it is up.\n\nPass a model's ``id`` as ``model`` on a generation request, or leave\n``model`` out for Auto.","operationId":"list_models","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelOut"},"type":"array","title":"Response List Models Api V1 Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/status":{"get":{"tags":["system"],"summary":"System Status","description":"Engine and database state. Only administrators see the model path and errors.","operationId":"system_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/config":{"get":{"tags":["system"],"summary":"Public Config","description":"The handful of facts the sign-in screen needs before a token exists.","operationId":"public_config","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/system/engine":{"get":{"tags":["system"],"summary":"Engine Status","operationId":"engine_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/teams":{"get":{"tags":["teams"],"summary":"List Teams","description":"The teams you're an active member of, for the workspace switcher.","operationId":"list_teams","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/teams/invites/{invite_token}":{"get":{"tags":["teams"],"summary":"Preview Invite","description":"Public: the team, who invited, the role, the cap and the invited address. Errors are coded.","operationId":"preview_invite","parameters":[{"name":"invite_token","in":"path","required":true,"schema":{"type":"string","title":"Invite Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/invites/{invite_token}/accept":{"post":{"tags":["teams"],"summary":"Accept Invite","description":"Join the team. You must be signed in with the address the invite was sent to.","operationId":"accept_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_token","in":"path","required":true,"schema":{"type":"string","title":"Invite Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}":{"get":{"tags":["teams"],"summary":"Get Team","description":"The team, its seats (members plus pending invites) and your role in it.","operationId":"get_team","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["teams"],"summary":"Delete Team","description":"Owner only: close the team now (keys revoked, subscription cancelled); it is erased after 7 days.","operationId":"delete_team","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/members":{"get":{"tags":["teams"],"summary":"List Members","description":"Active members, then pending invites (shown to those who can invite).","operationId":"list_members","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/invites":{"post":{"tags":["teams"],"summary":"Create Invite","description":"Invite someone by email. Only the owner invites admins. Refused when every seat is taken.","operationId":"create_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/invites/{invite_id}/resend":{"post":{"tags":["teams"],"summary":"Resend Invite","description":"Send a pending invite again with a new link; the old link stops working.","operationId":"resend_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/invites/{invite_id}":{"delete":{"tags":["teams"],"summary":"Cancel Invite","description":"Withdraw a pending invite.","operationId":"cancel_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/members/{user_id}":{"patch":{"tags":["teams"],"summary":"Update Member","description":"Change a member's role or monthly credit cap (see teams.update_member for who may).","operationId":"update_member","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["teams"],"summary":"Remove Member","description":"Remove a member. Their team API keys are always revoked; what they made stays with the team.\n\n``keys`` is no longer a choice: anything but ``revoke`` is refused (400 ``keys_always_revoked``),\nsince the person removed still knows their keys' secrets.","operationId":"remove_member","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"keys","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keys"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/members/me":{"delete":{"tags":["teams"],"summary":"Leave Team","description":"Leave the team. Your team API keys are revoked; what you made stays with the team.\n\nAny member but the owner (409 ``owner_cannot_leave``: transfer ownership or delete the team).","operationId":"leave_team","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/transfer":{"post":{"tags":["teams"],"summary":"Transfer Ownership","description":"Owner only: make an admin the owner. You become an admin.","operationId":"transfer_ownership","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/teams/{team_id}/usage":{"get":{"tags":["teams"],"summary":"Team Usage","description":"Credits spent this allowance period, by member and by API key. Owner, admins and billing members.","operationId":"team_usage","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"period","in":"query","required":false,"schema":{"const":"current","type":"string","default":"current","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"The bearer token is missing, invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is disabled or unverified, the key lacks the scope, or the route needs an interactive login.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/chat/models":{"get":{"tags":["llm"],"summary":"List the chat models","description":"The models ``POST /chat/completions`` accepts, in OpenAI's list format. The first is the default.","operationId":"llm_list_models","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/chat/completions":{"post":{"tags":["llm"],"summary":"Create a chat completion","description":"OpenAI Chat Completions, streamed or not. Point an OpenAI SDK at ``https://voxmint.app/api/v1``.\n\nCharged per token at the server's input and output rates (at least 1 credit a\nrequest). The worst case (the prompt plus ``max_tokens``) is held up front and\nthe rest returned once the model reports what it used; ``usage.credits`` says\nwhat was charged. Out of credits is a `402` with code `quota_exceeded`.","operationId":"chat_completions","requestBody":{"content":{"application/json":{"schema":{"properties":{"model":{"type":"string","description":"From GET /chat/models; defaults to the first."},"messages":{"items":{"properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"description":"A string, or an array of text parts","nullable":true},"tool_calls":{"items":{"type":"object"},"type":"array"},"tool_call_id":{"type":"string"},"name":{"type":"string"}},"type":"object","required":["role"]},"type":"array"},"max_tokens":{"type":"integer","minimum":1.0,"description":"Clamped to the server's output cap (1024 by default)."},"max_completion_tokens":{"type":"integer","minimum":1.0,"description":"Alias of max_tokens."},"temperature":{"type":"number","maximum":2.0,"minimum":0.0},"top_p":{"type":"number","maximum":1.0,"minimum":0.0},"stop":{"description":"A string or up to 4 strings"},"stream":{"type":"boolean","default":false},"stream_options":{"properties":{"include_usage":{"type":"boolean"}},"type":"object"},"tools":{"items":{"type":"object"},"type":"array"},"tool_choice":{"description":"\"none\", \"auto\", \"required\" or {\"type\": \"function\", ...}"},"response_format":{"type":"object","description":"type: text, json_object or json_schema"},"seed":{"type":"integer"},"n":{"type":"integer","enum":[1]}},"type":"object","required":["messages"],"example":{"model":"qwen2.5-7b-instruct","messages":[{"role":"user","content":"Say hello in Vietnamese."}],"max_tokens":64}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"Acquisition":{"properties":{"source":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Source"},"medium":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Medium"},"campaign":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Campaign"},"content":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Content"},"term":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Term"},"referrer":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^[A-Za-z0-9.-]*$"},{"type":"null"}],"title":"Referrer"},"landing":{"anyOf":[{"type":"string","maxLength":200,"pattern":"^/"},{"type":"null"}],"title":"Landing"},"ts":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ts"}},"type":"object","title":"Acquisition","description":"The visitor's first touch, as the browser recorded it (src/lib/acquisition.ts): where a signup came from."},"ApiKeyCreateRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string","enum":["read","write"]},"type":"array","title":"Scopes"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"}},"type":"object","required":["name"],"title":"ApiKeyCreateRequest"},"ApiKeyCreated":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string","enum":["read","write"]},"type":"array","title":"Scopes"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"request_count":{"type":"integer","title":"Request Count","default":0},"usage":{"$ref":"#/components/schemas/ApiKeyUsage"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","prefix","scopes","created_at","key"],"title":"ApiKeyCreated","description":"Carries the secret. It is returned once and never again."},"ApiKeyOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string","enum":["read","write"]},"type":"array","title":"Scopes"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"request_count":{"type":"integer","title":"Request Count","default":0},"usage":{"$ref":"#/components/schemas/ApiKeyUsage"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"}},"type":"object","required":["id","name","prefix","scopes","created_at"],"title":"ApiKeyOut"},"ApiKeyUsage":{"properties":{"month":{"$ref":"#/components/schemas/UsageCounts"},"total":{"$ref":"#/components/schemas/UsageCounts"}},"type":"object","title":"ApiKeyUsage","description":"Generation spend through this key: the current UTC month, and all time."},"ApiLogDetail":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"at":{"type":"string","title":"At"},"method":{"type":"string","title":"Method"},"path":{"type":"string","title":"Path"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"status":{"type":"integer","title":"Status"},"duration_ms":{"type":"integer","title":"Duration Ms"},"key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Id"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"credits_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Remaining"},"generation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Id"},"request_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Body"},"request_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Note"},"response_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Body"},"impersonated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impersonated By"},"content_hidden":{"type":"boolean","title":"Content Hidden","default":false}},"type":"object","required":["at","method","path","status","duration_ms"],"title":"ApiLogDetail"},"ApiLogPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApiLogSummary"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["items"],"title":"ApiLogPage"},"ApiLogSummary":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"at":{"type":"string","title":"At"},"method":{"type":"string","title":"Method"},"path":{"type":"string","title":"Path"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"status":{"type":"integer","title":"Status"},"duration_ms":{"type":"integer","title":"Duration Ms"},"key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Id"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["at","method","path","status","duration_ms"],"title":"ApiLogSummary"},"BatchLine":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"generation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Id"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["text","status"],"title":"BatchLine"},"BatchOut":{"properties":{"total":{"type":"integer","title":"Total"},"succeeded":{"type":"integer","title":"Succeeded"},"failed":{"type":"integer","title":"Failed"},"items":{"items":{"$ref":"#/components/schemas/BatchLine"},"type":"array","title":"Items"}},"type":"object","required":["total","succeeded","failed","items"],"title":"BatchOut"},"BatchRequest":{"properties":{"lines":{"items":{"type":"string","minLength":1},"type":"array","maxItems":100,"minItems":1,"title":"Lines"},"settings":{"$ref":"#/components/schemas/GenerateRequest"}},"type":"object","required":["lines","settings"],"title":"BatchRequest","description":"One set of settings applied to many lines, each producing its own clip.","examples":[{"lines":["First line.","Second line."],"settings":{"catalog_voice_id":"atlas","text":"ignored; each line replaces it"}}]},"CancelDeletionTokenRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"CancelDeletionTokenRequest"},"CatalogImportRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"render_sample":{"type":"boolean","title":"Render Sample","default":false},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","title":"CatalogImportRequest","description":"Copy a catalogue voice into the caller's own library."},"CatalogVoiceOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"language":{"type":"string","title":"Language"},"gender":{"type":"string","title":"Gender"},"age":{"type":"string","title":"Age"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"sample_text":{"type":"string","title":"Sample Text"},"locale":{"type":"string","title":"Locale","default":""},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"dialect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dialect"},"has_preview":{"type":"boolean","title":"Has Preview","default":false},"model":{"type":"string","title":"Model","default":"voxcpm2"},"model_label":{"type":"string","title":"Model Label","default":"VoxCPM2"},"available":{"type":"boolean","title":"Available","default":true}},"type":"object","required":["id","name","description","language","gender","age","sample_text"],"title":"CatalogVoiceOut"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"DeleteAccountRequest":{"properties":{"password":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Password"},"google_credential":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Google Credential"}},"type":"object","title":"DeleteAccountRequest","description":"Confirm with the password, or with a fresh Google sign-in for accounts without one."},"DeletionScheduled":{"properties":{"deletion_due_at":{"type":"string","title":"Deletion Due At"},"subscription_cancelled":{"type":"boolean","title":"Subscription Cancelled"}},"type":"object","required":["deletion_due_at","subscription_cancelled"],"title":"DeletionScheduled"},"DesignVoiceRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":1000,"minLength":1,"title":"Description"},"tags":{"items":{"type":"string","maxLength":40},"type":"array","title":"Tags"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","required":["name","description"],"title":"DesignVoiceRequest","description":"A 'designed' voice is a saved natural-language voice description."},"EngineStatus":{"properties":{"backend":{"type":"string","title":"Backend"},"state":{"type":"string","enum":["idle","loading","ready","error"],"title":"State"},"model_path":{"type":"string","title":"Model Path"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"denoiser":{"type":"boolean","title":"Denoiser","default":false},"load_started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Started At"},"ready_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ready At"},"load_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load Seconds"},"queue_depth":{"type":"integer","title":"Queue Depth","default":0},"busy":{"type":"boolean","title":"Busy","default":false},"total_generations":{"type":"integer","title":"Total Generations","default":0},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"supports_lora":{"type":"boolean","title":"Supports Lora","default":false},"lora_enabled":{"type":"boolean","title":"Lora Enabled","default":false},"unsupported_options":{"items":{"type":"string"},"type":"array","title":"Unsupported Options"},"models":{"items":{"$ref":"#/components/schemas/ModelStateOut"},"type":"array","title":"Models"}},"type":"object","required":["backend","state","model_path"],"title":"EngineStatus"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GenerateRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"mode":{"type":"string","enum":["speech","design","sfx"],"title":"Mode","default":"speech"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"catalog_voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Voice Id"},"voice_description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Voice Description"},"style_prompt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Style Prompt"},"prompt_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Prompt Text"},"model":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Model"},"cfg_value":{"type":"number","maximum":3.0,"minimum":1.0,"title":"Cfg Value","default":2.0},"quality":{"anyOf":[{"type":"string","enum":["fast","standard","best"]},{"type":"null"}],"title":"Quality","description":"Named quality, the same as the studio's: fast (6 steps), standard (10, the default) or best (20). Sets inference_timesteps; send one or the other. Price is the same."},"inference_timesteps":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Inference Timesteps","description":"Diffusion steps, 1-50. More steps sound more detailed but take longer. `quality` picks a preset.","default":10},"normalize":{"type":"boolean","title":"Normalize","default":false},"denoise":{"type":"boolean","title":"Denoise","default":false},"retry_badcase":{"type":"boolean","title":"Retry Badcase","default":true},"retry_badcase_max_times":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Retry Badcase Max Times","default":3},"retry_badcase_ratio_threshold":{"type":"number","maximum":20.0,"minimum":1.0,"title":"Retry Badcase Ratio Threshold","default":6.0},"min_len":{"type":"integer","maximum":512.0,"minimum":1.0,"title":"Min Len","default":2},"max_len":{"type":"integer","maximum":8192.0,"minimum":64.0,"title":"Max Len","default":4096},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed"},"speed":{"type":"number","maximum":1.5,"minimum":0.7,"title":"Speed","default":1.0},"pitch":{"type":"number","maximum":6.0,"minimum":-6.0,"title":"Pitch","default":0.0},"volume":{"type":"number","maximum":6.0,"minimum":-12.0,"title":"Volume","default":0.0},"save":{"type":"boolean","title":"Save","description":"Deprecated and ignored: every generation is kept in history.","default":true,"deprecated":true},"timestamps":{"type":"boolean","title":"Timestamps","default":false},"timestamp_level":{"type":"string","enum":["segment","word","char"],"title":"Timestamp Level","default":"word"},"timestamp_language":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Timestamp Language"}},"type":"object","required":["text"],"title":"GenerateRequest","description":"One request covers every generation mode.\n\n* ``speech``          - plain text-to-speech\n* ``design``          - a natural-language voice description drives the timbre","examples":[{"catalog_voice_id":"atlas","mode":"speech","speed":1.1,"text":"Hello from the API."}]},"GenerationOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"mode":{"type":"string","enum":["speech","design","sfx","music","dialogue"],"title":"Mode"},"text":{"type":"string","title":"Text"},"resolved_text":{"type":"string","title":"Resolved Text","default":""},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"},"stopped_early":{"type":"boolean","title":"Stopped Early","default":false},"model":{"type":"string","title":"Model","default":"voxcpm2"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"elapsed_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed S"},"rtf":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rtf"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"saved":{"type":"boolean","title":"Saved","default":true},"audio_format":{"type":"string","enum":["wav","mp3"],"title":"Audio Format","default":"wav"},"impersonated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impersonated By"},"dialogue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dialogue Id"},"created_at":{"type":"string","title":"Created At"},"timestamps":{"anyOf":[{"$ref":"#/components/schemas/TimestampsOut"},{"type":"null"}]},"stage":{"anyOf":[{"type":"string","enum":["warming","generating"]},{"type":"null"}],"title":"Stage"}},"type":"object","required":["id","user_id","status","mode","text","created_at"],"title":"GenerationOut"},"GoogleSignInRequest":{"properties":{"credential":{"type":"string","maxLength":4096,"minLength":1,"title":"Credential"},"acquisition":{"anyOf":[{"$ref":"#/components/schemas/Acquisition"},{"type":"null"}]},"ui_language":{"anyOf":[{"type":"string","enum":["en","vi","de","es","fr","id","ja","ko","pt","zh"]},{"type":"null"}],"title":"Ui Language"}},"type":"object","required":["credential"],"title":"GoogleSignInRequest"},"HTTPValidationError":{"type":"object","title":"HTTPValidationError","required":["detail"],"properties":{"detail":{"type":"string","description":"The first problem, as `field: message` (for example `text: Field required`)."},"code":{"type":"string","description":"A stable code, on the refusals that have one."},"errors":{"type":"array","maxItems":10,"description":"Every field that failed validation, up to ten. Sent when the request body or query was invalid.","items":{"$ref":"#/components/schemas/ValidationError"}}}},"InviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","enum":["admin","billing","member"],"title":"Role","default":"member"},"monthly_credit_cap":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Credit Cap"}},"type":"object","required":["email"],"title":"InviteRequest"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MemberUpdate":{"properties":{"role":{"anyOf":[{"type":"string","enum":["admin","billing","member"]},{"type":"null"}],"title":"Role"},"monthly_credit_cap":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Credit Cap"}},"type":"object","title":"MemberUpdate","description":"Either or both. ``monthly_credit_cap: null`` removes the cap; leaving it out keeps it."},"ModelOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"hint":{"type":"string","title":"Hint","default":""},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"default_for":{"items":{"type":"string"},"type":"array","title":"Default For"},"state":{"type":"string","enum":["ready","loading","down"],"title":"State"}},"type":"object","required":["id","label","state"],"title":"ModelOut"},"ModelStateOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"state":{"type":"string","enum":["idle","loading","ready","error"],"title":"State"},"queue_depth":{"type":"integer","title":"Queue Depth","default":0},"busy":{"type":"boolean","title":"Busy","default":false},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["id","label","state"],"title":"ModelStateOut"},"MoveVoiceRequest":{"properties":{"team_id":{"type":"string","maxLength":64,"title":"Team Id"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","required":["team_id"],"title":"MoveVoiceRequest","description":"Move one of your personal voices into a team you're in. It then belongs to the team."},"MusicJobOut":{"properties":{"id":{"type":"string","title":"Id"},"style":{"type":"string","title":"Style"},"lyrics":{"type":"string","title":"Lyrics"},"instrumental":{"type":"boolean","title":"Instrumental"},"language":{"type":"string","const":"en","title":"Language"},"seconds":{"type":"integer","title":"Seconds"},"cost":{"type":"integer","title":"Cost"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"stage":{"anyOf":[{"type":"string","enum":["warming","generating"]},{"type":"null"}],"title":"Stage"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","style","lyrics","instrumental","language","seconds","cost","status","created_at"],"title":"MusicJobOut"},"MusicRequest":{"properties":{"style":{"type":"string","maxLength":512,"minLength":3,"title":"Style","description":"The genre, mood and instruments, in plain words."},"lyrics":{"type":"string","maxLength":4096,"title":"Lyrics","description":"Words to sing. Ignored for an instrumental. The most allowed depends on the length of the song; a song over it is refused with 422 lyrics_too_long.","default":""},"instrumental":{"type":"boolean","title":"Instrumental","default":false},"language":{"type":"string","const":"en","title":"Language","default":"en"},"seconds":{"type":"integer","multipleOf":5.0,"maximum":240.0,"minimum":30.0,"title":"Seconds","description":"Length of the song in seconds."}},"type":"object","required":["style","seconds"],"title":"MusicRequest"},"PaginatedGenerations":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GenerationOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedGenerations"},"ProductRequest":{"properties":{"product_id":{"type":"string","maxLength":64,"minLength":1,"title":"Product Id"}},"type":"object","required":["product_id"],"title":"ProductRequest"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":8,"title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name"},"acquisition":{"anyOf":[{"$ref":"#/components/schemas/Acquisition"},{"type":"null"}]},"ui_language":{"anyOf":[{"type":"string","enum":["en","vi","de","es","fr","id","ja","ko","pt","zh"]},{"type":"null"}],"title":"Ui Language"}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"SaveGenerationAsVoiceRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"tags":{"items":{"type":"string","maxLength":40},"type":"array","title":"Tags"},"prompt_text":{"type":"string","maxLength":2000,"title":"Prompt Text","default":""},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","required":["name"],"title":"SaveGenerationAsVoiceRequest"},"SfxJobOut":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"seconds":{"type":"number","title":"Seconds"},"cost":{"type":"integer","title":"Cost"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"stage":{"anyOf":[{"type":"string","enum":["warming","generating"]},{"type":"null"}],"title":"Stage"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","prompt","seconds","cost","status","created_at"],"title":"SfxJobOut"},"SfxRequest":{"properties":{"prompt":{"type":"string","maxLength":300,"minLength":3,"title":"Prompt","description":"What the sound is, in plain words."},"seconds":{"type":"number","maximum":30.0,"minimum":1.0,"title":"Seconds","description":"Length of the clip, rounded to the nearest half second."}},"type":"object","required":["prompt","seconds"],"title":"SfxRequest"},"SupportIdentity":{"properties":{"url":{"type":"string","title":"Url"},"website_token":{"type":"string","title":"Website Token"},"identifier":{"type":"string","title":"Identifier"},"identifier_hash":{"type":"string","title":"Identifier Hash"},"name":{"type":"string","title":"Name"}},"type":"object","required":["url","website_token","identifier","identifier_hash","name"],"title":"SupportIdentity"},"SystemStatus":{"properties":{"app":{"type":"string","title":"App"},"environment":{"type":"string","title":"Environment"},"version":{"type":"string","title":"Version"},"database":{"type":"string","enum":["ok","error"],"title":"Database"},"engine":{"$ref":"#/components/schemas/EngineStatus"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"},"features":{"additionalProperties":true,"type":"object","title":"Features"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"}},"type":"object","required":["app","environment","version","database","engine","limits"],"title":"SystemStatus"},"TeamCheckoutRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Name"},"interval":{"type":"string","enum":["month","year"],"title":"Interval"},"team_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Team Id"}},"type":"object","required":["interval"],"title":"TeamCheckoutRequest","description":"A new team needs a name. Renewing a lapsed team names it by ``team_id`` instead."},"TimestampItem":{"properties":{"text":{"type":"string","title":"Text"},"start":{"type":"number","title":"Start"},"end":{"type":"number","title":"End"},"level":{"type":"string","title":"Level"}},"type":"object","required":["text","start","end","level"],"title":"TimestampItem"},"TimestampsOut":{"properties":{"level":{"type":"string","title":"Level"},"backend":{"type":"string","title":"Backend"},"items":{"items":{"$ref":"#/components/schemas/TimestampItem"},"type":"array","title":"Items"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["level","backend"],"title":"TimestampsOut"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","const":"bearer","title":"Token Type","default":"bearer"},"expires_at":{"type":"string","title":"Expires At"},"user":{"$ref":"#/components/schemas/UserOut"},"created":{"type":"boolean","title":"Created","default":false}},"type":"object","required":["access_token","refresh_token","expires_at","user"],"title":"TokenPair"},"TransferRequest":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id"}},"type":"object","required":["user_id"],"title":"TransferRequest"},"UpdateProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"how_heard":{"anyOf":[{"type":"string","enum":["search","ai_assistant","youtube","social","community","friend","other"]},{"type":"null"}],"title":"How Heard"},"ui_language":{"anyOf":[{"type":"string","enum":["en","vi","de","es","fr","id","ja","ko","pt","zh"]},{"type":"null"}],"title":"Ui Language"},"dismiss_ui_language_notice":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Dismiss Ui Language Notice"},"analytics_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analytics Opt Out"},"product_emails_off":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Product Emails Off"}},"type":"object","title":"UpdateProfileRequest"},"UsageCounts":{"properties":{"characters":{"type":"integer","title":"Characters","default":0},"credits":{"type":"integer","title":"Credits","default":0},"requests":{"type":"integer","title":"Requests","default":0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0}},"type":"object","title":"UsageCounts"},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","title":"Name"},"role":{"type":"string","enum":["user","admin"],"title":"Role","default":"user"},"is_active":{"type":"boolean","title":"Is Active","default":true},"email_verified":{"type":"boolean","title":"Email Verified","default":true},"email_verification_required":{"type":"boolean","title":"Email Verification Required","default":false},"created_at":{"type":"string","title":"Created At"},"generation_count":{"type":"integer","title":"Generation Count","default":0},"deletion_due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deletion Due At"},"has_password":{"type":"boolean","title":"Has Password","default":true},"google_linked":{"type":"boolean","title":"Google Linked","default":false},"how_heard":{"anyOf":[{"type":"string","enum":["search","ai_assistant","youtube","social","community","friend","other"]},{"type":"null"}],"title":"How Heard"},"ui_language":{"anyOf":[{"type":"string","enum":["en","vi","de","es","fr","id","ja","ko","pt","zh"]},{"type":"null"}],"title":"Ui Language"},"ui_language_notice_dismissed":{"type":"boolean","title":"Ui Language Notice Dismissed","default":false},"analytics_opt_out":{"type":"boolean","title":"Analytics Opt Out","default":false},"product_emails_off":{"type":"boolean","title":"Product Emails Off","default":false}},"type":"object","required":["id","email","name","created_at"],"title":"UserOut"},"ValidationError":{"type":"object","title":"ValidationError","required":["loc","msg"],"properties":{"loc":{"type":"array","items":{"type":"string"},"description":"Where the error is, for example `[\"body\", \"text\"]`."},"msg":{"type":"string","description":"What is wrong with it."}}},"VerifyEmailRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"VoiceOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["reference","design","preset"],"title":"Kind"},"description":{"type":"string","title":"Description","default":""},"prompt_text":{"type":"string","title":"Prompt Text","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"has_audio":{"type":"boolean","title":"Has Audio","default":false},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","user_id","name","kind","created_at","updated_at"],"title":"VoiceOut"},"VoiceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"prompt_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Prompt Text"},"tags":{"anyOf":[{"items":{"type":"string","maxLength":40},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","title":"VoiceUpdateRequest"},"Error":{"type":"object","title":"Error","required":["detail"],"properties":{"detail":{"type":"string","description":"What went wrong, in plain words."},"code":{"type":"string","description":"A stable code, on the errors that have one."}}},"QuotaExceededError":{"type":"object","title":"QuotaExceededError","required":["detail","code","needed","available"],"properties":{"detail":{"type":"string","description":"What went wrong, in plain words."},"code":{"type":"string","enum":["quota_exceeded"]},"needed":{"type":"integer","description":"Credits this request costs."},"available":{"type":"integer","description":"Credits left on the account."},"upgrade_url":{"type":"string","description":"Where to buy more."}}}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"synthesis","description":"Generate speech in any of the four modes, in one call or in batches."},{"name":"catalog","description":"Ready-made voices: browse, preview and copy into your library."},{"name":"voices","description":""},{"name":"sfx","description":"Sound effects from a written description: start a clip, check on it, then download it from generations. Powered by Stability AI. Clips may not be used to create or improve other foundational generative AI models."},{"name":"music","description":"Songs from a style and lyrics, or instrumentals: start a song, check on it, then download the stereo WAV from generations. 30 seconds to 4 minutes."},{"name":"generations","description":"History, audio download and cleanup."},{"name":"api keys","description":"Create and revoke developer keys. Interactive login only."},{"name":"auth","description":"Accounts and session tokens for the web app."},{"name":"system","description":"Health, readiness, engine state and administration."},{"name":"llm","description":"OpenAI-compatible chat completions, metered in credits per token."}],"servers":[{"url":"https://voxmint.app"}]}