Turn musical ideas
into songs with API
ready for your app
Use /v1/cavn/generate/prompt to transform a natural-language inspiration prompt into a complete song. CAVN AI gives apps, workflows, and AI agents a stable, composable, developer-friendly music generation layer.
/v1/cavn/generate/promptLet agents create, process, and deliver music
Package generation, polling, stem split, MIDI conversion, and style analysis as tools agents can call. Built for MCP, OpenClaw, WorkBuddy, Hermes-style memory agents, and enterprise automation workflows.
View agent setupShort-video BGM agent
Read a video brief, generate several BGM options, and return candidates by mood, tempo, and duration.
Game asset workflow
Batch-generate music assets by level, scene, and loop requirements while preserving task and usage records.
Brand jingle assistant
Generate multiple melody ideas from brand tone for ads, podcasts, and campaign tests.
Hermes memory loop
Persist project preferences, brand sound, and version history so agents can reuse context across sessions.
Example: generate songs from inspiration prompts
The primary path now matches the real API: POST /v1/cavn/generate/prompt. Send a natural-language prompt and model version, then use the returned song IDs to fetch results.
curl -X POST https://api.cavn.ai/v1/cavn/generate/prompt \
-H "Authorization: Bearer sk-live-..." \
-H "Content-Type: application/json" \
-d '{
"prompt": "An uplifting pop song that feels like opening the windows to a bright new morning",
"model": "cavn-v5.5"
}'API endpoints
Full docs/v1/cavn/generate/promptGenerate from prompt/v1/cavn/generate/customGenerate from lyrics and style/v1/mureka/generate/promptMureka prompt generation/v1/minimax/generate/customMiniMax music generation/v1/ace-step/generate/promptACE Step prompt generation/v1/music/generations/query?songid=...Fetch generation resultAgent tools
Translate HTTP APIs into actions that agent planners can reason about.
generate_song_from_promptCreate a song generation task from a natural-language brief.query_generation_resultQuery async tasks and return audio URLs plus metadata.split_audio_stemsSplit audio into vocals, drums, bass, accompaniment, and other stems.convert_audio_to_midiConvert audio to MIDI for arrangement or sheet-music workflows.Quickstart
Generate your first piece of music in four API steps.
Create an account
Get your API key
Write the idea
Describe mood and theme
Send request
Call the prompt endpoint
Fetch result
Query by song ID and download audio
System status
All systems operational
Updated 2 minutes ago