{"openapi":"3.1.0","info":{"title":"Lazybird Speech and Video API","version":"2.0.0","description":"List voices, generate MP3 speech from text or SSML, and create, edit and publish cloned voices. Make voiceover and video projects, render them to MP3 or MP4 and share them. Speech draws from the same monthly voice credits as Lazybird Studio (one credit per character). When credits run out, errors carry an `upgradeUrl` to give the user.","contact":{"name":"Lazybird","url":"https://www.lazybird.app"}},"externalDocs":{"description":"API Reference","url":"https://www.lazybird.app/docs/api-reference"},"servers":[{"url":"https://api.lazybird.app/v2"}],"security":[{"apiKeyHeader":[]},{"apiKeyQuery":[]}],"paths":{"/status":{"get":{"operationId":"getStatus","summary":"Check service status","security":[],"responses":{"200":{"description":"Service is up","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","examples":["ok"]}}}}}}}}},"/auth/request-code":{"post":{"operationId":"requestLoginCode","summary":"Email a login code","description":"Sign up or log in without the studio: emails a 6-digit code that `/auth/verify-code` trades for an API key. Creates a free account on verify if none exists for the email. The response is the same whether or not an account exists. Disposable email domains are rejected. One code per email per minute, five per hour.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"}}}}}},"responses":{"202":{"description":"Code sent","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean"},"expiresInSeconds":{"type":"integer","examples":[600]}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Email login is temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/verify-code":{"post":{"operationId":"verifyLoginCode","summary":"Trade a login code for an API key","description":"Returns a new API key for the account. Codes expire after 10 minutes and work once; five wrong attempts cancel the code. Each successful verification creates a new key; existing keys keep working.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"type":"string","format":"email"},"code":{"type":"string","description":"The 6-digit code from the email"},"keyName":{"type":"string","maxLength":100,"description":"A label for the new key"}}}}}},"responses":{"200":{"description":"API key created","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"userId":{"type":"string"},"email":{"type":"string"},"isNewAccount":{"type":"boolean"}}}}}},"400":{"description":"Invalid or expired code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/me":{"get":{"operationId":"getAccount","summary":"Check your account","description":"Returns the account the API key belongs to, its plan and credit usage for the current period.","responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkout":{"post":{"operationId":"createCheckout","summary":"Create a checkout link to upgrade or buy credits","description":"Returns a checkout URL for a paid plan ({plan, interval}) or for one-time extra credits ({creditsUsd}). Open it in a browser to pay; the plan or credits apply as soon as payment completes and the same API key keeps working. Extra credits need a plan; they cost $20 per 1M on Creator and $5 on Pro or Max, bought in whole dollars from $10 to $1,000, and never expire.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["plan","interval"],"properties":{"plan":{"type":"string","enum":["creator","pro","max"]},"interval":{"type":"string","enum":["monthly","yearly"]}}},{"type":"object","required":["creditsUsd"],"properties":{"creditsUsd":{"type":"integer","minimum":10,"maximum":1000}}}]}}}},"responses":{"200":{"description":"Checkout link","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutUrl":{"type":"string","format":"uri"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices":{"get":{"operationId":"listVoices","summary":"List voices","description":"Returns the voices you can use, in two sections: `myVoices` (your own clones and published voices, plus the clones teammates shared with your team) and `library` (the public voice library, including any of your voices you have published), each up to `limit` voices, with `totals` counting every match. Add `section` to get one section and page through it with `cursor`. Both sections follow `sort` exactly, ties ordered by `id`; voices you starred in the Studio are flagged `favorite` but keep their place. Use a voice `id` as `voiceId` when generating speech.","parameters":[{"name":"q","in":"query","required":false,"description":"Search words; a voice matches when each word appears in its name, description or labels","schema":{"type":"string"}},{"name":"language","in":"query","required":false,"description":"A locale such as `en-US`, or a language such as `en` for all of its locales","schema":{"type":"string"}},{"name":"gender","in":"query","required":false,"schema":{"type":"string","enum":["female","male"]}},{"name":"labels","in":"query","required":false,"description":"Comma-separated labels; a voice must carry all of them","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"`recommended` (default), `trending` (most uses in the last 7 days), `usage` (most uses of all time), `recent` (newest first) or `name` (A to Z)","schema":{"type":"string","enum":["recommended","trending","usage","recent","name"]}},{"name":"limit","in":"query","required":false,"description":"Voices per section","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"section","in":"query","required":false,"description":"Return only this section, paged with `cursor`","schema":{"type":"string","enum":["myVoices","library"]}},{"name":"cursor","in":"query","required":false,"description":"`nextCursor` of the previous page, with the same `section`, filters and sort. A malformed cursor, one from another sort, or one whose voice was removed returns 400.","schema":{"type":"string"}}],"responses":{"200":{"description":"Voices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceList"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createVoice","summary":"Create a cloned voice","description":"Creates a private cloned voice from a clean 10–30 second sample of one speaker. Requires available voice cloning slots on your plan. Send either a `sample` file (multipart) or a public `sampleUrl` (JSON).","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["name","sample"],"properties":{"name":{"type":"string","description":"Display name for the voice"},"sample":{"type":"string","format":"binary","description":"MP3, WAV or OGG, up to 20 MB"},"rightsConfirmed":{"type":"boolean","description":"Confirms you own this voice or the speaker consented to cloning it (see the Acceptable Use Policy). Recorded on the voice."}}}},"application/json":{"schema":{"type":"object","required":["name","sampleUrl"],"properties":{"name":{"type":"string","description":"Display name for the voice"},"sampleUrl":{"type":"string","format":"uri","description":"Publicly reachable URL of the voice sample"},"rightsConfirmed":{"type":"boolean","description":"Confirms you own this voice or the speaker consented to cloning it (see the Acceptable Use Policy). Recorded on the voice."}}}}}},"responses":{"201":{"description":"Voice created","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/design":{"post":{"operationId":"designVoice","summary":"Design a voice from a description","description":"Generates a new voice from a text description of who is speaking and returns a hosted MP3 sample of it speaking `text` (the description is never spoken). Each design uses characters equal to the length of `text`, with a minimum of 50. This does not create a voice; pass `sampleUrl` to `POST /voices` to keep it. Reuse the returned `seed` with the same description and text to reproduce the voice.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["description","text"],"properties":{"description":{"type":"string","maxLength":500,"description":"Who is speaking: age, gender, pitch, energy, accent, emotion"},"text":{"type":"string","maxLength":1000,"description":"What the sample says"},"language":{"type":"string","description":"Locale of `text`, e.g. `en-US`. Detected when omitted"},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Omit for a new random voice"}}},"example":{"description":"A youthful, energetic, enthusiastic American woman","text":"Hey there! I am so excited to show you what we built this week."}}}},"responses":{"200":{"description":"Designed voice sample","content":{"application/json":{"schema":{"type":"object","properties":{"sampleUrl":{"type":"string","format":"uri"},"seed":{"type":"integer"},"duration":{"type":"number","description":"Sample length in seconds"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/{voiceId}":{"get":{"operationId":"getVoice","summary":"Get a voice","description":"Returns one voice: any voice in the public library, or one of your own private voices.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"responses":{"200":{"description":"The voice","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateVoice","summary":"Update one of your voices","description":"Changes the name, description, labels, language or avatar of one of your own voices. Send only the fields to change. Edits to a published voice show in the public library right away. For the avatar, upload an image as multipart `avatar`, or send a public `avatarUrl`; either way it is cropped to a 200×200 square.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVoiceRequest"},"example":{"description":"Deep, calm narrator","labels":["Narrator","Male"],"language":"en-US"}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"labels":{"type":"string","description":"Comma-separated labels"},"language":{"type":"string"},"avatar":{"type":"string","format":"binary","description":"PNG, JPEG or WebP image, up to 5 MB"}}}}}},"responses":{"200":{"description":"The updated voice","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteVoice","summary":"Delete one of your voices","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"responses":{"200":{"description":"Voice deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/{voiceId}/sample":{"put":{"operationId":"replaceVoiceSample","summary":"Replace the sample of one of your voices","description":"Clones one of your voices again from a new clean 10–30 second sample of one speaker. The voice keeps its ID, name and other details; speech generated from then on uses the new sample, and its preview clip is cleared. Counts as one voice creation toward the plan's monthly limit but uses no extra voice slot. Send either a `sample` file (multipart) or a public `sampleUrl` (JSON). `rightsConfirmed` is required when the voice is published.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["sample"],"properties":{"sample":{"type":"string","format":"binary","description":"MP3, WAV or OGG, up to 20 MB"},"rightsConfirmed":{"type":"boolean","description":"Confirms you own this voice or the speaker consented to cloning it (see the Acceptable Use Policy). Required for published voices."}}}},"application/json":{"schema":{"type":"object","required":["sampleUrl"],"properties":{"sampleUrl":{"type":"string","format":"uri","description":"Publicly reachable URL of the new voice sample"},"rightsConfirmed":{"type":"boolean","description":"Confirms you own this voice or the speaker consented to cloning it (see the Acceptable Use Policy). Required for published voices."}}}}}},"responses":{"200":{"description":"The voice with its new sample","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/{voiceId}/publish":{"post":{"operationId":"publishVoice","summary":"Publish one of your voices","description":"Adds a private voice to the public voice library, where anyone can find it and generate speech with it.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"responses":{"200":{"description":"The published voice","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/{voiceId}/unpublish":{"post":{"operationId":"unpublishVoice","summary":"Unpublish one of your voices","description":"Removes a published voice from the public library; it stays in your voices.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"responses":{"200":{"description":"The voice, private again","content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"$ref":"#/components/schemas/Voice"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voices/{voiceId}/preview":{"post":{"operationId":"renderVoicePreview","summary":"Render a voice preview","description":"Returns the voice's short preview clip (the `previewText` line), rendering it on first call. Later calls return the stored clip. Rendering uses the voice owner's credits. Changing the voice language clears the preview so the next call renders it again.","parameters":[{"name":"voiceId","in":"path","required":true,"description":"Voice `id` (or a legacy `pv:` id)","schema":{"type":"string"}}],"responses":{"200":{"description":"Preview clip","content":{"application/json":{"schema":{"type":"object","required":["previewUrl"],"properties":{"previewUrl":{"type":"string","format":"uri","description":"MP3 URL"},"duration":{"type":"number","description":"Seconds; only set when the clip was rendered by this call"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/generate-speech":{"post":{"operationId":"generateSpeech","summary":"Generate speech","description":"Generates speech with the selected voice and returns an MP3 file, or with `phone` a WAV for phone systems. Provide exactly one of `text` and `ssml`; unknown fields, in the body or in `settings`, return 400. Save the response body to a file.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSpeechRequest"},"example":{"voiceId":"tgJ2Hes6DauwTg8kFrRPLN","text":"My name is Elyssia and I am a voice from Lazybird."}}}},"responses":{"200":{"description":"MP3 audio, or a WAV with `phone`","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects":{"get":{"operationId":"listProjects","summary":"List your projects","description":"Newest first. Page with `cursor` from the previous page's `nextCursor`.","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Search by name"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createProject","summary":"Create a project","description":"Creates an empty project. Add its voiceover, picture and sound with `PATCH /projects/{projectId}`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}}},"example":{"name":"Product launch ad"}}}},"responses":{"201":{"description":"The new project","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/ProjectSummary"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/change-schema":{"get":{"operationId":"getProjectChangeSchema","summary":"Get the project change schema","description":"The JSON Schema of the `changes` that `PATCH /projects/{projectId}` takes, a description of each action, and `guide`: how to build the picture and sound, with the shape of every block, animation, canvas, style, font and variable.","responses":{"200":{"description":"The schema","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"changes":{"type":"object"},"guide":{"type":"string","description":"Markdown."}}}}}}}}},"/projects/{projectId}":{"get":{"operationId":"getProject","summary":"Read a project","description":"The project's voiceover in order (each block with its `speech` state: `has speech`, `speech being made`, `needs speech`, `speech failed` or `empty`), its picture and sound blocks, animations, canvas, styles, variables and uploads. `outOfCredits` is set while blocks have no speech because voice credits ran out.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRead"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"editProject","summary":"Change a project","description":"Applies `changes` in order, all or none. Actions: `update_project`; `insert_voiceover`, `update_voiceover`, `move_voiceover`, `delete_voiceover`; `add_block`, `update_block`, `delete_block`; `add_animation`, `update_animation`, `delete_animation`; `set_canvas`; `set_style`, `delete_style`; `set_font`, `delete_font`; `set_variable`, `delete_variable`. `GET /projects/change-schema` has every field. New items take a `ref` that later changes in the same request can use as their `id`. Edits and speech requests are rate limited per account (429).","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["changes"],"properties":{"changes":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","required":["action"],"properties":{"action":{"type":"string"}},"additionalProperties":true}}}},"example":{"changes":[{"action":"insert_voiceover","ref":"intro","text":"Meet the fastest way to make a voiceover.","voiceId":"tgJ2Hes6DauwTg8kFrRPLN"},{"action":"insert_voiceover","after":"intro","pause":0.5}]}}}},"responses":{"200":{"description":"What changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectEditResult"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteProject","summary":"Delete a project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"Project deleted","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/duplicate":{"post":{"operationId":"duplicateProject","summary":"Copy a project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}}}}}},"responses":{"201":{"description":"The copy","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/ProjectSummary"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/speech":{"post":{"operationId":"generateProjectSpeech","summary":"Make the project's speech","description":"Makes speech for the voiceover blocks that need it, using voice credits. Poll `GET /projects/{projectId}` until no block is `speech being made`.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"blockIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":1000},"regenerate":{"type":"boolean","description":"Also make new speech for blocks that have it"}}}}}},"responses":{"202":{"description":"Speech requested","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/exports":{"get":{"operationId":"listExports","summary":"List a project's exports","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The exports","content":{"application/json":{"schema":{"type":"object","properties":{"exports":{"type":"array","items":{"$ref":"#/components/schemas/Export"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"exportProject","summary":"Render a project","description":"Starts rendering a video, audio or transcript file; poll `GET /projects/{projectId}/exports/{exportId}` until `status` is `completed` (the file is at `url`) or `failed`. A video needs a picture, and every voiceover block needs its speech unless `allowMissingSpeech` (else 400, or 422 with `upgradeUrl` when voice credits ran out). Each account renders a few exports at once and a limited length of output a day, videos apart from other files: over either, 429 with `Retry-After`.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"},"example":{"type":"video","format":"mp4"}}}},"responses":{"202":{"description":"The export, rendering","content":{"application/json":{"schema":{"type":"object","properties":{"export":{"$ref":"#/components/schemas/Export"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/exports/{exportId}":{"get":{"operationId":"getExport","summary":"Get an export","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}},{"name":"exportId","in":"path","required":true,"description":"Export `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The export","content":{"application/json":{"schema":{"type":"object","properties":{"export":{"$ref":"#/components/schemas/Export"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/uploads":{"get":{"operationId":"listUploads","summary":"List a project's uploads","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The uploads","content":{"application/json":{"schema":{"type":"object","properties":{"uploads":{"type":"array","items":{"$ref":"#/components/schemas/Upload"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createUpload","summary":"Start a file upload","description":"Returns a signed `uploadUrl`: POST a `multipart/form-data` form to it, without the API key, within an hour: every field of `uploadFields`, then the file as `file`. Then call `POST /projects/{projectId}/uploads/{uploadId}/finalize`. A file is up to 100 MB, and uploads share the plan's storage.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fileName","type","size"],"properties":{"fileName":{"type":"string"},"type":{"type":"string","enum":["image","video","audio"]},"size":{"type":"integer","description":"The file's size in bytes","maximum":104857600}}},"example":{"fileName":"clip.mp4","type":"video","size":7340032}}}},"responses":{"201":{"description":"The upload, pending","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"$ref":"#/components/schemas/Upload"},"uploadUrl":{"type":"string","format":"uri"},"uploadFields":{"type":"object","additionalProperties":{"type":"string"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/uploads/{uploadId}/finalize":{"post":{"operationId":"finalizeUpload","summary":"Finish a file upload","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"description":"Upload `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"$ref":"#/components/schemas/Upload"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/uploads/from-url":{"post":{"operationId":"uploadFromUrl","summary":"Add media from a URL","description":"Copies an image, video or audio file into the project's uploads from a stock media result or another Lazybird file (a `cdn.lazybird.app`, Pexels or Pixabay URL). Other sites are refused: upload their files instead.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string"}}},"example":{"url":"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg","name":"Team"}}}},"responses":{"201":{"description":"The upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"$ref":"#/components/schemas/Upload"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/share":{"post":{"operationId":"shareProject","summary":"Get a share link","description":"A link anyone can open to watch or listen to the project. It plays the project's latest MP4 (or MP3 for a voiceover) while that export matches the project, otherwise a live preview of the project as it is: export after your last change to share the finished file.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project `id`","schema":{"type":"string"}}],"responses":{"200":{"description":"The link","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stock/images":{"get":{"operationId":"searchStockImages","summary":"Search stock images","description":"Free stock images to add to projects. Each result has a `block` ready for an `add_block` change: give it a `startTime`.","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Results","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stock/videos":{"get":{"operationId":"searchStockVideos","summary":"Search stock videos","description":"Free stock videos to add to projects. Each result has a `block` ready for an `add_block` change: give it a `startTime`.","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Results","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/music":{"get":{"operationId":"searchMusic","summary":"Search stock music","description":"Free music tracks to add to projects by `cdnUrl`.","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"instrumental","in":"query","schema":{"type":"boolean"}},{"name":"minDuration","in":"query","schema":{"type":"number"},"description":"Seconds"},{"name":"maxDuration","in":"query","schema":{"type":"number"},"description":"Seconds"},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":10}}],"responses":{"200":{"description":"Tracks","content":{"application/json":{"schema":{"type":"object","properties":{"tracks":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Plan limit reached (credits, voice slots or plan feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"apiKeyQuery":{"type":"apiKey","in":"query","name":"api_key"}},"schemas":{"Voice":{"type":"object","description":"Fields without a value are left out","required":["id","displayName","gender"],"properties":{"id":{"type":"string","description":"Pass as `voiceId`. Treat as opaque."},"displayName":{"type":"string"},"description":{"type":"string"},"language":{"type":"string","description":"Primary language and accent as a locale, e.g. `en-US`"},"detectedLanguage":{"type":"string","description":"Language heard in the voice's sample, as a bare code such as `vi`; `language` wins when both are set"},"detectedLocale":{"type":"string","description":"Accent heard in the voice's sample, e.g. `en-GB`, when it is clear"},"gender":{"type":"string","enum":["female","male","unknown"]},"labels":{"type":"array","items":{"type":"string"}},"styleList":{"type":"array","items":{"type":"string"},"description":"Values `settings.style` accepts for this voice"},"avatar":{"type":"string","format":"uri"},"previewText":{"type":"string","description":"The line the preview clip speaks"},"previewUrl":{"type":"string","format":"uri","description":"Preview clip (MP3)"},"scope":{"type":"string","enum":["global","community","user"],"description":"`global` (Lazybird library), `community` (published by a user) or `user` (private clone)"},"published":{"type":"boolean","description":"In the public library"},"mine":{"type":"boolean","description":"The voice is yours"},"favorite":{"type":"boolean","description":"You starred the voice in the Studio"},"official":{"type":"boolean","description":"Official Lazybird voice"},"featured":{"type":"boolean","description":"Featured in the voice library"},"popular":{"type":"boolean","description":"One of the 10 most used voices of all time"},"trending":{"type":"boolean","description":"One of the 10 most used voices of the last 7 days"},"createdAt":{"type":"string","format":"date-time"},"ownerNickname":{"type":"string","description":"Creator's name on user-made voices whose creator has a public profile"},"ownerUserId":{"type":"string","description":"Creator's user ID on published voices whose creator has a public profile"},"stats":{"type":"object","description":"Usage of library voices","properties":{"usageCount":{"type":"integer","description":"Uses of all time"},"usageCount7d":{"type":"integer","description":"Uses in the last 7 days"},"popularRank":{"type":"integer","description":"Position among the 10 most used voices of all time"},"trendingRank":{"type":"integer","description":"Position among the 10 most used voices of the last 7 days"}}}}},"VoiceList":{"type":"object","required":["myVoices","library"],"properties":{"myVoices":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}},"library":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}},"totals":{"type":"object","description":"Matching voices per section (without `section`)","properties":{"myVoices":{"type":"integer"},"library":{"type":"integer"}}},"nextCursor":{"type":"string","description":"With `section`: pass as `cursor` for the next page; absent on the last page"}}},"UpdateVoiceRequest":{"type":"object","description":"Send only the fields to change","properties":{"name":{"type":"string"},"description":{"type":"string"},"labels":{"type":"array","items":{"type":"string","enum":["Male","Female","Child","Young Adult","Adult","Elder","Narrator","Audiobook","Podcast","Character","Celebrity","Streamer","Advertising","Anime","ASMR","Customer Service","Documentary","Education","Horror","Kids","Meditation","News","Sleep","Storytelling","Trailer","Calm","Deep","Energetic"]},"description":"Replaces the voice's labels"},"language":{"type":"string","description":"Primary locale such as `en-US` or `ja-JP`; an empty string clears it"},"avatarUrl":{"type":"string","format":"uri","description":"Public PNG, JPEG or WebP image URL"}}},"Account":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"plan":{"type":"object","properties":{"tier":{"type":"string","description":"`free`, `creator`, `pro`, `max`, or `legacy` for older plans"},"name":{"type":"string"},"isPaid":{"type":"boolean"}}},"credits":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":"integer"},"extraCredits":{"type":"integer"},"remaining":{"type":"integer"},"resetsAt":{"type":"string","format":"date-time"}}}}},"VoiceSettings":{"type":"object","description":"All fields optional","additionalProperties":false,"properties":{"style":{"type":"string","description":"One of the voice's `styleList` values; ignored, with `styleIntensity`, when the voice doesn't list it"},"styleIntensity":{"type":"number","description":"Strength of `style`. 1 is the default; the closest level the voice has is used"},"speed":{"type":"number","exclusiveMinimum":0,"description":"1 is normal speed"},"pitch":{"type":"number","exclusiveMinimum":0,"description":"1 is the default pitch"},"volume":{"type":"number","minimum":0,"description":"1 is the default volume; 0 is silent"},"locale":{"type":"string","description":"Language and accent to speak in, as a locale with a region such as `es-ES`. Any voice can speak any supported language. A bare language such as `es` returns 400."},"instruction":{"type":"string","maxLength":200,"description":"How the speech is acted, in a few words such as `whispering, nervous`; never spoken. Brackets are dropped, and one without words returns 400."},"effect":{"type":"string","enum":["robot","deep","monster","echo","radio","phone"],"description":"A sound effect on the finished speech: `robot`, `deep`, `monster`, `echo` (a large hall), `radio` (a walkie-talkie) or `phone` (a phone call). Leave it out for plain speech."}}},"GenerateSpeechRequest":{"type":"object","required":["voiceId"],"oneOf":[{"required":["text"]},{"required":["ssml"]}],"additionalProperties":false,"properties":{"voiceId":{"type":"string","description":"Voice `id` from GET /voices"},"text":{"type":"string","minLength":1,"description":"Plain text to speak, not blank"},"ssml":{"type":"string","minLength":1,"description":"SSML (use instead of `text` for pauses or markup)"},"settings":{"$ref":"#/components/schemas/VoiceSettings"},"phone":{"type":"string","enum":["pcm","mulaw"],"description":"Return an 8 kHz mono WAV for phone systems (voicemail, phone menus) instead of an MP3: `pcm` (16-bit) or `mulaw` (G.711 µ-law)"}}},"ProjectSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["audio","video"]},"voiceIds":{"type":"array","items":{"type":"string"}},"firstLine":{"type":"string"},"version":{"type":"integer"},"thumbnailUrl":{"type":"string","format":"uri"},"projectUrl":{"type":"string","format":"uri","description":"Opens it in Lazybird's Create editor"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ProjectList":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/ProjectSummary"}},"total":{"type":"integer"},"nextCursor":{"type":"string","description":"Absent on the last page"}}},"ProjectRead":{"type":"object","properties":{"id":{"type":"string"},"project":{"type":"object","description":"name, autoGenerate, metadata, volume, cover, voices, canvas, duration, tracks, voiceover, blocks, animations, styles, variables, uploads"},"outOfCredits":{"type":"object","properties":{"blocks":{"type":"integer"},"message":{"type":"string"},"upgradeUrl":{"type":"string","format":"uri"}}}}},"ProjectEditResult":{"type":"object","properties":{"changed":{"type":"boolean"},"summary":{"type":"array","items":{"type":"string"}},"ids":{"type":"object","additionalProperties":{"type":"string"},"description":"The id each new item's `ref` got"},"speechBlockIds":{"type":"array","items":{"type":"string"}},"needSpeechBlockIds":{"type":"array","items":{"type":"string"}}}},"ExportRequest":{"type":"object","required":["type","format"],"properties":{"type":{"type":"string","enum":["video","audio","transcript"]},"format":{"type":"string","enum":["mp4","mov","mp3","wav","ogg","txt","docx","srt","vtt"],"description":"video: mp4, mov; audio: mp3, wav, ogg; transcript: txt, docx, srt, vtt"},"width":{"type":"integer","description":"Video only, with `height`"},"height":{"type":"integer"},"phone":{"type":"string","enum":["pcm","mulaw"],"description":"WAV audio only: 8 kHz mono for phone systems"},"allowMissingSpeech":{"type":"boolean"}}},"Export":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"type":{"type":"string","enum":["video","audio","transcript"]},"format":{"type":"string"},"resolution":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}}},"phone":{"type":"string"},"status":{"type":"string","enum":["idle","exporting","completed","failed","expired"]},"url":{"type":"string","format":"uri","description":"The file, once completed, for 30 days"},"projectVersion":{"type":"integer","description":"The project `version` it rendered"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Upload":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string","format":"uri"},"status":{"type":"string"},"thumbnailUrl":{"type":"string","format":"uri"},"duration":{"type":"number"},"size":{"type":"integer","description":"Bytes"},"createdAt":{"type":"string","format":"date-time"}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"},"details":{},"upgradeUrl":{"type":"string","format":"uri","description":"Set when credits ran out: where the user upgrades"},"retryAfterSeconds":{"type":"integer","description":"On 429"}}}}}}