How to generate music with an AI agent
Install the Beatra Skill, approve the sign-in once, then describe the song: style, mood, vocals, and your lyrics if you have them. The agent returns MP3 files: full songs with vocals, instrumentals, or background music, and it can follow a reference track you upload.
Updated
Set it up in your agent
Install the Beatra Skill once. The steps are the same for every task on this site.
Install Beatra and tell me when I need to sign in: https://beatra.ai/install.md
Claude Code
- Send Claude Code the install message above.
- Or run
claude plugin marketplace add beatra-ai/ai-media-generator-skill, thenclaude plugin install beatra@ai-media-generator-skill. - When Claude Code shows a sign-in link, open it, sign in, and click Allow.
Codex
- Send Codex the install message above.
- Or run
codex plugin marketplace add beatra-ai/ai-media-generator-skill, thencodex plugin add beatra@ai-media-generator-skill. - When Codex shows a sign-in link, open it, sign in, and click Allow.
Cursor
- Send the install message above in Cursor's agent chat.
- When the agent shows a sign-in link, open it, sign in, and click Allow.
Other agents
- Send the install message above to any agent that can install a Skill and run scripts.
- When the agent shows a sign-in link, open it, sign in, and click Allow.
Then ask in plain words, for example:
Write an upbeat indie-pop song about a late-night drive, female vocals, about two minutes.
Make a 60-second calm piano loop for a podcast intro, no vocals.
What you get
- Songs with your lyrics or lyrics the agent writes, instrumentals, and background music for video, podcasts, and games.
- A style prompt plus lyrics of up to 5,000 characters, depending on the model.
- A reference track of 6 seconds to 8 minutes (MP3, WAV, or FLAC) to steer the style.
- Output: MP3.
Limits depend on the model. Figures as of ; the live model list is always current.
Price
Installing is free. Each render uses Beatra credits, and new accounts start with free credits. Plans are on the pricing page, and the price of each model is in the live model list.
Skills for this task
The Beatra Skill covers everything on this page. These Skills add a ready-made workflow for one task:
Questions
Can it write the lyrics?
Yes. Describe the theme and the agent writes singable lyrics first; you can change them before the song is rendered.
Can it make music without vocals?
Yes. Ask for no vocals and you get an instrumental or a background track.
Where do the songs go?
They come back into your agent conversation and are saved on the Work page of the Beatra console.