0xatd/cheaptokens-skills/venice-audio-music
Claude Code and agent skill by 0xatd/cheaptokens-skills
- community
Checking that the SKILL.md file is still in the repository.
Async music / audio-track generation via Venice. Covers the /audio/quote + /audio/queue + /audio/retrieve + /audio/complete lifecycle, lyrics vs instrumental, voice selection, duration, language, speed, model capability probing, and webhook-free polling.
Install
npx vskill@latest install 0xatd/cheaptokens-skills/venice-audio-musicSKILL.md
The same SKILL.md was published earlier as 0xatd/cheaptokens-skills/venice-audio-music.
Venice Music / Async Audio
Music (and long-form voice) generation is asynchronous. The flow is:
For short text-to-speech, use the synchronous `venice-audio-speech` endpoint instead.
Use when
- You need songs, jingles, score, soundscape, or long narration.
- The selected model uses duration-based or character-based pricing and must be priced before submission.
- The expected generation time is long enough (> 20 s) that sync call would time out.
Lifecycle
1. POST /audio/quote — price it first
Response: {"quote": 0.48} (USD).
| Field | Notes | |
|---|---|---|
model | Required. Music/audio model from GET /models?type=music. | |
duration_seconds | Integer or numeric string. Only if the model reports duration metadata. | |
character_count | Required for models with pricing.per_thousand_characters (long narration). |
2. POST /audio/queue — enqueue
Response: { "model": "...", "queue_id": "uuid" }.
| Field | Notes | |
|---|---|---|
model | Required. | |
prompt | Required. Describe genre, mood, tempo, instruments. Length caps in /models. | |
lyrics_prompt | Lyrics. Required when lyrics_required=true, rejected when supports_lyrics=false. | |
duration_seconds | Integer or string. Model-dependent. | |
force_instrumental | Only when supports_force_instrumental=true. | |
lyrics_optimizer | Auto-generate lyrics from prompt. Requires supports_lyrics_optimizer=true. lyrics_prompt must be empty. | |
voice | For voice-enabled models. See voices + default_voice in /models. | |
language_code | ISO 639-1. Requires supports_language_code=true. | |
speed | Requires supports_speed=true. Use model's min_speed/max_speed. |
3. POST /audio/retrieve — poll status / download
- If still processing: JSON
{"status":"PROCESSING","average_execution_time":...,"execution_duration":...}. - If done: binary audio body (
audio/mpegor similar). Save the bytes. - Set
delete_media_on_completion: trueto skip step 4.
Poll every 2–5 s; use average_execution_time (ms, P80) as a guideline for your first poll delay.
4. POST /audio/complete — cleanup
Removes the media from Venice storage after you've downloaded it. Required unless you used delete_media_on_completion: true on retrieve.
Full loop (TypeScript)
Capability probing
Before calling /audio/queue, inspect the model entry returned by GET /models?type=music — each row's model_spec exposes (among other fields):
supports_lyrics,lyrics_required,supports_lyrics_optimizersupports_force_instrumental,supports_speed,supports_language_codevoices[],default_voicemin_prompt_length,prompt_character_limitmin_speed,max_speedpricing.generation(per-job),pricing.per_second(per second generated),pricing.per_thousand_characters(character-priced narration), orpricing.durations(duration-tiered map:{ "<tier>": { usd, diem, min_seconds, max_seconds } }) — each model uses one of these shapes
Errors
| Code | Meaning | |
|---|---|---|
400 | Wrong params (lyrics on an instrumental-only model, duration_seconds outside allowed range, voice not in model's list). | |
401 | Auth / Pro-only model. | |
402 | Insufficient balance. Bearer → INSUFFICIENT_BALANCE; x402 → PAYMENT_REQUIRED. | |
404 | On retrieve/complete: unknown / expired queue_id. | |
422 | Content policy violation. ContentViolationError may include suggested_prompt. | |
429 | Rate limited. | |
500 / 503 | Inference or capacity issue. |
Gotchas
- Quote before queue — music is pay-per-second; unexpected
duration_secondscan blow through a budget. Use/audio/quoteto gate thequeuecall against your available balance (/billing/balanceor/x402/balance/...). queue_idis UUIDv4. Store it alongside themodel— both are required for every subsequent call.- Media URLs are ephemeral. Download during
retrieveand store yourself; aftercomplete, Venice deletes the file. lyrics_optimizer: trueand a non-emptylyrics_promptis a400.- Poll rate: don't hammer
/retrieve. 2–5 s is plenty — the job queue is the same regardless of poll frequency. execution_durationfrom the retrieve status is cumulative (ms since enqueue);average_execution_timeis the P80 expected total.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/venice-audio-music/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xatd/cheaptokens-skills/venice-audio-music)