[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-venice-ai-venice-audio-music":3,"mdc--xty348-key":31,"related-repo-venice-ai-venice-audio-music":3410,"related-org-venice-ai-venice-audio-music":3502},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":26,"sourceUrl":29,"mdContent":30},"venice-audio-music","generate music and audio tracks","Async music \u002F audio-track generation via Venice. Covers the \u002Faudio\u002Fquote + \u002Faudio\u002Fqueue + \u002Faudio\u002Fretrieve + \u002Faudio\u002Fcomplete lifecycle, lyrics vs instrumental, voice selection, duration, language, speed, model capability probing, and webhook-free polling.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"venice-ai","Venice AI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvenice-ai.png","veniceai",[13,17],{"name":14,"slug":15,"type":16},"Creative","creative","tag",{"name":18,"slug":19,"type":16},"Audio","audio",119,"https:\u002F\u002Fgithub.com\u002Fveniceai\u002Fskills","2026-07-17T06:04:02.174106",null,15,[],{"repoUrl":21,"stars":20,"forks":24,"topics":27,"description":28},[],"Agent Skills for the Venice.ai API. One folder per surface area, each with a SKILL.md for agent runtimes (Cursor, Claude, Codex, etc.).","https:\u002F\u002Fgithub.com\u002Fveniceai\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fvenice-audio-music","---\nname: venice-audio-music\ndescription: Async music \u002F audio-track generation via Venice. Covers the \u002Faudio\u002Fquote + \u002Faudio\u002Fqueue + \u002Faudio\u002Fretrieve + \u002Faudio\u002Fcomplete lifecycle, lyrics vs instrumental, voice selection, duration, language, speed, model capability probing, and webhook-free polling.\n---\n\n# Venice Music \u002F Async Audio\n\nMusic (and long-form voice) generation is **asynchronous**. The flow is:\n\n```\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fquote      → price in USD\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fqueue      → { queue_id }      (funds reserved)\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fretrieve   → status or binary audio\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fcomplete   → finalize & delete media\n```\n\nFor short text-to-speech, use the synchronous [`venice-audio-speech`](..\u002Fvenice-audio-speech\u002FSKILL.md) endpoint instead.\n\n## Use when\n\n- You need songs, jingles, score, soundscape, or long narration.\n- The selected model uses **duration-based** or **character-based** pricing and must be priced before submission.\n- The expected generation time is long enough (> 20 s) that sync call would time out.\n\n## Lifecycle\n\n### 1. `POST \u002Faudio\u002Fquote` — price it first\n\n```bash\ncurl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fquote \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"elevenlabs-music\",\n    \"duration_seconds\": 60\n  }'\n```\n\nResponse: `{\"quote\": 0.48}` (USD).\n\n| Field | Notes |\n|---|---|\n| `model` | Required. Music\u002Faudio model from `GET \u002Fmodels?type=music`. |\n| `duration_seconds` | Integer or numeric string. Only if the model reports duration metadata. |\n| `character_count` | Required for models with `pricing.per_thousand_characters` (long narration). |\n\n### 2. `POST \u002Faudio\u002Fqueue` — enqueue\n\n```bash\ncurl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fqueue \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"elevenlabs-music\",\n    \"prompt\": \"Uplifting indie-folk acoustic track, 120 BPM, major key.\",\n    \"lyrics_prompt\": \"Verse 1: Walking through the city lights...\\nChorus: We are the dreamers...\",\n    \"duration_seconds\": 60,\n    \"voice\": \"Aria\",\n    \"language_code\": \"en\",\n    \"speed\": 1.0,\n    \"force_instrumental\": false,\n    \"lyrics_optimizer\": false\n  }'\n```\n\nResponse: `{ \"model\": \"...\", \"queue_id\": \"uuid\" }`.\n\n| Field | Notes |\n|---|---|\n| `model` | Required. |\n| `prompt` | Required. Describe genre, mood, tempo, instruments. Length caps in `\u002Fmodels`. |\n| `lyrics_prompt` | Lyrics. **Required** when `lyrics_required=true`, **rejected** when `supports_lyrics=false`. |\n| `duration_seconds` | Integer or string. Model-dependent. |\n| `force_instrumental` | Only when `supports_force_instrumental=true`. |\n| `lyrics_optimizer` | Auto-generate lyrics from `prompt`. Requires `supports_lyrics_optimizer=true`. `lyrics_prompt` must be empty. |\n| `voice` | For voice-enabled models. See `voices` + `default_voice` in `\u002Fmodels`. |\n| `language_code` | ISO 639-1. Requires `supports_language_code=true`. |\n| `speed` | Requires `supports_speed=true`. Use model's `min_speed`\u002F`max_speed`. |\n\n### 3. `POST \u002Faudio\u002Fretrieve` — poll status \u002F download\n\n```bash\ncurl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fretrieve \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"elevenlabs-music\",\"queue_id\":\"...\"}' \\\n  --output track.mp3\n```\n\n- If still processing: JSON `{\"status\":\"PROCESSING\",\"average_execution_time\":...,\"execution_duration\":...}`.\n- If done: binary audio body (`audio\u002Fmpeg` or similar). Save the bytes.\n- Set `delete_media_on_completion: true` to skip step 4.\n\nPoll every 2–5 s; use `average_execution_time` (ms, P80) as a guideline for your first poll delay.\n\n### 4. `POST \u002Faudio\u002Fcomplete` — cleanup\n\n```bash\ncurl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fcomplete \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"elevenlabs-music\",\"queue_id\":\"...\"}'\n```\n\nRemoves the media from Venice storage after you've downloaded it. Required unless you used `delete_media_on_completion: true` on retrieve.\n\n## Full loop (TypeScript)\n\n```ts\nconst base = 'https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1'\nconst headers = {\n  Authorization: `Bearer ${process.env.VENICE_API_KEY}`,\n  'Content-Type': 'application\u002Fjson',\n}\n\nasync function generateTrack() {\n  \u002F\u002F 1. Quote\n  const quote = await fetch(`${base}\u002Faudio\u002Fquote`, {\n    method: 'POST', headers,\n    body: JSON.stringify({ model: 'elevenlabs-music', duration_seconds: 60 }),\n  }).then(r => r.json())\n  console.log('price:', quote.quote)\n\n  \u002F\u002F 2. Queue\n  const { queue_id, model } = await fetch(`${base}\u002Faudio\u002Fqueue`, {\n    method: 'POST', headers,\n    body: JSON.stringify({\n      model: 'elevenlabs-music',\n      prompt: 'Uplifting indie-folk acoustic track, 120 BPM.',\n      duration_seconds: 60,\n      force_instrumental: true,\n    }),\n  }).then(r => r.json())\n\n  \u002F\u002F 3. Poll\n  while (true) {\n    const res = await fetch(`${base}\u002Faudio\u002Fretrieve`, {\n      method: 'POST', headers,\n      body: JSON.stringify({ model, queue_id }),\n    })\n    const ct = res.headers.get('content-type') ?? ''\n    if (ct.startsWith('audio\u002F')) {\n      const buf = Buffer.from(await res.arrayBuffer())\n      await fs.writeFile('track.mp3', buf)\n      break\n    }\n    const { status } = await res.json()\n    if (status !== 'PROCESSING') throw new Error(`unexpected ${status}`)\n    await new Promise(r => setTimeout(r, 3000))\n  }\n\n  \u002F\u002F 4. Complete\n  await fetch(`${base}\u002Faudio\u002Fcomplete`, {\n    method: 'POST', headers,\n    body: JSON.stringify({ model, queue_id }),\n  })\n}\n```\n\n## Capability probing\n\nBefore calling `\u002Faudio\u002Fqueue`, inspect the model entry returned by `GET \u002Fmodels?type=music` — each row's `model_spec` exposes (among other fields):\n\n- `supports_lyrics`, `lyrics_required`, `supports_lyrics_optimizer`\n- `supports_force_instrumental`, `supports_speed`, `supports_language_code`\n- `voices[]`, `default_voice`\n- `min_prompt_length`, `prompt_character_limit`\n- `min_speed`, `max_speed`\n- `pricing.generation` (per-job), `pricing.per_second` (per second generated), `pricing.per_thousand_characters` (character-priced narration), or `pricing.durations` (duration-tiered map: `{ \"\u003Ctier>\": { usd, diem, min_seconds, max_seconds } }`) — each model uses one of these shapes\n\n## Errors\n\n| Code | Meaning |\n|---|---|\n| `400` | Wrong params (lyrics on an instrumental-only model, `duration_seconds` outside allowed range, voice not in model's list). |\n| `401` | Auth \u002F Pro-only model. |\n| `402` | Insufficient balance. Bearer → `INSUFFICIENT_BALANCE`; x402 → `PAYMENT_REQUIRED`. |\n| `404` | On `retrieve`\u002F`complete`: unknown \u002F expired `queue_id`. |\n| `422` | Content policy violation. `ContentViolationError` may include `suggested_prompt`. |\n| `429` | Rate limited. |\n| `500` \u002F `503` | Inference or capacity issue. |\n\n## Gotchas\n\n- **Quote before queue** — music is pay-per-second; unexpected `duration_seconds` can blow through a budget. Use `\u002Faudio\u002Fquote` to gate the `queue` call against your available balance (`\u002Fbilling\u002Fbalance` or `\u002Fx402\u002Fbalance\u002F...`).\n- `queue_id` is UUIDv4. Store it alongside the `model` — both are required for every subsequent call.\n- Media URLs are ephemeral. Download during `retrieve` and store yourself; after `complete`, Venice deletes the file.\n- `lyrics_optimizer: true` and a non-empty `lyrics_prompt` is a `400`.\n- Poll rate: don't hammer `\u002Fretrieve`. 2–5 s is plenty — the job queue is the same regardless of poll frequency.\n- `execution_duration` from the retrieve status is cumulative (ms since enqueue); `average_execution_time` is the P80 expected total.\n",{"data":32,"body":33},{"name":4,"description":6},{"type":34,"children":35},"root",[36,45,59,72,90,97,131,137,152,295,308,403,417,594,605,892,906,1017,1058,1071,1085,1177,1189,1195,2874,2880,2907,3043,3049,3257,3263,3404],{"type":37,"tag":38,"props":39,"children":41},"element","h1",{"id":40},"venice-music-async-audio",[42],{"type":43,"value":44},"text","Venice Music \u002F Async Audio",{"type":37,"tag":46,"props":47,"children":48},"p",{},[49,51,57],{"type":43,"value":50},"Music (and long-form voice) generation is ",{"type":37,"tag":52,"props":53,"children":54},"strong",{},[55],{"type":43,"value":56},"asynchronous",{"type":43,"value":58},". The flow is:",{"type":37,"tag":60,"props":61,"children":65},"pre",{"className":62,"code":64,"language":43},[63],"language-text","POST \u002Fapi\u002Fv1\u002Faudio\u002Fquote      → price in USD\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fqueue      → { queue_id }      (funds reserved)\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fretrieve   → status or binary audio\nPOST \u002Fapi\u002Fv1\u002Faudio\u002Fcomplete   → finalize & delete media\n",[66],{"type":37,"tag":67,"props":68,"children":70},"code",{"__ignoreMap":69},"",[71],{"type":43,"value":64},{"type":37,"tag":46,"props":73,"children":74},{},[75,77,88],{"type":43,"value":76},"For short text-to-speech, use the synchronous ",{"type":37,"tag":78,"props":79,"children":81},"a",{"href":80},"..\u002Fvenice-audio-speech\u002FSKILL.md",[82],{"type":37,"tag":67,"props":83,"children":85},{"className":84},[],[86],{"type":43,"value":87},"venice-audio-speech",{"type":43,"value":89}," endpoint instead.",{"type":37,"tag":91,"props":92,"children":94},"h2",{"id":93},"use-when",[95],{"type":43,"value":96},"Use when",{"type":37,"tag":98,"props":99,"children":100},"ul",{},[101,107,126],{"type":37,"tag":102,"props":103,"children":104},"li",{},[105],{"type":43,"value":106},"You need songs, jingles, score, soundscape, or long narration.",{"type":37,"tag":102,"props":108,"children":109},{},[110,112,117,119,124],{"type":43,"value":111},"The selected model uses ",{"type":37,"tag":52,"props":113,"children":114},{},[115],{"type":43,"value":116},"duration-based",{"type":43,"value":118}," or ",{"type":37,"tag":52,"props":120,"children":121},{},[122],{"type":43,"value":123},"character-based",{"type":43,"value":125}," pricing and must be priced before submission.",{"type":37,"tag":102,"props":127,"children":128},{},[129],{"type":43,"value":130},"The expected generation time is long enough (> 20 s) that sync call would time out.",{"type":37,"tag":91,"props":132,"children":134},{"id":133},"lifecycle",[135],{"type":43,"value":136},"Lifecycle",{"type":37,"tag":138,"props":139,"children":141},"h3",{"id":140},"_1-post-audioquote-price-it-first",[142,144,150],{"type":43,"value":143},"1. ",{"type":37,"tag":67,"props":145,"children":147},{"className":146},[],[148],{"type":43,"value":149},"POST \u002Faudio\u002Fquote",{"type":43,"value":151}," — price it first",{"type":37,"tag":60,"props":153,"children":157},{"className":154,"code":155,"language":156,"meta":69,"style":69},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fquote \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"elevenlabs-music\",\n    \"duration_seconds\": 60\n  }'\n","bash",[158],{"type":37,"tag":67,"props":159,"children":160},{"__ignoreMap":69},[161,185,219,244,263,272,281],{"type":37,"tag":162,"props":163,"children":166},"span",{"class":164,"line":165},"line",1,[167,173,179],{"type":37,"tag":162,"props":168,"children":170},{"style":169},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[171],{"type":43,"value":172},"curl",{"type":37,"tag":162,"props":174,"children":176},{"style":175},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[177],{"type":43,"value":178}," https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fquote",{"type":37,"tag":162,"props":180,"children":182},{"style":181},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[183],{"type":43,"value":184}," \\\n",{"type":37,"tag":162,"props":186,"children":188},{"class":164,"line":187},2,[189,194,200,205,210,215],{"type":37,"tag":162,"props":190,"children":191},{"style":175},[192],{"type":43,"value":193},"  -H",{"type":37,"tag":162,"props":195,"children":197},{"style":196},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[198],{"type":43,"value":199}," \"",{"type":37,"tag":162,"props":201,"children":202},{"style":175},[203],{"type":43,"value":204},"Authorization: Bearer ",{"type":37,"tag":162,"props":206,"children":207},{"style":181},[208],{"type":43,"value":209},"$VENICE_API_KEY",{"type":37,"tag":162,"props":211,"children":212},{"style":196},[213],{"type":43,"value":214},"\"",{"type":37,"tag":162,"props":216,"children":217},{"style":181},[218],{"type":43,"value":184},{"type":37,"tag":162,"props":220,"children":222},{"class":164,"line":221},3,[223,227,231,236,240],{"type":37,"tag":162,"props":224,"children":225},{"style":175},[226],{"type":43,"value":193},{"type":37,"tag":162,"props":228,"children":229},{"style":196},[230],{"type":43,"value":199},{"type":37,"tag":162,"props":232,"children":233},{"style":175},[234],{"type":43,"value":235},"Content-Type: application\u002Fjson",{"type":37,"tag":162,"props":237,"children":238},{"style":196},[239],{"type":43,"value":214},{"type":37,"tag":162,"props":241,"children":242},{"style":181},[243],{"type":43,"value":184},{"type":37,"tag":162,"props":245,"children":247},{"class":164,"line":246},4,[248,253,258],{"type":37,"tag":162,"props":249,"children":250},{"style":175},[251],{"type":43,"value":252},"  -d",{"type":37,"tag":162,"props":254,"children":255},{"style":196},[256],{"type":43,"value":257}," '",{"type":37,"tag":162,"props":259,"children":260},{"style":175},[261],{"type":43,"value":262},"{\n",{"type":37,"tag":162,"props":264,"children":266},{"class":164,"line":265},5,[267],{"type":37,"tag":162,"props":268,"children":269},{"style":175},[270],{"type":43,"value":271},"    \"model\": \"elevenlabs-music\",\n",{"type":37,"tag":162,"props":273,"children":275},{"class":164,"line":274},6,[276],{"type":37,"tag":162,"props":277,"children":278},{"style":175},[279],{"type":43,"value":280},"    \"duration_seconds\": 60\n",{"type":37,"tag":162,"props":282,"children":284},{"class":164,"line":283},7,[285,290],{"type":37,"tag":162,"props":286,"children":287},{"style":175},[288],{"type":43,"value":289},"  }",{"type":37,"tag":162,"props":291,"children":292},{"style":196},[293],{"type":43,"value":294},"'\n",{"type":37,"tag":46,"props":296,"children":297},{},[298,300,306],{"type":43,"value":299},"Response: ",{"type":37,"tag":67,"props":301,"children":303},{"className":302},[],[304],{"type":43,"value":305},"{\"quote\": 0.48}",{"type":43,"value":307}," (USD).",{"type":37,"tag":309,"props":310,"children":311},"table",{},[312,331],{"type":37,"tag":313,"props":314,"children":315},"thead",{},[316],{"type":37,"tag":317,"props":318,"children":319},"tr",{},[320,326],{"type":37,"tag":321,"props":322,"children":323},"th",{},[324],{"type":43,"value":325},"Field",{"type":37,"tag":321,"props":327,"children":328},{},[329],{"type":43,"value":330},"Notes",{"type":37,"tag":332,"props":333,"children":334},"tbody",{},[335,361,378],{"type":37,"tag":317,"props":336,"children":337},{},[338,348],{"type":37,"tag":339,"props":340,"children":341},"td",{},[342],{"type":37,"tag":67,"props":343,"children":345},{"className":344},[],[346],{"type":43,"value":347},"model",{"type":37,"tag":339,"props":349,"children":350},{},[351,353,359],{"type":43,"value":352},"Required. Music\u002Faudio model from ",{"type":37,"tag":67,"props":354,"children":356},{"className":355},[],[357],{"type":43,"value":358},"GET \u002Fmodels?type=music",{"type":43,"value":360},".",{"type":37,"tag":317,"props":362,"children":363},{},[364,373],{"type":37,"tag":339,"props":365,"children":366},{},[367],{"type":37,"tag":67,"props":368,"children":370},{"className":369},[],[371],{"type":43,"value":372},"duration_seconds",{"type":37,"tag":339,"props":374,"children":375},{},[376],{"type":43,"value":377},"Integer or numeric string. Only if the model reports duration metadata.",{"type":37,"tag":317,"props":379,"children":380},{},[381,390],{"type":37,"tag":339,"props":382,"children":383},{},[384],{"type":37,"tag":67,"props":385,"children":387},{"className":386},[],[388],{"type":43,"value":389},"character_count",{"type":37,"tag":339,"props":391,"children":392},{},[393,395,401],{"type":43,"value":394},"Required for models with ",{"type":37,"tag":67,"props":396,"children":398},{"className":397},[],[399],{"type":43,"value":400},"pricing.per_thousand_characters",{"type":43,"value":402}," (long narration).",{"type":37,"tag":138,"props":404,"children":406},{"id":405},"_2-post-audioqueue-enqueue",[407,409,415],{"type":43,"value":408},"2. ",{"type":37,"tag":67,"props":410,"children":412},{"className":411},[],[413],{"type":43,"value":414},"POST \u002Faudio\u002Fqueue",{"type":43,"value":416}," — enqueue",{"type":37,"tag":60,"props":418,"children":420},{"className":154,"code":419,"language":156,"meta":69,"style":69},"curl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fqueue \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"elevenlabs-music\",\n    \"prompt\": \"Uplifting indie-folk acoustic track, 120 BPM, major key.\",\n    \"lyrics_prompt\": \"Verse 1: Walking through the city lights...\\nChorus: We are the dreamers...\",\n    \"duration_seconds\": 60,\n    \"voice\": \"Aria\",\n    \"language_code\": \"en\",\n    \"speed\": 1.0,\n    \"force_instrumental\": false,\n    \"lyrics_optimizer\": false\n  }'\n",[421],{"type":37,"tag":67,"props":422,"children":423},{"__ignoreMap":69},[424,440,467,490,505,512,520,528,537,546,555,564,573,582],{"type":37,"tag":162,"props":425,"children":426},{"class":164,"line":165},[427,431,436],{"type":37,"tag":162,"props":428,"children":429},{"style":169},[430],{"type":43,"value":172},{"type":37,"tag":162,"props":432,"children":433},{"style":175},[434],{"type":43,"value":435}," https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fqueue",{"type":37,"tag":162,"props":437,"children":438},{"style":181},[439],{"type":43,"value":184},{"type":37,"tag":162,"props":441,"children":442},{"class":164,"line":187},[443,447,451,455,459,463],{"type":37,"tag":162,"props":444,"children":445},{"style":175},[446],{"type":43,"value":193},{"type":37,"tag":162,"props":448,"children":449},{"style":196},[450],{"type":43,"value":199},{"type":37,"tag":162,"props":452,"children":453},{"style":175},[454],{"type":43,"value":204},{"type":37,"tag":162,"props":456,"children":457},{"style":181},[458],{"type":43,"value":209},{"type":37,"tag":162,"props":460,"children":461},{"style":196},[462],{"type":43,"value":214},{"type":37,"tag":162,"props":464,"children":465},{"style":181},[466],{"type":43,"value":184},{"type":37,"tag":162,"props":468,"children":469},{"class":164,"line":221},[470,474,478,482,486],{"type":37,"tag":162,"props":471,"children":472},{"style":175},[473],{"type":43,"value":193},{"type":37,"tag":162,"props":475,"children":476},{"style":196},[477],{"type":43,"value":199},{"type":37,"tag":162,"props":479,"children":480},{"style":175},[481],{"type":43,"value":235},{"type":37,"tag":162,"props":483,"children":484},{"style":196},[485],{"type":43,"value":214},{"type":37,"tag":162,"props":487,"children":488},{"style":181},[489],{"type":43,"value":184},{"type":37,"tag":162,"props":491,"children":492},{"class":164,"line":246},[493,497,501],{"type":37,"tag":162,"props":494,"children":495},{"style":175},[496],{"type":43,"value":252},{"type":37,"tag":162,"props":498,"children":499},{"style":196},[500],{"type":43,"value":257},{"type":37,"tag":162,"props":502,"children":503},{"style":175},[504],{"type":43,"value":262},{"type":37,"tag":162,"props":506,"children":507},{"class":164,"line":265},[508],{"type":37,"tag":162,"props":509,"children":510},{"style":175},[511],{"type":43,"value":271},{"type":37,"tag":162,"props":513,"children":514},{"class":164,"line":274},[515],{"type":37,"tag":162,"props":516,"children":517},{"style":175},[518],{"type":43,"value":519},"    \"prompt\": \"Uplifting indie-folk acoustic track, 120 BPM, major key.\",\n",{"type":37,"tag":162,"props":521,"children":522},{"class":164,"line":283},[523],{"type":37,"tag":162,"props":524,"children":525},{"style":175},[526],{"type":43,"value":527},"    \"lyrics_prompt\": \"Verse 1: Walking through the city lights...\\nChorus: We are the dreamers...\",\n",{"type":37,"tag":162,"props":529,"children":531},{"class":164,"line":530},8,[532],{"type":37,"tag":162,"props":533,"children":534},{"style":175},[535],{"type":43,"value":536},"    \"duration_seconds\": 60,\n",{"type":37,"tag":162,"props":538,"children":540},{"class":164,"line":539},9,[541],{"type":37,"tag":162,"props":542,"children":543},{"style":175},[544],{"type":43,"value":545},"    \"voice\": \"Aria\",\n",{"type":37,"tag":162,"props":547,"children":549},{"class":164,"line":548},10,[550],{"type":37,"tag":162,"props":551,"children":552},{"style":175},[553],{"type":43,"value":554},"    \"language_code\": \"en\",\n",{"type":37,"tag":162,"props":556,"children":558},{"class":164,"line":557},11,[559],{"type":37,"tag":162,"props":560,"children":561},{"style":175},[562],{"type":43,"value":563},"    \"speed\": 1.0,\n",{"type":37,"tag":162,"props":565,"children":567},{"class":164,"line":566},12,[568],{"type":37,"tag":162,"props":569,"children":570},{"style":175},[571],{"type":43,"value":572},"    \"force_instrumental\": false,\n",{"type":37,"tag":162,"props":574,"children":576},{"class":164,"line":575},13,[577],{"type":37,"tag":162,"props":578,"children":579},{"style":175},[580],{"type":43,"value":581},"    \"lyrics_optimizer\": false\n",{"type":37,"tag":162,"props":583,"children":585},{"class":164,"line":584},14,[586,590],{"type":37,"tag":162,"props":587,"children":588},{"style":175},[589],{"type":43,"value":289},{"type":37,"tag":162,"props":591,"children":592},{"style":196},[593],{"type":43,"value":294},{"type":37,"tag":46,"props":595,"children":596},{},[597,598,604],{"type":43,"value":299},{"type":37,"tag":67,"props":599,"children":601},{"className":600},[],[602],{"type":43,"value":603},"{ \"model\": \"...\", \"queue_id\": \"uuid\" }",{"type":43,"value":360},{"type":37,"tag":309,"props":606,"children":607},{},[608,622],{"type":37,"tag":313,"props":609,"children":610},{},[611],{"type":37,"tag":317,"props":612,"children":613},{},[614,618],{"type":37,"tag":321,"props":615,"children":616},{},[617],{"type":43,"value":325},{"type":37,"tag":321,"props":619,"children":620},{},[621],{"type":43,"value":330},{"type":37,"tag":332,"props":623,"children":624},{},[625,641,665,710,726,750,789,828,852],{"type":37,"tag":317,"props":626,"children":627},{},[628,636],{"type":37,"tag":339,"props":629,"children":630},{},[631],{"type":37,"tag":67,"props":632,"children":634},{"className":633},[],[635],{"type":43,"value":347},{"type":37,"tag":339,"props":637,"children":638},{},[639],{"type":43,"value":640},"Required.",{"type":37,"tag":317,"props":642,"children":643},{},[644,653],{"type":37,"tag":339,"props":645,"children":646},{},[647],{"type":37,"tag":67,"props":648,"children":650},{"className":649},[],[651],{"type":43,"value":652},"prompt",{"type":37,"tag":339,"props":654,"children":655},{},[656,658,664],{"type":43,"value":657},"Required. Describe genre, mood, tempo, instruments. Length caps in ",{"type":37,"tag":67,"props":659,"children":661},{"className":660},[],[662],{"type":43,"value":663},"\u002Fmodels",{"type":43,"value":360},{"type":37,"tag":317,"props":666,"children":667},{},[668,677],{"type":37,"tag":339,"props":669,"children":670},{},[671],{"type":37,"tag":67,"props":672,"children":674},{"className":673},[],[675],{"type":43,"value":676},"lyrics_prompt",{"type":37,"tag":339,"props":678,"children":679},{},[680,682,687,689,695,697,702,703,709],{"type":43,"value":681},"Lyrics. ",{"type":37,"tag":52,"props":683,"children":684},{},[685],{"type":43,"value":686},"Required",{"type":43,"value":688}," when ",{"type":37,"tag":67,"props":690,"children":692},{"className":691},[],[693],{"type":43,"value":694},"lyrics_required=true",{"type":43,"value":696},", ",{"type":37,"tag":52,"props":698,"children":699},{},[700],{"type":43,"value":701},"rejected",{"type":43,"value":688},{"type":37,"tag":67,"props":704,"children":706},{"className":705},[],[707],{"type":43,"value":708},"supports_lyrics=false",{"type":43,"value":360},{"type":37,"tag":317,"props":711,"children":712},{},[713,721],{"type":37,"tag":339,"props":714,"children":715},{},[716],{"type":37,"tag":67,"props":717,"children":719},{"className":718},[],[720],{"type":43,"value":372},{"type":37,"tag":339,"props":722,"children":723},{},[724],{"type":43,"value":725},"Integer or string. Model-dependent.",{"type":37,"tag":317,"props":727,"children":728},{},[729,738],{"type":37,"tag":339,"props":730,"children":731},{},[732],{"type":37,"tag":67,"props":733,"children":735},{"className":734},[],[736],{"type":43,"value":737},"force_instrumental",{"type":37,"tag":339,"props":739,"children":740},{},[741,743,749],{"type":43,"value":742},"Only when ",{"type":37,"tag":67,"props":744,"children":746},{"className":745},[],[747],{"type":43,"value":748},"supports_force_instrumental=true",{"type":43,"value":360},{"type":37,"tag":317,"props":751,"children":752},{},[753,762],{"type":37,"tag":339,"props":754,"children":755},{},[756],{"type":37,"tag":67,"props":757,"children":759},{"className":758},[],[760],{"type":43,"value":761},"lyrics_optimizer",{"type":37,"tag":339,"props":763,"children":764},{},[765,767,772,774,780,782,787],{"type":43,"value":766},"Auto-generate lyrics from ",{"type":37,"tag":67,"props":768,"children":770},{"className":769},[],[771],{"type":43,"value":652},{"type":43,"value":773},". Requires ",{"type":37,"tag":67,"props":775,"children":777},{"className":776},[],[778],{"type":43,"value":779},"supports_lyrics_optimizer=true",{"type":43,"value":781},". ",{"type":37,"tag":67,"props":783,"children":785},{"className":784},[],[786],{"type":43,"value":676},{"type":43,"value":788}," must be empty.",{"type":37,"tag":317,"props":790,"children":791},{},[792,801],{"type":37,"tag":339,"props":793,"children":794},{},[795],{"type":37,"tag":67,"props":796,"children":798},{"className":797},[],[799],{"type":43,"value":800},"voice",{"type":37,"tag":339,"props":802,"children":803},{},[804,806,812,814,820,822,827],{"type":43,"value":805},"For voice-enabled models. See ",{"type":37,"tag":67,"props":807,"children":809},{"className":808},[],[810],{"type":43,"value":811},"voices",{"type":43,"value":813}," + ",{"type":37,"tag":67,"props":815,"children":817},{"className":816},[],[818],{"type":43,"value":819},"default_voice",{"type":43,"value":821}," in ",{"type":37,"tag":67,"props":823,"children":825},{"className":824},[],[826],{"type":43,"value":663},{"type":43,"value":360},{"type":37,"tag":317,"props":829,"children":830},{},[831,840],{"type":37,"tag":339,"props":832,"children":833},{},[834],{"type":37,"tag":67,"props":835,"children":837},{"className":836},[],[838],{"type":43,"value":839},"language_code",{"type":37,"tag":339,"props":841,"children":842},{},[843,845,851],{"type":43,"value":844},"ISO 639-1. Requires ",{"type":37,"tag":67,"props":846,"children":848},{"className":847},[],[849],{"type":43,"value":850},"supports_language_code=true",{"type":43,"value":360},{"type":37,"tag":317,"props":853,"children":854},{},[855,864],{"type":37,"tag":339,"props":856,"children":857},{},[858],{"type":37,"tag":67,"props":859,"children":861},{"className":860},[],[862],{"type":43,"value":863},"speed",{"type":37,"tag":339,"props":865,"children":866},{},[867,869,875,877,883,885,891],{"type":43,"value":868},"Requires ",{"type":37,"tag":67,"props":870,"children":872},{"className":871},[],[873],{"type":43,"value":874},"supports_speed=true",{"type":43,"value":876},". Use model's ",{"type":37,"tag":67,"props":878,"children":880},{"className":879},[],[881],{"type":43,"value":882},"min_speed",{"type":43,"value":884},"\u002F",{"type":37,"tag":67,"props":886,"children":888},{"className":887},[],[889],{"type":43,"value":890},"max_speed",{"type":43,"value":360},{"type":37,"tag":138,"props":893,"children":895},{"id":894},"_3-post-audioretrieve-poll-status-download",[896,898,904],{"type":43,"value":897},"3. ",{"type":37,"tag":67,"props":899,"children":901},{"className":900},[],[902],{"type":43,"value":903},"POST \u002Faudio\u002Fretrieve",{"type":43,"value":905}," — poll status \u002F download",{"type":37,"tag":60,"props":907,"children":909},{"className":154,"code":908,"language":156,"meta":69,"style":69},"curl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fretrieve \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"elevenlabs-music\",\"queue_id\":\"...\"}' \\\n  --output track.mp3\n",[910],{"type":37,"tag":67,"props":911,"children":912},{"__ignoreMap":69},[913,929,956,979,1004],{"type":37,"tag":162,"props":914,"children":915},{"class":164,"line":165},[916,920,925],{"type":37,"tag":162,"props":917,"children":918},{"style":169},[919],{"type":43,"value":172},{"type":37,"tag":162,"props":921,"children":922},{"style":175},[923],{"type":43,"value":924}," https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fretrieve",{"type":37,"tag":162,"props":926,"children":927},{"style":181},[928],{"type":43,"value":184},{"type":37,"tag":162,"props":930,"children":931},{"class":164,"line":187},[932,936,940,944,948,952],{"type":37,"tag":162,"props":933,"children":934},{"style":175},[935],{"type":43,"value":193},{"type":37,"tag":162,"props":937,"children":938},{"style":196},[939],{"type":43,"value":199},{"type":37,"tag":162,"props":941,"children":942},{"style":175},[943],{"type":43,"value":204},{"type":37,"tag":162,"props":945,"children":946},{"style":181},[947],{"type":43,"value":209},{"type":37,"tag":162,"props":949,"children":950},{"style":196},[951],{"type":43,"value":214},{"type":37,"tag":162,"props":953,"children":954},{"style":181},[955],{"type":43,"value":184},{"type":37,"tag":162,"props":957,"children":958},{"class":164,"line":221},[959,963,967,971,975],{"type":37,"tag":162,"props":960,"children":961},{"style":175},[962],{"type":43,"value":193},{"type":37,"tag":162,"props":964,"children":965},{"style":196},[966],{"type":43,"value":199},{"type":37,"tag":162,"props":968,"children":969},{"style":175},[970],{"type":43,"value":235},{"type":37,"tag":162,"props":972,"children":973},{"style":196},[974],{"type":43,"value":214},{"type":37,"tag":162,"props":976,"children":977},{"style":181},[978],{"type":43,"value":184},{"type":37,"tag":162,"props":980,"children":981},{"class":164,"line":246},[982,986,990,995,1000],{"type":37,"tag":162,"props":983,"children":984},{"style":175},[985],{"type":43,"value":252},{"type":37,"tag":162,"props":987,"children":988},{"style":196},[989],{"type":43,"value":257},{"type":37,"tag":162,"props":991,"children":992},{"style":175},[993],{"type":43,"value":994},"{\"model\":\"elevenlabs-music\",\"queue_id\":\"...\"}",{"type":37,"tag":162,"props":996,"children":997},{"style":196},[998],{"type":43,"value":999},"'",{"type":37,"tag":162,"props":1001,"children":1002},{"style":181},[1003],{"type":43,"value":184},{"type":37,"tag":162,"props":1005,"children":1006},{"class":164,"line":265},[1007,1012],{"type":37,"tag":162,"props":1008,"children":1009},{"style":175},[1010],{"type":43,"value":1011},"  --output",{"type":37,"tag":162,"props":1013,"children":1014},{"style":175},[1015],{"type":43,"value":1016}," track.mp3\n",{"type":37,"tag":98,"props":1018,"children":1019},{},[1020,1032,1045],{"type":37,"tag":102,"props":1021,"children":1022},{},[1023,1025,1031],{"type":43,"value":1024},"If still processing: JSON ",{"type":37,"tag":67,"props":1026,"children":1028},{"className":1027},[],[1029],{"type":43,"value":1030},"{\"status\":\"PROCESSING\",\"average_execution_time\":...,\"execution_duration\":...}",{"type":43,"value":360},{"type":37,"tag":102,"props":1033,"children":1034},{},[1035,1037,1043],{"type":43,"value":1036},"If done: binary audio body (",{"type":37,"tag":67,"props":1038,"children":1040},{"className":1039},[],[1041],{"type":43,"value":1042},"audio\u002Fmpeg",{"type":43,"value":1044}," or similar). Save the bytes.",{"type":37,"tag":102,"props":1046,"children":1047},{},[1048,1050,1056],{"type":43,"value":1049},"Set ",{"type":37,"tag":67,"props":1051,"children":1053},{"className":1052},[],[1054],{"type":43,"value":1055},"delete_media_on_completion: true",{"type":43,"value":1057}," to skip step 4.",{"type":37,"tag":46,"props":1059,"children":1060},{},[1061,1063,1069],{"type":43,"value":1062},"Poll every 2–5 s; use ",{"type":37,"tag":67,"props":1064,"children":1066},{"className":1065},[],[1067],{"type":43,"value":1068},"average_execution_time",{"type":43,"value":1070}," (ms, P80) as a guideline for your first poll delay.",{"type":37,"tag":138,"props":1072,"children":1074},{"id":1073},"_4-post-audiocomplete-cleanup",[1075,1077,1083],{"type":43,"value":1076},"4. ",{"type":37,"tag":67,"props":1078,"children":1080},{"className":1079},[],[1081],{"type":43,"value":1082},"POST \u002Faudio\u002Fcomplete",{"type":43,"value":1084}," — cleanup",{"type":37,"tag":60,"props":1086,"children":1088},{"className":154,"code":1087,"language":156,"meta":69,"style":69},"curl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fcomplete \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"elevenlabs-music\",\"queue_id\":\"...\"}'\n",[1089],{"type":37,"tag":67,"props":1090,"children":1091},{"__ignoreMap":69},[1092,1108,1135,1158],{"type":37,"tag":162,"props":1093,"children":1094},{"class":164,"line":165},[1095,1099,1104],{"type":37,"tag":162,"props":1096,"children":1097},{"style":169},[1098],{"type":43,"value":172},{"type":37,"tag":162,"props":1100,"children":1101},{"style":175},[1102],{"type":43,"value":1103}," https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Faudio\u002Fcomplete",{"type":37,"tag":162,"props":1105,"children":1106},{"style":181},[1107],{"type":43,"value":184},{"type":37,"tag":162,"props":1109,"children":1110},{"class":164,"line":187},[1111,1115,1119,1123,1127,1131],{"type":37,"tag":162,"props":1112,"children":1113},{"style":175},[1114],{"type":43,"value":193},{"type":37,"tag":162,"props":1116,"children":1117},{"style":196},[1118],{"type":43,"value":199},{"type":37,"tag":162,"props":1120,"children":1121},{"style":175},[1122],{"type":43,"value":204},{"type":37,"tag":162,"props":1124,"children":1125},{"style":181},[1126],{"type":43,"value":209},{"type":37,"tag":162,"props":1128,"children":1129},{"style":196},[1130],{"type":43,"value":214},{"type":37,"tag":162,"props":1132,"children":1133},{"style":181},[1134],{"type":43,"value":184},{"type":37,"tag":162,"props":1136,"children":1137},{"class":164,"line":221},[1138,1142,1146,1150,1154],{"type":37,"tag":162,"props":1139,"children":1140},{"style":175},[1141],{"type":43,"value":193},{"type":37,"tag":162,"props":1143,"children":1144},{"style":196},[1145],{"type":43,"value":199},{"type":37,"tag":162,"props":1147,"children":1148},{"style":175},[1149],{"type":43,"value":235},{"type":37,"tag":162,"props":1151,"children":1152},{"style":196},[1153],{"type":43,"value":214},{"type":37,"tag":162,"props":1155,"children":1156},{"style":181},[1157],{"type":43,"value":184},{"type":37,"tag":162,"props":1159,"children":1160},{"class":164,"line":246},[1161,1165,1169,1173],{"type":37,"tag":162,"props":1162,"children":1163},{"style":175},[1164],{"type":43,"value":252},{"type":37,"tag":162,"props":1166,"children":1167},{"style":196},[1168],{"type":43,"value":257},{"type":37,"tag":162,"props":1170,"children":1171},{"style":175},[1172],{"type":43,"value":994},{"type":37,"tag":162,"props":1174,"children":1175},{"style":196},[1176],{"type":43,"value":294},{"type":37,"tag":46,"props":1178,"children":1179},{},[1180,1182,1187],{"type":43,"value":1181},"Removes the media from Venice storage after you've downloaded it. Required unless you used ",{"type":37,"tag":67,"props":1183,"children":1185},{"className":1184},[],[1186],{"type":43,"value":1055},{"type":43,"value":1188}," on retrieve.",{"type":37,"tag":91,"props":1190,"children":1192},{"id":1191},"full-loop-typescript",[1193],{"type":43,"value":1194},"Full loop (TypeScript)",{"type":37,"tag":60,"props":1196,"children":1200},{"className":1197,"code":1198,"language":1199,"meta":69,"style":69},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const base = 'https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1'\nconst headers = {\n  Authorization: `Bearer ${process.env.VENICE_API_KEY}`,\n  'Content-Type': 'application\u002Fjson',\n}\n\nasync function generateTrack() {\n  \u002F\u002F 1. Quote\n  const quote = await fetch(`${base}\u002Faudio\u002Fquote`, {\n    method: 'POST', headers,\n    body: JSON.stringify({ model: 'elevenlabs-music', duration_seconds: 60 }),\n  }).then(r => r.json())\n  console.log('price:', quote.quote)\n\n  \u002F\u002F 2. Queue\n  const { queue_id, model } = await fetch(`${base}\u002Faudio\u002Fqueue`, {\n    method: 'POST', headers,\n    body: JSON.stringify({\n      model: 'elevenlabs-music',\n      prompt: 'Uplifting indie-folk acoustic track, 120 BPM.',\n      duration_seconds: 60,\n      force_instrumental: true,\n    }),\n  }).then(r => r.json())\n\n  \u002F\u002F 3. Poll\n  while (true) {\n    const res = await fetch(`${base}\u002Faudio\u002Fretrieve`, {\n      method: 'POST', headers,\n      body: JSON.stringify({ model, queue_id }),\n    })\n    const ct = res.headers.get('content-type') ?? ''\n    if (ct.startsWith('audio\u002F')) {\n      const buf = Buffer.from(await res.arrayBuffer())\n      await fs.writeFile('track.mp3', buf)\n      break\n    }\n    const { status } = await res.json()\n    if (status !== 'PROCESSING') throw new Error(`unexpected ${status}`)\n    await new Promise(r => setTimeout(r, 3000))\n  }\n\n  \u002F\u002F 4. Complete\n  await fetch(`${base}\u002Faudio\u002Fcomplete`, {\n    method: 'POST', headers,\n    body: JSON.stringify({ model, queue_id }),\n  })\n}\n","ts",[1201],{"type":37,"tag":67,"props":1202,"children":1203},{"__ignoreMap":69},[1204,1236,1257,1319,1357,1365,1374,1402,1411,1479,1517,1607,1661,1717,1724,1732,1807,1843,1875,1904,1934,1955,1978,1995,2043,2051,2060,2088,2147,2184,2241,2253,2323,2376,2434,2486,2495,2504,2550,2633,2690,2699,2707,2716,2762,2798,2854,2866],{"type":37,"tag":162,"props":1205,"children":1206},{"class":164,"line":165},[1207,1213,1218,1223,1227,1232],{"type":37,"tag":162,"props":1208,"children":1210},{"style":1209},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1211],{"type":43,"value":1212},"const",{"type":37,"tag":162,"props":1214,"children":1215},{"style":181},[1216],{"type":43,"value":1217}," base ",{"type":37,"tag":162,"props":1219,"children":1220},{"style":196},[1221],{"type":43,"value":1222},"=",{"type":37,"tag":162,"props":1224,"children":1225},{"style":196},[1226],{"type":43,"value":257},{"type":37,"tag":162,"props":1228,"children":1229},{"style":175},[1230],{"type":43,"value":1231},"https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1",{"type":37,"tag":162,"props":1233,"children":1234},{"style":196},[1235],{"type":43,"value":294},{"type":37,"tag":162,"props":1237,"children":1238},{"class":164,"line":187},[1239,1243,1248,1252],{"type":37,"tag":162,"props":1240,"children":1241},{"style":1209},[1242],{"type":43,"value":1212},{"type":37,"tag":162,"props":1244,"children":1245},{"style":181},[1246],{"type":43,"value":1247}," headers ",{"type":37,"tag":162,"props":1249,"children":1250},{"style":196},[1251],{"type":43,"value":1222},{"type":37,"tag":162,"props":1253,"children":1254},{"style":196},[1255],{"type":43,"value":1256}," {\n",{"type":37,"tag":162,"props":1258,"children":1259},{"class":164,"line":221},[1260,1266,1271,1276,1281,1286,1291,1295,1300,1304,1309,1314],{"type":37,"tag":162,"props":1261,"children":1263},{"style":1262},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1264],{"type":43,"value":1265},"  Authorization",{"type":37,"tag":162,"props":1267,"children":1268},{"style":196},[1269],{"type":43,"value":1270},":",{"type":37,"tag":162,"props":1272,"children":1273},{"style":196},[1274],{"type":43,"value":1275}," `",{"type":37,"tag":162,"props":1277,"children":1278},{"style":175},[1279],{"type":43,"value":1280},"Bearer ",{"type":37,"tag":162,"props":1282,"children":1283},{"style":196},[1284],{"type":43,"value":1285},"${",{"type":37,"tag":162,"props":1287,"children":1288},{"style":181},[1289],{"type":43,"value":1290},"process",{"type":37,"tag":162,"props":1292,"children":1293},{"style":196},[1294],{"type":43,"value":360},{"type":37,"tag":162,"props":1296,"children":1297},{"style":181},[1298],{"type":43,"value":1299},"env",{"type":37,"tag":162,"props":1301,"children":1302},{"style":196},[1303],{"type":43,"value":360},{"type":37,"tag":162,"props":1305,"children":1306},{"style":181},[1307],{"type":43,"value":1308},"VENICE_API_KEY",{"type":37,"tag":162,"props":1310,"children":1311},{"style":196},[1312],{"type":43,"value":1313},"}`",{"type":37,"tag":162,"props":1315,"children":1316},{"style":196},[1317],{"type":43,"value":1318},",\n",{"type":37,"tag":162,"props":1320,"children":1321},{"class":164,"line":246},[1322,1327,1332,1336,1340,1344,1349,1353],{"type":37,"tag":162,"props":1323,"children":1324},{"style":196},[1325],{"type":43,"value":1326},"  '",{"type":37,"tag":162,"props":1328,"children":1329},{"style":1262},[1330],{"type":43,"value":1331},"Content-Type",{"type":37,"tag":162,"props":1333,"children":1334},{"style":196},[1335],{"type":43,"value":999},{"type":37,"tag":162,"props":1337,"children":1338},{"style":196},[1339],{"type":43,"value":1270},{"type":37,"tag":162,"props":1341,"children":1342},{"style":196},[1343],{"type":43,"value":257},{"type":37,"tag":162,"props":1345,"children":1346},{"style":175},[1347],{"type":43,"value":1348},"application\u002Fjson",{"type":37,"tag":162,"props":1350,"children":1351},{"style":196},[1352],{"type":43,"value":999},{"type":37,"tag":162,"props":1354,"children":1355},{"style":196},[1356],{"type":43,"value":1318},{"type":37,"tag":162,"props":1358,"children":1359},{"class":164,"line":265},[1360],{"type":37,"tag":162,"props":1361,"children":1362},{"style":196},[1363],{"type":43,"value":1364},"}\n",{"type":37,"tag":162,"props":1366,"children":1367},{"class":164,"line":274},[1368],{"type":37,"tag":162,"props":1369,"children":1371},{"emptyLinePlaceholder":1370},true,[1372],{"type":43,"value":1373},"\n",{"type":37,"tag":162,"props":1375,"children":1376},{"class":164,"line":283},[1377,1382,1387,1393,1398],{"type":37,"tag":162,"props":1378,"children":1379},{"style":1209},[1380],{"type":43,"value":1381},"async",{"type":37,"tag":162,"props":1383,"children":1384},{"style":1209},[1385],{"type":43,"value":1386}," function",{"type":37,"tag":162,"props":1388,"children":1390},{"style":1389},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1391],{"type":43,"value":1392}," generateTrack",{"type":37,"tag":162,"props":1394,"children":1395},{"style":196},[1396],{"type":43,"value":1397},"()",{"type":37,"tag":162,"props":1399,"children":1400},{"style":196},[1401],{"type":43,"value":1256},{"type":37,"tag":162,"props":1403,"children":1404},{"class":164,"line":530},[1405],{"type":37,"tag":162,"props":1406,"children":1408},{"style":1407},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1409],{"type":43,"value":1410},"  \u002F\u002F 1. Quote\n",{"type":37,"tag":162,"props":1412,"children":1413},{"class":164,"line":539},[1414,1419,1424,1429,1435,1440,1445,1450,1455,1460,1465,1470,1475],{"type":37,"tag":162,"props":1415,"children":1416},{"style":1209},[1417],{"type":43,"value":1418},"  const",{"type":37,"tag":162,"props":1420,"children":1421},{"style":181},[1422],{"type":43,"value":1423}," quote",{"type":37,"tag":162,"props":1425,"children":1426},{"style":196},[1427],{"type":43,"value":1428}," =",{"type":37,"tag":162,"props":1430,"children":1432},{"style":1431},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1433],{"type":43,"value":1434}," await",{"type":37,"tag":162,"props":1436,"children":1437},{"style":1389},[1438],{"type":43,"value":1439}," fetch",{"type":37,"tag":162,"props":1441,"children":1442},{"style":1262},[1443],{"type":43,"value":1444},"(",{"type":37,"tag":162,"props":1446,"children":1447},{"style":196},[1448],{"type":43,"value":1449},"`${",{"type":37,"tag":162,"props":1451,"children":1452},{"style":181},[1453],{"type":43,"value":1454},"base",{"type":37,"tag":162,"props":1456,"children":1457},{"style":196},[1458],{"type":43,"value":1459},"}",{"type":37,"tag":162,"props":1461,"children":1462},{"style":175},[1463],{"type":43,"value":1464},"\u002Faudio\u002Fquote",{"type":37,"tag":162,"props":1466,"children":1467},{"style":196},[1468],{"type":43,"value":1469},"`",{"type":37,"tag":162,"props":1471,"children":1472},{"style":196},[1473],{"type":43,"value":1474},",",{"type":37,"tag":162,"props":1476,"children":1477},{"style":196},[1478],{"type":43,"value":1256},{"type":37,"tag":162,"props":1480,"children":1481},{"class":164,"line":548},[1482,1487,1491,1495,1500,1504,1508,1513],{"type":37,"tag":162,"props":1483,"children":1484},{"style":1262},[1485],{"type":43,"value":1486},"    method",{"type":37,"tag":162,"props":1488,"children":1489},{"style":196},[1490],{"type":43,"value":1270},{"type":37,"tag":162,"props":1492,"children":1493},{"style":196},[1494],{"type":43,"value":257},{"type":37,"tag":162,"props":1496,"children":1497},{"style":175},[1498],{"type":43,"value":1499},"POST",{"type":37,"tag":162,"props":1501,"children":1502},{"style":196},[1503],{"type":43,"value":999},{"type":37,"tag":162,"props":1505,"children":1506},{"style":196},[1507],{"type":43,"value":1474},{"type":37,"tag":162,"props":1509,"children":1510},{"style":181},[1511],{"type":43,"value":1512}," headers",{"type":37,"tag":162,"props":1514,"children":1515},{"style":196},[1516],{"type":43,"value":1318},{"type":37,"tag":162,"props":1518,"children":1519},{"class":164,"line":557},[1520,1525,1529,1534,1538,1543,1547,1552,1557,1561,1565,1570,1574,1578,1583,1587,1593,1598,1603],{"type":37,"tag":162,"props":1521,"children":1522},{"style":1262},[1523],{"type":43,"value":1524},"    body",{"type":37,"tag":162,"props":1526,"children":1527},{"style":196},[1528],{"type":43,"value":1270},{"type":37,"tag":162,"props":1530,"children":1531},{"style":181},[1532],{"type":43,"value":1533}," JSON",{"type":37,"tag":162,"props":1535,"children":1536},{"style":196},[1537],{"type":43,"value":360},{"type":37,"tag":162,"props":1539,"children":1540},{"style":1389},[1541],{"type":43,"value":1542},"stringify",{"type":37,"tag":162,"props":1544,"children":1545},{"style":1262},[1546],{"type":43,"value":1444},{"type":37,"tag":162,"props":1548,"children":1549},{"style":196},[1550],{"type":43,"value":1551},"{",{"type":37,"tag":162,"props":1553,"children":1554},{"style":1262},[1555],{"type":43,"value":1556}," model",{"type":37,"tag":162,"props":1558,"children":1559},{"style":196},[1560],{"type":43,"value":1270},{"type":37,"tag":162,"props":1562,"children":1563},{"style":196},[1564],{"type":43,"value":257},{"type":37,"tag":162,"props":1566,"children":1567},{"style":175},[1568],{"type":43,"value":1569},"elevenlabs-music",{"type":37,"tag":162,"props":1571,"children":1572},{"style":196},[1573],{"type":43,"value":999},{"type":37,"tag":162,"props":1575,"children":1576},{"style":196},[1577],{"type":43,"value":1474},{"type":37,"tag":162,"props":1579,"children":1580},{"style":1262},[1581],{"type":43,"value":1582}," duration_seconds",{"type":37,"tag":162,"props":1584,"children":1585},{"style":196},[1586],{"type":43,"value":1270},{"type":37,"tag":162,"props":1588,"children":1590},{"style":1589},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1591],{"type":43,"value":1592}," 60",{"type":37,"tag":162,"props":1594,"children":1595},{"style":196},[1596],{"type":43,"value":1597}," }",{"type":37,"tag":162,"props":1599,"children":1600},{"style":1262},[1601],{"type":43,"value":1602},")",{"type":37,"tag":162,"props":1604,"children":1605},{"style":196},[1606],{"type":43,"value":1318},{"type":37,"tag":162,"props":1608,"children":1609},{"class":164,"line":566},[1610,1614,1618,1622,1627,1631,1637,1642,1647,1651,1656],{"type":37,"tag":162,"props":1611,"children":1612},{"style":196},[1613],{"type":43,"value":289},{"type":37,"tag":162,"props":1615,"children":1616},{"style":1262},[1617],{"type":43,"value":1602},{"type":37,"tag":162,"props":1619,"children":1620},{"style":196},[1621],{"type":43,"value":360},{"type":37,"tag":162,"props":1623,"children":1624},{"style":1389},[1625],{"type":43,"value":1626},"then",{"type":37,"tag":162,"props":1628,"children":1629},{"style":1262},[1630],{"type":43,"value":1444},{"type":37,"tag":162,"props":1632,"children":1634},{"style":1633},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1635],{"type":43,"value":1636},"r",{"type":37,"tag":162,"props":1638,"children":1639},{"style":1209},[1640],{"type":43,"value":1641}," =>",{"type":37,"tag":162,"props":1643,"children":1644},{"style":181},[1645],{"type":43,"value":1646}," r",{"type":37,"tag":162,"props":1648,"children":1649},{"style":196},[1650],{"type":43,"value":360},{"type":37,"tag":162,"props":1652,"children":1653},{"style":1389},[1654],{"type":43,"value":1655},"json",{"type":37,"tag":162,"props":1657,"children":1658},{"style":1262},[1659],{"type":43,"value":1660},"())\n",{"type":37,"tag":162,"props":1662,"children":1663},{"class":164,"line":575},[1664,1669,1673,1678,1682,1686,1691,1695,1699,1703,1707,1712],{"type":37,"tag":162,"props":1665,"children":1666},{"style":181},[1667],{"type":43,"value":1668},"  console",{"type":37,"tag":162,"props":1670,"children":1671},{"style":196},[1672],{"type":43,"value":360},{"type":37,"tag":162,"props":1674,"children":1675},{"style":1389},[1676],{"type":43,"value":1677},"log",{"type":37,"tag":162,"props":1679,"children":1680},{"style":1262},[1681],{"type":43,"value":1444},{"type":37,"tag":162,"props":1683,"children":1684},{"style":196},[1685],{"type":43,"value":999},{"type":37,"tag":162,"props":1687,"children":1688},{"style":175},[1689],{"type":43,"value":1690},"price:",{"type":37,"tag":162,"props":1692,"children":1693},{"style":196},[1694],{"type":43,"value":999},{"type":37,"tag":162,"props":1696,"children":1697},{"style":196},[1698],{"type":43,"value":1474},{"type":37,"tag":162,"props":1700,"children":1701},{"style":181},[1702],{"type":43,"value":1423},{"type":37,"tag":162,"props":1704,"children":1705},{"style":196},[1706],{"type":43,"value":360},{"type":37,"tag":162,"props":1708,"children":1709},{"style":181},[1710],{"type":43,"value":1711},"quote",{"type":37,"tag":162,"props":1713,"children":1714},{"style":1262},[1715],{"type":43,"value":1716},")\n",{"type":37,"tag":162,"props":1718,"children":1719},{"class":164,"line":584},[1720],{"type":37,"tag":162,"props":1721,"children":1722},{"emptyLinePlaceholder":1370},[1723],{"type":43,"value":1373},{"type":37,"tag":162,"props":1725,"children":1726},{"class":164,"line":24},[1727],{"type":37,"tag":162,"props":1728,"children":1729},{"style":1407},[1730],{"type":43,"value":1731},"  \u002F\u002F 2. Queue\n",{"type":37,"tag":162,"props":1733,"children":1735},{"class":164,"line":1734},16,[1736,1740,1745,1750,1754,1758,1762,1766,1770,1774,1778,1782,1786,1790,1795,1799,1803],{"type":37,"tag":162,"props":1737,"children":1738},{"style":1209},[1739],{"type":43,"value":1418},{"type":37,"tag":162,"props":1741,"children":1742},{"style":196},[1743],{"type":43,"value":1744}," {",{"type":37,"tag":162,"props":1746,"children":1747},{"style":181},[1748],{"type":43,"value":1749}," queue_id",{"type":37,"tag":162,"props":1751,"children":1752},{"style":196},[1753],{"type":43,"value":1474},{"type":37,"tag":162,"props":1755,"children":1756},{"style":181},[1757],{"type":43,"value":1556},{"type":37,"tag":162,"props":1759,"children":1760},{"style":196},[1761],{"type":43,"value":1597},{"type":37,"tag":162,"props":1763,"children":1764},{"style":196},[1765],{"type":43,"value":1428},{"type":37,"tag":162,"props":1767,"children":1768},{"style":1431},[1769],{"type":43,"value":1434},{"type":37,"tag":162,"props":1771,"children":1772},{"style":1389},[1773],{"type":43,"value":1439},{"type":37,"tag":162,"props":1775,"children":1776},{"style":1262},[1777],{"type":43,"value":1444},{"type":37,"tag":162,"props":1779,"children":1780},{"style":196},[1781],{"type":43,"value":1449},{"type":37,"tag":162,"props":1783,"children":1784},{"style":181},[1785],{"type":43,"value":1454},{"type":37,"tag":162,"props":1787,"children":1788},{"style":196},[1789],{"type":43,"value":1459},{"type":37,"tag":162,"props":1791,"children":1792},{"style":175},[1793],{"type":43,"value":1794},"\u002Faudio\u002Fqueue",{"type":37,"tag":162,"props":1796,"children":1797},{"style":196},[1798],{"type":43,"value":1469},{"type":37,"tag":162,"props":1800,"children":1801},{"style":196},[1802],{"type":43,"value":1474},{"type":37,"tag":162,"props":1804,"children":1805},{"style":196},[1806],{"type":43,"value":1256},{"type":37,"tag":162,"props":1808,"children":1810},{"class":164,"line":1809},17,[1811,1815,1819,1823,1827,1831,1835,1839],{"type":37,"tag":162,"props":1812,"children":1813},{"style":1262},[1814],{"type":43,"value":1486},{"type":37,"tag":162,"props":1816,"children":1817},{"style":196},[1818],{"type":43,"value":1270},{"type":37,"tag":162,"props":1820,"children":1821},{"style":196},[1822],{"type":43,"value":257},{"type":37,"tag":162,"props":1824,"children":1825},{"style":175},[1826],{"type":43,"value":1499},{"type":37,"tag":162,"props":1828,"children":1829},{"style":196},[1830],{"type":43,"value":999},{"type":37,"tag":162,"props":1832,"children":1833},{"style":196},[1834],{"type":43,"value":1474},{"type":37,"tag":162,"props":1836,"children":1837},{"style":181},[1838],{"type":43,"value":1512},{"type":37,"tag":162,"props":1840,"children":1841},{"style":196},[1842],{"type":43,"value":1318},{"type":37,"tag":162,"props":1844,"children":1846},{"class":164,"line":1845},18,[1847,1851,1855,1859,1863,1867,1871],{"type":37,"tag":162,"props":1848,"children":1849},{"style":1262},[1850],{"type":43,"value":1524},{"type":37,"tag":162,"props":1852,"children":1853},{"style":196},[1854],{"type":43,"value":1270},{"type":37,"tag":162,"props":1856,"children":1857},{"style":181},[1858],{"type":43,"value":1533},{"type":37,"tag":162,"props":1860,"children":1861},{"style":196},[1862],{"type":43,"value":360},{"type":37,"tag":162,"props":1864,"children":1865},{"style":1389},[1866],{"type":43,"value":1542},{"type":37,"tag":162,"props":1868,"children":1869},{"style":1262},[1870],{"type":43,"value":1444},{"type":37,"tag":162,"props":1872,"children":1873},{"style":196},[1874],{"type":43,"value":262},{"type":37,"tag":162,"props":1876,"children":1878},{"class":164,"line":1877},19,[1879,1884,1888,1892,1896,1900],{"type":37,"tag":162,"props":1880,"children":1881},{"style":1262},[1882],{"type":43,"value":1883},"      model",{"type":37,"tag":162,"props":1885,"children":1886},{"style":196},[1887],{"type":43,"value":1270},{"type":37,"tag":162,"props":1889,"children":1890},{"style":196},[1891],{"type":43,"value":257},{"type":37,"tag":162,"props":1893,"children":1894},{"style":175},[1895],{"type":43,"value":1569},{"type":37,"tag":162,"props":1897,"children":1898},{"style":196},[1899],{"type":43,"value":999},{"type":37,"tag":162,"props":1901,"children":1902},{"style":196},[1903],{"type":43,"value":1318},{"type":37,"tag":162,"props":1905,"children":1907},{"class":164,"line":1906},20,[1908,1913,1917,1921,1926,1930],{"type":37,"tag":162,"props":1909,"children":1910},{"style":1262},[1911],{"type":43,"value":1912},"      prompt",{"type":37,"tag":162,"props":1914,"children":1915},{"style":196},[1916],{"type":43,"value":1270},{"type":37,"tag":162,"props":1918,"children":1919},{"style":196},[1920],{"type":43,"value":257},{"type":37,"tag":162,"props":1922,"children":1923},{"style":175},[1924],{"type":43,"value":1925},"Uplifting indie-folk acoustic track, 120 BPM.",{"type":37,"tag":162,"props":1927,"children":1928},{"style":196},[1929],{"type":43,"value":999},{"type":37,"tag":162,"props":1931,"children":1932},{"style":196},[1933],{"type":43,"value":1318},{"type":37,"tag":162,"props":1935,"children":1937},{"class":164,"line":1936},21,[1938,1943,1947,1951],{"type":37,"tag":162,"props":1939,"children":1940},{"style":1262},[1941],{"type":43,"value":1942},"      duration_seconds",{"type":37,"tag":162,"props":1944,"children":1945},{"style":196},[1946],{"type":43,"value":1270},{"type":37,"tag":162,"props":1948,"children":1949},{"style":1589},[1950],{"type":43,"value":1592},{"type":37,"tag":162,"props":1952,"children":1953},{"style":196},[1954],{"type":43,"value":1318},{"type":37,"tag":162,"props":1956,"children":1958},{"class":164,"line":1957},22,[1959,1964,1968,1974],{"type":37,"tag":162,"props":1960,"children":1961},{"style":1262},[1962],{"type":43,"value":1963},"      force_instrumental",{"type":37,"tag":162,"props":1965,"children":1966},{"style":196},[1967],{"type":43,"value":1270},{"type":37,"tag":162,"props":1969,"children":1971},{"style":1970},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1972],{"type":43,"value":1973}," true",{"type":37,"tag":162,"props":1975,"children":1976},{"style":196},[1977],{"type":43,"value":1318},{"type":37,"tag":162,"props":1979,"children":1981},{"class":164,"line":1980},23,[1982,1987,1991],{"type":37,"tag":162,"props":1983,"children":1984},{"style":196},[1985],{"type":43,"value":1986},"    }",{"type":37,"tag":162,"props":1988,"children":1989},{"style":1262},[1990],{"type":43,"value":1602},{"type":37,"tag":162,"props":1992,"children":1993},{"style":196},[1994],{"type":43,"value":1318},{"type":37,"tag":162,"props":1996,"children":1998},{"class":164,"line":1997},24,[1999,2003,2007,2011,2015,2019,2023,2027,2031,2035,2039],{"type":37,"tag":162,"props":2000,"children":2001},{"style":196},[2002],{"type":43,"value":289},{"type":37,"tag":162,"props":2004,"children":2005},{"style":1262},[2006],{"type":43,"value":1602},{"type":37,"tag":162,"props":2008,"children":2009},{"style":196},[2010],{"type":43,"value":360},{"type":37,"tag":162,"props":2012,"children":2013},{"style":1389},[2014],{"type":43,"value":1626},{"type":37,"tag":162,"props":2016,"children":2017},{"style":1262},[2018],{"type":43,"value":1444},{"type":37,"tag":162,"props":2020,"children":2021},{"style":1633},[2022],{"type":43,"value":1636},{"type":37,"tag":162,"props":2024,"children":2025},{"style":1209},[2026],{"type":43,"value":1641},{"type":37,"tag":162,"props":2028,"children":2029},{"style":181},[2030],{"type":43,"value":1646},{"type":37,"tag":162,"props":2032,"children":2033},{"style":196},[2034],{"type":43,"value":360},{"type":37,"tag":162,"props":2036,"children":2037},{"style":1389},[2038],{"type":43,"value":1655},{"type":37,"tag":162,"props":2040,"children":2041},{"style":1262},[2042],{"type":43,"value":1660},{"type":37,"tag":162,"props":2044,"children":2046},{"class":164,"line":2045},25,[2047],{"type":37,"tag":162,"props":2048,"children":2049},{"emptyLinePlaceholder":1370},[2050],{"type":43,"value":1373},{"type":37,"tag":162,"props":2052,"children":2054},{"class":164,"line":2053},26,[2055],{"type":37,"tag":162,"props":2056,"children":2057},{"style":1407},[2058],{"type":43,"value":2059},"  \u002F\u002F 3. Poll\n",{"type":37,"tag":162,"props":2061,"children":2063},{"class":164,"line":2062},27,[2064,2069,2074,2079,2084],{"type":37,"tag":162,"props":2065,"children":2066},{"style":1431},[2067],{"type":43,"value":2068},"  while",{"type":37,"tag":162,"props":2070,"children":2071},{"style":1262},[2072],{"type":43,"value":2073}," (",{"type":37,"tag":162,"props":2075,"children":2076},{"style":1970},[2077],{"type":43,"value":2078},"true",{"type":37,"tag":162,"props":2080,"children":2081},{"style":1262},[2082],{"type":43,"value":2083},") ",{"type":37,"tag":162,"props":2085,"children":2086},{"style":196},[2087],{"type":43,"value":262},{"type":37,"tag":162,"props":2089,"children":2091},{"class":164,"line":2090},28,[2092,2097,2102,2106,2110,2114,2118,2122,2126,2130,2135,2139,2143],{"type":37,"tag":162,"props":2093,"children":2094},{"style":1209},[2095],{"type":43,"value":2096},"    const",{"type":37,"tag":162,"props":2098,"children":2099},{"style":181},[2100],{"type":43,"value":2101}," res",{"type":37,"tag":162,"props":2103,"children":2104},{"style":196},[2105],{"type":43,"value":1428},{"type":37,"tag":162,"props":2107,"children":2108},{"style":1431},[2109],{"type":43,"value":1434},{"type":37,"tag":162,"props":2111,"children":2112},{"style":1389},[2113],{"type":43,"value":1439},{"type":37,"tag":162,"props":2115,"children":2116},{"style":1262},[2117],{"type":43,"value":1444},{"type":37,"tag":162,"props":2119,"children":2120},{"style":196},[2121],{"type":43,"value":1449},{"type":37,"tag":162,"props":2123,"children":2124},{"style":181},[2125],{"type":43,"value":1454},{"type":37,"tag":162,"props":2127,"children":2128},{"style":196},[2129],{"type":43,"value":1459},{"type":37,"tag":162,"props":2131,"children":2132},{"style":175},[2133],{"type":43,"value":2134},"\u002Faudio\u002Fretrieve",{"type":37,"tag":162,"props":2136,"children":2137},{"style":196},[2138],{"type":43,"value":1469},{"type":37,"tag":162,"props":2140,"children":2141},{"style":196},[2142],{"type":43,"value":1474},{"type":37,"tag":162,"props":2144,"children":2145},{"style":196},[2146],{"type":43,"value":1256},{"type":37,"tag":162,"props":2148,"children":2150},{"class":164,"line":2149},29,[2151,2156,2160,2164,2168,2172,2176,2180],{"type":37,"tag":162,"props":2152,"children":2153},{"style":1262},[2154],{"type":43,"value":2155},"      method",{"type":37,"tag":162,"props":2157,"children":2158},{"style":196},[2159],{"type":43,"value":1270},{"type":37,"tag":162,"props":2161,"children":2162},{"style":196},[2163],{"type":43,"value":257},{"type":37,"tag":162,"props":2165,"children":2166},{"style":175},[2167],{"type":43,"value":1499},{"type":37,"tag":162,"props":2169,"children":2170},{"style":196},[2171],{"type":43,"value":999},{"type":37,"tag":162,"props":2173,"children":2174},{"style":196},[2175],{"type":43,"value":1474},{"type":37,"tag":162,"props":2177,"children":2178},{"style":181},[2179],{"type":43,"value":1512},{"type":37,"tag":162,"props":2181,"children":2182},{"style":196},[2183],{"type":43,"value":1318},{"type":37,"tag":162,"props":2185,"children":2187},{"class":164,"line":2186},30,[2188,2193,2197,2201,2205,2209,2213,2217,2221,2225,2229,2233,2237],{"type":37,"tag":162,"props":2189,"children":2190},{"style":1262},[2191],{"type":43,"value":2192},"      body",{"type":37,"tag":162,"props":2194,"children":2195},{"style":196},[2196],{"type":43,"value":1270},{"type":37,"tag":162,"props":2198,"children":2199},{"style":181},[2200],{"type":43,"value":1533},{"type":37,"tag":162,"props":2202,"children":2203},{"style":196},[2204],{"type":43,"value":360},{"type":37,"tag":162,"props":2206,"children":2207},{"style":1389},[2208],{"type":43,"value":1542},{"type":37,"tag":162,"props":2210,"children":2211},{"style":1262},[2212],{"type":43,"value":1444},{"type":37,"tag":162,"props":2214,"children":2215},{"style":196},[2216],{"type":43,"value":1551},{"type":37,"tag":162,"props":2218,"children":2219},{"style":181},[2220],{"type":43,"value":1556},{"type":37,"tag":162,"props":2222,"children":2223},{"style":196},[2224],{"type":43,"value":1474},{"type":37,"tag":162,"props":2226,"children":2227},{"style":181},[2228],{"type":43,"value":1749},{"type":37,"tag":162,"props":2230,"children":2231},{"style":196},[2232],{"type":43,"value":1597},{"type":37,"tag":162,"props":2234,"children":2235},{"style":1262},[2236],{"type":43,"value":1602},{"type":37,"tag":162,"props":2238,"children":2239},{"style":196},[2240],{"type":43,"value":1318},{"type":37,"tag":162,"props":2242,"children":2244},{"class":164,"line":2243},31,[2245,2249],{"type":37,"tag":162,"props":2246,"children":2247},{"style":196},[2248],{"type":43,"value":1986},{"type":37,"tag":162,"props":2250,"children":2251},{"style":1262},[2252],{"type":43,"value":1716},{"type":37,"tag":162,"props":2254,"children":2256},{"class":164,"line":2255},32,[2257,2261,2266,2270,2274,2278,2283,2287,2292,2296,2300,2305,2309,2313,2318],{"type":37,"tag":162,"props":2258,"children":2259},{"style":1209},[2260],{"type":43,"value":2096},{"type":37,"tag":162,"props":2262,"children":2263},{"style":181},[2264],{"type":43,"value":2265}," ct",{"type":37,"tag":162,"props":2267,"children":2268},{"style":196},[2269],{"type":43,"value":1428},{"type":37,"tag":162,"props":2271,"children":2272},{"style":181},[2273],{"type":43,"value":2101},{"type":37,"tag":162,"props":2275,"children":2276},{"style":196},[2277],{"type":43,"value":360},{"type":37,"tag":162,"props":2279,"children":2280},{"style":181},[2281],{"type":43,"value":2282},"headers",{"type":37,"tag":162,"props":2284,"children":2285},{"style":196},[2286],{"type":43,"value":360},{"type":37,"tag":162,"props":2288,"children":2289},{"style":1389},[2290],{"type":43,"value":2291},"get",{"type":37,"tag":162,"props":2293,"children":2294},{"style":1262},[2295],{"type":43,"value":1444},{"type":37,"tag":162,"props":2297,"children":2298},{"style":196},[2299],{"type":43,"value":999},{"type":37,"tag":162,"props":2301,"children":2302},{"style":175},[2303],{"type":43,"value":2304},"content-type",{"type":37,"tag":162,"props":2306,"children":2307},{"style":196},[2308],{"type":43,"value":999},{"type":37,"tag":162,"props":2310,"children":2311},{"style":1262},[2312],{"type":43,"value":2083},{"type":37,"tag":162,"props":2314,"children":2315},{"style":196},[2316],{"type":43,"value":2317},"??",{"type":37,"tag":162,"props":2319,"children":2320},{"style":196},[2321],{"type":43,"value":2322}," ''\n",{"type":37,"tag":162,"props":2324,"children":2326},{"class":164,"line":2325},33,[2327,2332,2336,2341,2345,2350,2354,2358,2363,2367,2372],{"type":37,"tag":162,"props":2328,"children":2329},{"style":1431},[2330],{"type":43,"value":2331},"    if",{"type":37,"tag":162,"props":2333,"children":2334},{"style":1262},[2335],{"type":43,"value":2073},{"type":37,"tag":162,"props":2337,"children":2338},{"style":181},[2339],{"type":43,"value":2340},"ct",{"type":37,"tag":162,"props":2342,"children":2343},{"style":196},[2344],{"type":43,"value":360},{"type":37,"tag":162,"props":2346,"children":2347},{"style":1389},[2348],{"type":43,"value":2349},"startsWith",{"type":37,"tag":162,"props":2351,"children":2352},{"style":1262},[2353],{"type":43,"value":1444},{"type":37,"tag":162,"props":2355,"children":2356},{"style":196},[2357],{"type":43,"value":999},{"type":37,"tag":162,"props":2359,"children":2360},{"style":175},[2361],{"type":43,"value":2362},"audio\u002F",{"type":37,"tag":162,"props":2364,"children":2365},{"style":196},[2366],{"type":43,"value":999},{"type":37,"tag":162,"props":2368,"children":2369},{"style":1262},[2370],{"type":43,"value":2371},")) ",{"type":37,"tag":162,"props":2373,"children":2374},{"style":196},[2375],{"type":43,"value":262},{"type":37,"tag":162,"props":2377,"children":2379},{"class":164,"line":2378},34,[2380,2385,2390,2394,2399,2403,2408,2412,2417,2421,2425,2430],{"type":37,"tag":162,"props":2381,"children":2382},{"style":1209},[2383],{"type":43,"value":2384},"      const",{"type":37,"tag":162,"props":2386,"children":2387},{"style":181},[2388],{"type":43,"value":2389}," buf",{"type":37,"tag":162,"props":2391,"children":2392},{"style":196},[2393],{"type":43,"value":1428},{"type":37,"tag":162,"props":2395,"children":2396},{"style":181},[2397],{"type":43,"value":2398}," Buffer",{"type":37,"tag":162,"props":2400,"children":2401},{"style":196},[2402],{"type":43,"value":360},{"type":37,"tag":162,"props":2404,"children":2405},{"style":1389},[2406],{"type":43,"value":2407},"from",{"type":37,"tag":162,"props":2409,"children":2410},{"style":1262},[2411],{"type":43,"value":1444},{"type":37,"tag":162,"props":2413,"children":2414},{"style":1431},[2415],{"type":43,"value":2416},"await",{"type":37,"tag":162,"props":2418,"children":2419},{"style":181},[2420],{"type":43,"value":2101},{"type":37,"tag":162,"props":2422,"children":2423},{"style":196},[2424],{"type":43,"value":360},{"type":37,"tag":162,"props":2426,"children":2427},{"style":1389},[2428],{"type":43,"value":2429},"arrayBuffer",{"type":37,"tag":162,"props":2431,"children":2432},{"style":1262},[2433],{"type":43,"value":1660},{"type":37,"tag":162,"props":2435,"children":2437},{"class":164,"line":2436},35,[2438,2443,2448,2452,2457,2461,2465,2470,2474,2478,2482],{"type":37,"tag":162,"props":2439,"children":2440},{"style":1431},[2441],{"type":43,"value":2442},"      await",{"type":37,"tag":162,"props":2444,"children":2445},{"style":181},[2446],{"type":43,"value":2447}," fs",{"type":37,"tag":162,"props":2449,"children":2450},{"style":196},[2451],{"type":43,"value":360},{"type":37,"tag":162,"props":2453,"children":2454},{"style":1389},[2455],{"type":43,"value":2456},"writeFile",{"type":37,"tag":162,"props":2458,"children":2459},{"style":1262},[2460],{"type":43,"value":1444},{"type":37,"tag":162,"props":2462,"children":2463},{"style":196},[2464],{"type":43,"value":999},{"type":37,"tag":162,"props":2466,"children":2467},{"style":175},[2468],{"type":43,"value":2469},"track.mp3",{"type":37,"tag":162,"props":2471,"children":2472},{"style":196},[2473],{"type":43,"value":999},{"type":37,"tag":162,"props":2475,"children":2476},{"style":196},[2477],{"type":43,"value":1474},{"type":37,"tag":162,"props":2479,"children":2480},{"style":181},[2481],{"type":43,"value":2389},{"type":37,"tag":162,"props":2483,"children":2484},{"style":1262},[2485],{"type":43,"value":1716},{"type":37,"tag":162,"props":2487,"children":2489},{"class":164,"line":2488},36,[2490],{"type":37,"tag":162,"props":2491,"children":2492},{"style":1431},[2493],{"type":43,"value":2494},"      break\n",{"type":37,"tag":162,"props":2496,"children":2498},{"class":164,"line":2497},37,[2499],{"type":37,"tag":162,"props":2500,"children":2501},{"style":196},[2502],{"type":43,"value":2503},"    }\n",{"type":37,"tag":162,"props":2505,"children":2507},{"class":164,"line":2506},38,[2508,2512,2516,2521,2525,2529,2533,2537,2541,2545],{"type":37,"tag":162,"props":2509,"children":2510},{"style":1209},[2511],{"type":43,"value":2096},{"type":37,"tag":162,"props":2513,"children":2514},{"style":196},[2515],{"type":43,"value":1744},{"type":37,"tag":162,"props":2517,"children":2518},{"style":181},[2519],{"type":43,"value":2520}," status",{"type":37,"tag":162,"props":2522,"children":2523},{"style":196},[2524],{"type":43,"value":1597},{"type":37,"tag":162,"props":2526,"children":2527},{"style":196},[2528],{"type":43,"value":1428},{"type":37,"tag":162,"props":2530,"children":2531},{"style":1431},[2532],{"type":43,"value":1434},{"type":37,"tag":162,"props":2534,"children":2535},{"style":181},[2536],{"type":43,"value":2101},{"type":37,"tag":162,"props":2538,"children":2539},{"style":196},[2540],{"type":43,"value":360},{"type":37,"tag":162,"props":2542,"children":2543},{"style":1389},[2544],{"type":43,"value":1655},{"type":37,"tag":162,"props":2546,"children":2547},{"style":1262},[2548],{"type":43,"value":2549},"()\n",{"type":37,"tag":162,"props":2551,"children":2553},{"class":164,"line":2552},39,[2554,2558,2562,2567,2572,2576,2581,2585,2589,2594,2599,2604,2608,2612,2617,2621,2625,2629],{"type":37,"tag":162,"props":2555,"children":2556},{"style":1431},[2557],{"type":43,"value":2331},{"type":37,"tag":162,"props":2559,"children":2560},{"style":1262},[2561],{"type":43,"value":2073},{"type":37,"tag":162,"props":2563,"children":2564},{"style":181},[2565],{"type":43,"value":2566},"status",{"type":37,"tag":162,"props":2568,"children":2569},{"style":196},[2570],{"type":43,"value":2571}," !==",{"type":37,"tag":162,"props":2573,"children":2574},{"style":196},[2575],{"type":43,"value":257},{"type":37,"tag":162,"props":2577,"children":2578},{"style":175},[2579],{"type":43,"value":2580},"PROCESSING",{"type":37,"tag":162,"props":2582,"children":2583},{"style":196},[2584],{"type":43,"value":999},{"type":37,"tag":162,"props":2586,"children":2587},{"style":1262},[2588],{"type":43,"value":2083},{"type":37,"tag":162,"props":2590,"children":2591},{"style":1431},[2592],{"type":43,"value":2593},"throw",{"type":37,"tag":162,"props":2595,"children":2596},{"style":196},[2597],{"type":43,"value":2598}," new",{"type":37,"tag":162,"props":2600,"children":2601},{"style":1389},[2602],{"type":43,"value":2603}," Error",{"type":37,"tag":162,"props":2605,"children":2606},{"style":1262},[2607],{"type":43,"value":1444},{"type":37,"tag":162,"props":2609,"children":2610},{"style":196},[2611],{"type":43,"value":1469},{"type":37,"tag":162,"props":2613,"children":2614},{"style":175},[2615],{"type":43,"value":2616},"unexpected ",{"type":37,"tag":162,"props":2618,"children":2619},{"style":196},[2620],{"type":43,"value":1285},{"type":37,"tag":162,"props":2622,"children":2623},{"style":181},[2624],{"type":43,"value":2566},{"type":37,"tag":162,"props":2626,"children":2627},{"style":196},[2628],{"type":43,"value":1313},{"type":37,"tag":162,"props":2630,"children":2631},{"style":1262},[2632],{"type":43,"value":1716},{"type":37,"tag":162,"props":2634,"children":2636},{"class":164,"line":2635},40,[2637,2642,2646,2651,2655,2659,2663,2668,2672,2676,2680,2685],{"type":37,"tag":162,"props":2638,"children":2639},{"style":1431},[2640],{"type":43,"value":2641},"    await",{"type":37,"tag":162,"props":2643,"children":2644},{"style":196},[2645],{"type":43,"value":2598},{"type":37,"tag":162,"props":2647,"children":2648},{"style":169},[2649],{"type":43,"value":2650}," Promise",{"type":37,"tag":162,"props":2652,"children":2653},{"style":1262},[2654],{"type":43,"value":1444},{"type":37,"tag":162,"props":2656,"children":2657},{"style":1633},[2658],{"type":43,"value":1636},{"type":37,"tag":162,"props":2660,"children":2661},{"style":1209},[2662],{"type":43,"value":1641},{"type":37,"tag":162,"props":2664,"children":2665},{"style":1389},[2666],{"type":43,"value":2667}," setTimeout",{"type":37,"tag":162,"props":2669,"children":2670},{"style":1262},[2671],{"type":43,"value":1444},{"type":37,"tag":162,"props":2673,"children":2674},{"style":181},[2675],{"type":43,"value":1636},{"type":37,"tag":162,"props":2677,"children":2678},{"style":196},[2679],{"type":43,"value":1474},{"type":37,"tag":162,"props":2681,"children":2682},{"style":1589},[2683],{"type":43,"value":2684}," 3000",{"type":37,"tag":162,"props":2686,"children":2687},{"style":1262},[2688],{"type":43,"value":2689},"))\n",{"type":37,"tag":162,"props":2691,"children":2693},{"class":164,"line":2692},41,[2694],{"type":37,"tag":162,"props":2695,"children":2696},{"style":196},[2697],{"type":43,"value":2698},"  }\n",{"type":37,"tag":162,"props":2700,"children":2702},{"class":164,"line":2701},42,[2703],{"type":37,"tag":162,"props":2704,"children":2705},{"emptyLinePlaceholder":1370},[2706],{"type":43,"value":1373},{"type":37,"tag":162,"props":2708,"children":2710},{"class":164,"line":2709},43,[2711],{"type":37,"tag":162,"props":2712,"children":2713},{"style":1407},[2714],{"type":43,"value":2715},"  \u002F\u002F 4. Complete\n",{"type":37,"tag":162,"props":2717,"children":2719},{"class":164,"line":2718},44,[2720,2725,2729,2733,2737,2741,2745,2750,2754,2758],{"type":37,"tag":162,"props":2721,"children":2722},{"style":1431},[2723],{"type":43,"value":2724},"  await",{"type":37,"tag":162,"props":2726,"children":2727},{"style":1389},[2728],{"type":43,"value":1439},{"type":37,"tag":162,"props":2730,"children":2731},{"style":1262},[2732],{"type":43,"value":1444},{"type":37,"tag":162,"props":2734,"children":2735},{"style":196},[2736],{"type":43,"value":1449},{"type":37,"tag":162,"props":2738,"children":2739},{"style":181},[2740],{"type":43,"value":1454},{"type":37,"tag":162,"props":2742,"children":2743},{"style":196},[2744],{"type":43,"value":1459},{"type":37,"tag":162,"props":2746,"children":2747},{"style":175},[2748],{"type":43,"value":2749},"\u002Faudio\u002Fcomplete",{"type":37,"tag":162,"props":2751,"children":2752},{"style":196},[2753],{"type":43,"value":1469},{"type":37,"tag":162,"props":2755,"children":2756},{"style":196},[2757],{"type":43,"value":1474},{"type":37,"tag":162,"props":2759,"children":2760},{"style":196},[2761],{"type":43,"value":1256},{"type":37,"tag":162,"props":2763,"children":2765},{"class":164,"line":2764},45,[2766,2770,2774,2778,2782,2786,2790,2794],{"type":37,"tag":162,"props":2767,"children":2768},{"style":1262},[2769],{"type":43,"value":1486},{"type":37,"tag":162,"props":2771,"children":2772},{"style":196},[2773],{"type":43,"value":1270},{"type":37,"tag":162,"props":2775,"children":2776},{"style":196},[2777],{"type":43,"value":257},{"type":37,"tag":162,"props":2779,"children":2780},{"style":175},[2781],{"type":43,"value":1499},{"type":37,"tag":162,"props":2783,"children":2784},{"style":196},[2785],{"type":43,"value":999},{"type":37,"tag":162,"props":2787,"children":2788},{"style":196},[2789],{"type":43,"value":1474},{"type":37,"tag":162,"props":2791,"children":2792},{"style":181},[2793],{"type":43,"value":1512},{"type":37,"tag":162,"props":2795,"children":2796},{"style":196},[2797],{"type":43,"value":1318},{"type":37,"tag":162,"props":2799,"children":2801},{"class":164,"line":2800},46,[2802,2806,2810,2814,2818,2822,2826,2830,2834,2838,2842,2846,2850],{"type":37,"tag":162,"props":2803,"children":2804},{"style":1262},[2805],{"type":43,"value":1524},{"type":37,"tag":162,"props":2807,"children":2808},{"style":196},[2809],{"type":43,"value":1270},{"type":37,"tag":162,"props":2811,"children":2812},{"style":181},[2813],{"type":43,"value":1533},{"type":37,"tag":162,"props":2815,"children":2816},{"style":196},[2817],{"type":43,"value":360},{"type":37,"tag":162,"props":2819,"children":2820},{"style":1389},[2821],{"type":43,"value":1542},{"type":37,"tag":162,"props":2823,"children":2824},{"style":1262},[2825],{"type":43,"value":1444},{"type":37,"tag":162,"props":2827,"children":2828},{"style":196},[2829],{"type":43,"value":1551},{"type":37,"tag":162,"props":2831,"children":2832},{"style":181},[2833],{"type":43,"value":1556},{"type":37,"tag":162,"props":2835,"children":2836},{"style":196},[2837],{"type":43,"value":1474},{"type":37,"tag":162,"props":2839,"children":2840},{"style":181},[2841],{"type":43,"value":1749},{"type":37,"tag":162,"props":2843,"children":2844},{"style":196},[2845],{"type":43,"value":1597},{"type":37,"tag":162,"props":2847,"children":2848},{"style":1262},[2849],{"type":43,"value":1602},{"type":37,"tag":162,"props":2851,"children":2852},{"style":196},[2853],{"type":43,"value":1318},{"type":37,"tag":162,"props":2855,"children":2857},{"class":164,"line":2856},47,[2858,2862],{"type":37,"tag":162,"props":2859,"children":2860},{"style":196},[2861],{"type":43,"value":289},{"type":37,"tag":162,"props":2863,"children":2864},{"style":1262},[2865],{"type":43,"value":1716},{"type":37,"tag":162,"props":2867,"children":2869},{"class":164,"line":2868},48,[2870],{"type":37,"tag":162,"props":2871,"children":2872},{"style":196},[2873],{"type":43,"value":1364},{"type":37,"tag":91,"props":2875,"children":2877},{"id":2876},"capability-probing",[2878],{"type":43,"value":2879},"Capability probing",{"type":37,"tag":46,"props":2881,"children":2882},{},[2883,2885,2890,2892,2897,2899,2905],{"type":43,"value":2884},"Before calling ",{"type":37,"tag":67,"props":2886,"children":2888},{"className":2887},[],[2889],{"type":43,"value":1794},{"type":43,"value":2891},", inspect the model entry returned by ",{"type":37,"tag":67,"props":2893,"children":2895},{"className":2894},[],[2896],{"type":43,"value":358},{"type":43,"value":2898}," — each row's ",{"type":37,"tag":67,"props":2900,"children":2902},{"className":2901},[],[2903],{"type":43,"value":2904},"model_spec",{"type":43,"value":2906}," exposes (among other fields):",{"type":37,"tag":98,"props":2908,"children":2909},{},[2910,2933,2956,2971,2987,3001],{"type":37,"tag":102,"props":2911,"children":2912},{},[2913,2919,2920,2926,2927],{"type":37,"tag":67,"props":2914,"children":2916},{"className":2915},[],[2917],{"type":43,"value":2918},"supports_lyrics",{"type":43,"value":696},{"type":37,"tag":67,"props":2921,"children":2923},{"className":2922},[],[2924],{"type":43,"value":2925},"lyrics_required",{"type":43,"value":696},{"type":37,"tag":67,"props":2928,"children":2930},{"className":2929},[],[2931],{"type":43,"value":2932},"supports_lyrics_optimizer",{"type":37,"tag":102,"props":2934,"children":2935},{},[2936,2942,2943,2949,2950],{"type":37,"tag":67,"props":2937,"children":2939},{"className":2938},[],[2940],{"type":43,"value":2941},"supports_force_instrumental",{"type":43,"value":696},{"type":37,"tag":67,"props":2944,"children":2946},{"className":2945},[],[2947],{"type":43,"value":2948},"supports_speed",{"type":43,"value":696},{"type":37,"tag":67,"props":2951,"children":2953},{"className":2952},[],[2954],{"type":43,"value":2955},"supports_language_code",{"type":37,"tag":102,"props":2957,"children":2958},{},[2959,2965,2966],{"type":37,"tag":67,"props":2960,"children":2962},{"className":2961},[],[2963],{"type":43,"value":2964},"voices[]",{"type":43,"value":696},{"type":37,"tag":67,"props":2967,"children":2969},{"className":2968},[],[2970],{"type":43,"value":819},{"type":37,"tag":102,"props":2972,"children":2973},{},[2974,2980,2981],{"type":37,"tag":67,"props":2975,"children":2977},{"className":2976},[],[2978],{"type":43,"value":2979},"min_prompt_length",{"type":43,"value":696},{"type":37,"tag":67,"props":2982,"children":2984},{"className":2983},[],[2985],{"type":43,"value":2986},"prompt_character_limit",{"type":37,"tag":102,"props":2988,"children":2989},{},[2990,2995,2996],{"type":37,"tag":67,"props":2991,"children":2993},{"className":2992},[],[2994],{"type":43,"value":882},{"type":43,"value":696},{"type":37,"tag":67,"props":2997,"children":2999},{"className":2998},[],[3000],{"type":43,"value":890},{"type":37,"tag":102,"props":3002,"children":3003},{},[3004,3010,3012,3018,3020,3025,3027,3033,3035,3041],{"type":37,"tag":67,"props":3005,"children":3007},{"className":3006},[],[3008],{"type":43,"value":3009},"pricing.generation",{"type":43,"value":3011}," (per-job), ",{"type":37,"tag":67,"props":3013,"children":3015},{"className":3014},[],[3016],{"type":43,"value":3017},"pricing.per_second",{"type":43,"value":3019}," (per second generated), ",{"type":37,"tag":67,"props":3021,"children":3023},{"className":3022},[],[3024],{"type":43,"value":400},{"type":43,"value":3026}," (character-priced narration), or ",{"type":37,"tag":67,"props":3028,"children":3030},{"className":3029},[],[3031],{"type":43,"value":3032},"pricing.durations",{"type":43,"value":3034}," (duration-tiered map: ",{"type":37,"tag":67,"props":3036,"children":3038},{"className":3037},[],[3039],{"type":43,"value":3040},"{ \"\u003Ctier>\": { usd, diem, min_seconds, max_seconds } }",{"type":43,"value":3042},") — each model uses one of these shapes",{"type":37,"tag":91,"props":3044,"children":3046},{"id":3045},"errors",[3047],{"type":43,"value":3048},"Errors",{"type":37,"tag":309,"props":3050,"children":3051},{},[3052,3068],{"type":37,"tag":313,"props":3053,"children":3054},{},[3055],{"type":37,"tag":317,"props":3056,"children":3057},{},[3058,3063],{"type":37,"tag":321,"props":3059,"children":3060},{},[3061],{"type":43,"value":3062},"Code",{"type":37,"tag":321,"props":3064,"children":3065},{},[3066],{"type":43,"value":3067},"Meaning",{"type":37,"tag":332,"props":3069,"children":3070},{},[3071,3095,3112,3144,3183,3215,3232],{"type":37,"tag":317,"props":3072,"children":3073},{},[3074,3083],{"type":37,"tag":339,"props":3075,"children":3076},{},[3077],{"type":37,"tag":67,"props":3078,"children":3080},{"className":3079},[],[3081],{"type":43,"value":3082},"400",{"type":37,"tag":339,"props":3084,"children":3085},{},[3086,3088,3093],{"type":43,"value":3087},"Wrong params (lyrics on an instrumental-only model, ",{"type":37,"tag":67,"props":3089,"children":3091},{"className":3090},[],[3092],{"type":43,"value":372},{"type":43,"value":3094}," outside allowed range, voice not in model's list).",{"type":37,"tag":317,"props":3096,"children":3097},{},[3098,3107],{"type":37,"tag":339,"props":3099,"children":3100},{},[3101],{"type":37,"tag":67,"props":3102,"children":3104},{"className":3103},[],[3105],{"type":43,"value":3106},"401",{"type":37,"tag":339,"props":3108,"children":3109},{},[3110],{"type":43,"value":3111},"Auth \u002F Pro-only model.",{"type":37,"tag":317,"props":3113,"children":3114},{},[3115,3124],{"type":37,"tag":339,"props":3116,"children":3117},{},[3118],{"type":37,"tag":67,"props":3119,"children":3121},{"className":3120},[],[3122],{"type":43,"value":3123},"402",{"type":37,"tag":339,"props":3125,"children":3126},{},[3127,3129,3135,3137,3143],{"type":43,"value":3128},"Insufficient balance. Bearer → ",{"type":37,"tag":67,"props":3130,"children":3132},{"className":3131},[],[3133],{"type":43,"value":3134},"INSUFFICIENT_BALANCE",{"type":43,"value":3136},"; x402 → ",{"type":37,"tag":67,"props":3138,"children":3140},{"className":3139},[],[3141],{"type":43,"value":3142},"PAYMENT_REQUIRED",{"type":43,"value":360},{"type":37,"tag":317,"props":3145,"children":3146},{},[3147,3156],{"type":37,"tag":339,"props":3148,"children":3149},{},[3150],{"type":37,"tag":67,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":43,"value":3155},"404",{"type":37,"tag":339,"props":3157,"children":3158},{},[3159,3161,3167,3168,3174,3176,3182],{"type":43,"value":3160},"On ",{"type":37,"tag":67,"props":3162,"children":3164},{"className":3163},[],[3165],{"type":43,"value":3166},"retrieve",{"type":43,"value":884},{"type":37,"tag":67,"props":3169,"children":3171},{"className":3170},[],[3172],{"type":43,"value":3173},"complete",{"type":43,"value":3175},": unknown \u002F expired ",{"type":37,"tag":67,"props":3177,"children":3179},{"className":3178},[],[3180],{"type":43,"value":3181},"queue_id",{"type":43,"value":360},{"type":37,"tag":317,"props":3184,"children":3185},{},[3186,3195],{"type":37,"tag":339,"props":3187,"children":3188},{},[3189],{"type":37,"tag":67,"props":3190,"children":3192},{"className":3191},[],[3193],{"type":43,"value":3194},"422",{"type":37,"tag":339,"props":3196,"children":3197},{},[3198,3200,3206,3208,3214],{"type":43,"value":3199},"Content policy violation. ",{"type":37,"tag":67,"props":3201,"children":3203},{"className":3202},[],[3204],{"type":43,"value":3205},"ContentViolationError",{"type":43,"value":3207}," may include ",{"type":37,"tag":67,"props":3209,"children":3211},{"className":3210},[],[3212],{"type":43,"value":3213},"suggested_prompt",{"type":43,"value":360},{"type":37,"tag":317,"props":3216,"children":3217},{},[3218,3227],{"type":37,"tag":339,"props":3219,"children":3220},{},[3221],{"type":37,"tag":67,"props":3222,"children":3224},{"className":3223},[],[3225],{"type":43,"value":3226},"429",{"type":37,"tag":339,"props":3228,"children":3229},{},[3230],{"type":43,"value":3231},"Rate limited.",{"type":37,"tag":317,"props":3233,"children":3234},{},[3235,3252],{"type":37,"tag":339,"props":3236,"children":3237},{},[3238,3244,3246],{"type":37,"tag":67,"props":3239,"children":3241},{"className":3240},[],[3242],{"type":43,"value":3243},"500",{"type":43,"value":3245}," \u002F ",{"type":37,"tag":67,"props":3247,"children":3249},{"className":3248},[],[3250],{"type":43,"value":3251},"503",{"type":37,"tag":339,"props":3253,"children":3254},{},[3255],{"type":43,"value":3256},"Inference or capacity issue.",{"type":37,"tag":91,"props":3258,"children":3260},{"id":3259},"gotchas",[3261],{"type":43,"value":3262},"Gotchas",{"type":37,"tag":98,"props":3264,"children":3265},{},[3266,3313,3330,3349,3373,3386],{"type":37,"tag":102,"props":3267,"children":3268},{},[3269,3274,3276,3281,3283,3288,3290,3296,3298,3304,3305,3311],{"type":37,"tag":52,"props":3270,"children":3271},{},[3272],{"type":43,"value":3273},"Quote before queue",{"type":43,"value":3275}," — music is pay-per-second; unexpected ",{"type":37,"tag":67,"props":3277,"children":3279},{"className":3278},[],[3280],{"type":43,"value":372},{"type":43,"value":3282}," can blow through a budget. Use ",{"type":37,"tag":67,"props":3284,"children":3286},{"className":3285},[],[3287],{"type":43,"value":1464},{"type":43,"value":3289}," to gate the ",{"type":37,"tag":67,"props":3291,"children":3293},{"className":3292},[],[3294],{"type":43,"value":3295},"queue",{"type":43,"value":3297}," call against your available balance (",{"type":37,"tag":67,"props":3299,"children":3301},{"className":3300},[],[3302],{"type":43,"value":3303},"\u002Fbilling\u002Fbalance",{"type":43,"value":118},{"type":37,"tag":67,"props":3306,"children":3308},{"className":3307},[],[3309],{"type":43,"value":3310},"\u002Fx402\u002Fbalance\u002F...",{"type":43,"value":3312},").",{"type":37,"tag":102,"props":3314,"children":3315},{},[3316,3321,3323,3328],{"type":37,"tag":67,"props":3317,"children":3319},{"className":3318},[],[3320],{"type":43,"value":3181},{"type":43,"value":3322}," is UUIDv4. Store it alongside the ",{"type":37,"tag":67,"props":3324,"children":3326},{"className":3325},[],[3327],{"type":43,"value":347},{"type":43,"value":3329}," — both are required for every subsequent call.",{"type":37,"tag":102,"props":3331,"children":3332},{},[3333,3335,3340,3342,3347],{"type":43,"value":3334},"Media URLs are ephemeral. Download during ",{"type":37,"tag":67,"props":3336,"children":3338},{"className":3337},[],[3339],{"type":43,"value":3166},{"type":43,"value":3341}," and store yourself; after ",{"type":37,"tag":67,"props":3343,"children":3345},{"className":3344},[],[3346],{"type":43,"value":3173},{"type":43,"value":3348},", Venice deletes the file.",{"type":37,"tag":102,"props":3350,"children":3351},{},[3352,3358,3360,3365,3367,3372],{"type":37,"tag":67,"props":3353,"children":3355},{"className":3354},[],[3356],{"type":43,"value":3357},"lyrics_optimizer: true",{"type":43,"value":3359}," and a non-empty ",{"type":37,"tag":67,"props":3361,"children":3363},{"className":3362},[],[3364],{"type":43,"value":676},{"type":43,"value":3366}," is a ",{"type":37,"tag":67,"props":3368,"children":3370},{"className":3369},[],[3371],{"type":43,"value":3082},{"type":43,"value":360},{"type":37,"tag":102,"props":3374,"children":3375},{},[3376,3378,3384],{"type":43,"value":3377},"Poll rate: don't hammer ",{"type":37,"tag":67,"props":3379,"children":3381},{"className":3380},[],[3382],{"type":43,"value":3383},"\u002Fretrieve",{"type":43,"value":3385},". 2–5 s is plenty — the job queue is the same regardless of poll frequency.",{"type":37,"tag":102,"props":3387,"children":3388},{},[3389,3395,3397,3402],{"type":37,"tag":67,"props":3390,"children":3392},{"className":3391},[],[3393],{"type":43,"value":3394},"execution_duration",{"type":43,"value":3396}," from the retrieve status is cumulative (ms since enqueue); ",{"type":37,"tag":67,"props":3398,"children":3400},{"className":3399},[],[3401],{"type":43,"value":1068},{"type":43,"value":3403}," is the P80 expected total.",{"type":37,"tag":3405,"props":3406,"children":3407},"style",{},[3408],{"type":43,"value":3409},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3411,"total":1906},[3412,3428,3439,3444,3457,3472,3489],{"slug":3413,"name":3413,"fn":3414,"description":3415,"org":3416,"tags":3417,"stars":20,"repoUrl":21,"updatedAt":3427},"venice-api-keys","manage Venice API keys and rate limits","Manage Venice API keys. Covers GET\u002FPOST\u002FPATCH\u002FDELETE \u002Fapi_keys, GET \u002Fapi_keys\u002F{id}, GET \u002Fapi_keys\u002Frate_limits, GET \u002Fapi_keys\u002Frate_limits\u002Flog, the two-step \u002Fapi_keys\u002Fgenerate_web3_key wallet flow, INFERENCE vs ADMIN key types, and per-key consumption limits (USD \u002F DIEM).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3418,3421,3424],{"name":3419,"slug":3420,"type":16},"API Development","api-development",{"name":3422,"slug":3423,"type":16},"Authentication","authentication",{"name":3425,"slug":3426,"type":16},"Security","security","2026-07-17T06:05:40.24171",{"slug":3429,"name":3429,"fn":3430,"description":3431,"org":3432,"tags":3433,"stars":20,"repoUrl":21,"updatedAt":3438},"venice-api-overview","integrate with Venice AI API","High-level map of the Venice.ai API - base URL, authentication modes, endpoint categories, response headers, pricing model, error shape, and versioning. Load this first when starting any Venice integration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3434,3435],{"name":3419,"slug":3420,"type":16},{"name":3436,"slug":3437,"type":16},"Documentation","documentation","2026-08-01T05:43:18.703041",{"slug":4,"name":4,"fn":5,"description":6,"org":3440,"tags":3441,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3442,3443],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":87,"name":87,"fn":3445,"description":3446,"org":3447,"tags":3448,"stars":20,"repoUrl":21,"updatedAt":3456},"generate speech from text","Generate speech from text via POST \u002Faudio\u002Fspeech, and clone a voice via POST \u002Faudio\u002Fvoices. Covers TTS models (Kokoro, Qwen 3, xAI, Inworld, Chatterbox, Orpheus, ElevenLabs Turbo, MiniMax, Gemini Flash, Gradium), voices per family, cloned-voice handles, output formats (mp3\u002Fopus\u002Faac\u002Fflac\u002Fwav\u002Fpcm), streaming, prompt\u002Femotion styling, temperature\u002Ftop_p, and language hints.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3449,3450,3453],{"name":18,"slug":19,"type":16},{"name":3451,"slug":3452,"type":16},"Speech","speech",{"name":3454,"slug":3455,"type":16},"Text-to-Speech","text-to-speech","2026-08-01T05:43:12.713524",{"slug":3458,"name":3458,"fn":3459,"description":3460,"org":3461,"tags":3462,"stars":20,"repoUrl":21,"updatedAt":3471},"venice-audio-transcription","transcribe audio files to text","Transcribe audio files to text via POST \u002Faudio\u002Ftranscriptions. Covers supported models (Parakeet, Whisper, Wizper, Scribe, xAI STT), supported formats (wav\u002Fflac\u002Fm4a\u002Faac\u002Fmp4\u002Fmp3\u002Fogg\u002Fwebm), response formats (json\u002Ftext), timestamps, and language hints. OpenAI-compatible multipart.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3463,3464,3467,3468],{"name":18,"slug":19,"type":16},{"name":3465,"slug":3466,"type":16},"Data Extraction","data-extraction",{"name":3451,"slug":3452,"type":16},{"name":3469,"slug":3470,"type":16},"Transcription","transcription","2026-07-17T06:04:05.524355",{"slug":3473,"name":3473,"fn":3474,"description":3475,"org":3476,"tags":3477,"stars":20,"repoUrl":21,"updatedAt":3488},"venice-augment","extract and parse text from documents","Venice augmentation endpoints for agent pipelines. Covers POST \u002Faugment\u002Ftext-parser (extract text from PDF\u002FDOCX\u002FXLSX\u002Fplain text, multipart, up to 25MB, JSON or plain text response), POST \u002Faugment\u002Fscrape (fetch a URL and return markdown; blocks X\u002FReddit), and POST \u002Faugment\u002Fsearch (Brave ZDR or anonymized Google; structured title\u002Furl\u002Fcontent\u002Fdate results, up to 20 per query). Privacy (zero data retention), rate limits, and error shapes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3478,3479,3482,3485],{"name":3465,"slug":3466,"type":16},{"name":3480,"slug":3481,"type":16},"DOCX","docx",{"name":3483,"slug":3484,"type":16},"PDF","pdf",{"name":3486,"slug":3487,"type":16},"Spreadsheets","spreadsheets","2026-07-17T06:04:00.77979",{"slug":3490,"name":3490,"fn":3491,"description":3492,"org":3493,"tags":3494,"stars":20,"repoUrl":21,"updatedAt":3501},"venice-auth","authenticate to Venice API","Authenticate to the Venice API with a Bearer API key or with an x402 \u002F SIWX wallet (EVM on Base or Ed25519 on Solana). Covers the SIGN-IN-WITH-X header format, the SIWE and Solana message fields, TTL and nonce rules, the venice-x402-client SDK, and how to choose between the two modes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3495,3496,3499],{"name":3419,"slug":3420,"type":16},{"name":3497,"slug":3498,"type":16},"Auth","auth",{"name":3500,"slug":3500,"type":16},"x402","2026-08-01T05:43:14.726965",{"items":3503,"total":1906},[3504,3510,3515,3520,3526,3533,3540,3546,3562,3578,3591,3605],{"slug":3413,"name":3413,"fn":3414,"description":3415,"org":3505,"tags":3506,"stars":20,"repoUrl":21,"updatedAt":3427},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3507,3508,3509],{"name":3419,"slug":3420,"type":16},{"name":3422,"slug":3423,"type":16},{"name":3425,"slug":3426,"type":16},{"slug":3429,"name":3429,"fn":3430,"description":3431,"org":3511,"tags":3512,"stars":20,"repoUrl":21,"updatedAt":3438},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3513,3514],{"name":3419,"slug":3420,"type":16},{"name":3436,"slug":3437,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":3516,"tags":3517,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3518,3519],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":87,"name":87,"fn":3445,"description":3446,"org":3521,"tags":3522,"stars":20,"repoUrl":21,"updatedAt":3456},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3523,3524,3525],{"name":18,"slug":19,"type":16},{"name":3451,"slug":3452,"type":16},{"name":3454,"slug":3455,"type":16},{"slug":3458,"name":3458,"fn":3459,"description":3460,"org":3527,"tags":3528,"stars":20,"repoUrl":21,"updatedAt":3471},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3529,3530,3531,3532],{"name":18,"slug":19,"type":16},{"name":3465,"slug":3466,"type":16},{"name":3451,"slug":3452,"type":16},{"name":3469,"slug":3470,"type":16},{"slug":3473,"name":3473,"fn":3474,"description":3475,"org":3534,"tags":3535,"stars":20,"repoUrl":21,"updatedAt":3488},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3536,3537,3538,3539],{"name":3465,"slug":3466,"type":16},{"name":3480,"slug":3481,"type":16},{"name":3483,"slug":3484,"type":16},{"name":3486,"slug":3487,"type":16},{"slug":3490,"name":3490,"fn":3491,"description":3492,"org":3541,"tags":3542,"stars":20,"repoUrl":21,"updatedAt":3501},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3543,3544,3545],{"name":3419,"slug":3420,"type":16},{"name":3497,"slug":3498,"type":16},{"name":3500,"slug":3500,"type":16},{"slug":3547,"name":3547,"fn":3548,"description":3549,"org":3550,"tags":3551,"stars":20,"repoUrl":21,"updatedAt":3561},"venice-billing","manage Venice billing and usage analytics","Venice billing and usage analytics - GET \u002Fbilling\u002Fbalance, GET \u002Fbilling\u002Fusage-history (keyset-paginated per-request ledger, JSON or CSV), GET \u002Fbilling\u002Fusage (deprecated predecessor), and GET \u002Fbilling\u002Fusage-analytics (aggregated by date\u002Fmodel\u002Fkey). Covers the DIEM\u002FUSD\u002FBUNDLED_CREDITS consumption priority and building dashboards. (Beta)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3552,3555,3558],{"name":3553,"slug":3554,"type":16},"Analytics","analytics",{"name":3556,"slug":3557,"type":16},"Finance","finance",{"name":3559,"slug":3560,"type":16},"Reporting","reporting","2026-08-01T05:43:13.766419",{"slug":3563,"name":3563,"fn":3564,"description":3565,"org":3566,"tags":3567,"stars":20,"repoUrl":21,"updatedAt":3577},"venice-characters","discover and use Venice AI characters","Discover and use Venice public characters (persona-driven system prompts with a bound model). Covers GET \u002Fcharacters (search\u002Ffilter\u002Fsort), \u002Fcharacters\u002F{slug}, \u002Fcharacters\u002F{slug}\u002Freviews, the Character schema, and how to apply a character via venice_parameters.character_slug in chat completions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3568,3571,3574],{"name":3569,"slug":3570,"type":16},"Agents","agents",{"name":3572,"slug":3573,"type":16},"LLM","llm",{"name":3575,"slug":3576,"type":16},"Persona","persona","2026-07-17T06:05:40.942733",{"slug":3579,"name":3579,"fn":3580,"description":3581,"org":3582,"tags":3583,"stars":20,"repoUrl":21,"updatedAt":3590},"venice-chat","interact with Venice chat completions API","Call POST \u002Fchat\u002Fcompletions on Venice. Covers the OpenAI-compatible request shape, Venice-only venice_parameters (web search, E2EE, characters, thinking control, X search), multimodal inputs (images\u002Faudio\u002Fvideo), tool calls, reasoning controls, streaming, prompt caching, structured output, and model feature suffixes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3584,3585,3586,3587],{"name":3569,"slug":3570,"type":16},{"name":3419,"slug":3420,"type":16},{"name":3572,"slug":3573,"type":16},{"name":3588,"slug":3589,"type":16},"Multimodal","multimodal","2026-08-01T05:43:15.821764",{"slug":3592,"name":3592,"fn":3593,"description":3594,"org":3595,"tags":3596,"stars":20,"repoUrl":21,"updatedAt":3604},"venice-crypto-rpc","proxy crypto JSON-RPC calls via Venice","Use Venice as a pay-per-call JSON-RPC proxy to 27 EVM, Starknet, and Solana networks. Covers GET \u002Fcrypto\u002Frpc\u002Fnetworks, POST \u002Fcrypto\u002Frpc\u002F{network}, chain families and per-family method allowlists, the 1×\u002F2×\u002F4× method-tier pricing model, per-minute + 24-hour credit rate limits, idempotency keys for safe retries, single vs batch requests, and the unsupported stateful\u002FWebSocket methods (eth_subscribe, eth_newFilter, *Subscribe, etc.).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3597,3598,3601],{"name":3419,"slug":3420,"type":16},{"name":3599,"slug":3600,"type":16},"Ethereum","ethereum",{"name":3602,"slug":3603,"type":16},"Web3","web3","2026-08-01T05:43:22.78028",{"slug":3606,"name":3606,"fn":3607,"description":3608,"org":3609,"tags":3610,"stars":20,"repoUrl":21,"updatedAt":3615},"venice-embeddings","generate embeddings with Venice API","Call POST \u002Fembeddings on Venice. Covers request shape (input, model, encoding_format, dimensions, user), OpenAI compatibility, response compression (gzip\u002Fbr), and practical usage for retrieval, clustering, and RAG.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3611,3614],{"name":3612,"slug":3613,"type":16},"Data Analysis","data-analysis",{"name":3572,"slug":3573,"type":16},"2026-07-17T06:07:34.97752"]