[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [CassetteAI Music Generator](https://spiral.ai/integrations/claude-code/cassetteai-music-generator)

# How to Use CassetteAI Music Generator in Claude Code

CassetteAI Music Generator creates instrumental music for videos, podcasts, and games from a written brief. It produces 44.1 kHz stereo WAV audio up to three minutes long, with genre, mood, instruments, and tempo described in the prompt.

|  |  |
| --- | --- |
| Model | CassetteAI Music Generator |
| Available through | fal |
| Category | Audio |
| Price | $0.026 per minute. Billed on `duration`, default 180. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with CassetteAI Music Generator in Claude Code

- Read the game's design document and use CassetteAI Music Generator to create a 90-second instrumental for the main menu. Base the mood on the setting, and write down the genre, instruments, and tempo you chose.
- Read the product demo script in this project. Use CassetteAI Music Generator to create a 60-second instrumental with soft synth chords, restrained electronic drums, and a calm mood at 90 BPM.
- Use CassetteAI Music Generator to create three separate 30-second instrumental drafts for the racing prototype: house, rock, and synth-pop. Request an energetic mood and a tempo of 120 BPM for each.
- Check the project's podcast brief and use CassetteAI Music Generator to create a 20-second instrumental intro with warm piano, upright bass, and brushed drums at 95 BPM. Save the chosen musical brief beside the audio asset.
- Read the short film's scene notes and use CassetteAI Music Generator to create a 120-second instrumental score draft. Translate the scene's emotion into a specific mood, tempo, and set of instruments.

## How to set up CassetteAI Music Generator in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run CassetteAI Music Generator**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "cassetteai/music-generator",
    "input": {
      "prompt": "Smooth chill hip-hop beat with mellow piano melodies, deep bass, and soft drums, perfect for a night drive. Key: D Minor, Tempo: 90 BPM.",
      "duration": 50
    }
  }'
```

Then paste one of the prompts above: Claude Code finds CassetteAI Music Generator on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## CassetteAI Music Generator tools and prices

- [music generator](https://spiral.ai/tools/fal/cassetteai/music-generator) (fal): $0.026 per minute. Billed on `duration`, default 180.

## What can you do with CassetteAI Music Generator in Claude Code?

Create instrumental music for game builds, narrated demos, and interactive prototypes from the project's creative brief. Turn that brief into a concrete description of genre, mood, instruments, and tempo before generating a track.

### Product demonstration music

Generate a 60-second instrumental for a narrated product demo. Try restrained electronic percussion and soft synth chords to keep the musical brief focused.

### Podcast intros and outros

Create a 20-second instrumental cue with a clear mood and a small set of instruments. Try warm piano, brushed drums, and upright bass for a conversational show.

### Game menu music

Create a 90-second instrumental for a game's menu or lobby. Specify the genre, tempo, and instrumentation to match the setting.

### Short film score drafts

Explore a 120-second instrumental cue for a short film scene. Compare separate takes with different moods or instrumentation before choosing a direction.

### Study session music

Generate a three-minute instrumental for a short study break or focus segment. Start with a calm mood, slow tempo, soft piano, and restrained percussion.

### Social video soundtracks

Make a 30-second instrumental for a travel montage or cooking clip. Describe a specific sound, such as cheerful acoustic pop or relaxed jazz.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## CassetteAI Music Generator in other agents

- [Amp](https://spiral.ai/integrations/amp/cassetteai-music-generator)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/cassetteai-music-generator)
- [Claude](https://spiral.ai/integrations/claude-desktop/cassetteai-music-generator)
- [Cline](https://spiral.ai/integrations/cline/cassetteai-music-generator)
- [Codex](https://spiral.ai/integrations/codex/cassetteai-music-generator)
- [Cursor](https://spiral.ai/integrations/cursor/cassetteai-music-generator)
- [Devin](https://spiral.ai/integrations/devin/cassetteai-music-generator)
- [dots](https://spiral.ai/integrations/dots/cassetteai-music-generator)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/cassetteai-music-generator)
- [Gemini](https://spiral.ai/integrations/gemini/cassetteai-music-generator)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/cassetteai-music-generator)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/cassetteai-music-generator)
- [goose](https://spiral.ai/integrations/goose/cassetteai-music-generator)
- [Grok](https://spiral.ai/integrations/grok/cassetteai-music-generator)
- [Grok Build](https://spiral.ai/integrations/grok-build/cassetteai-music-generator)
- [Hermes](https://spiral.ai/integrations/hermes/cassetteai-music-generator)
- [Instinct](https://spiral.ai/integrations/instinct/cassetteai-music-generator)
- [Manus](https://spiral.ai/integrations/manus/cassetteai-music-generator)
- [Muse](https://spiral.ai/integrations/muse/cassetteai-music-generator)
- [Muse Code](https://spiral.ai/integrations/muse-code/cassetteai-music-generator)
- [n8n](https://spiral.ai/integrations/n8n/cassetteai-music-generator)
- [Notion](https://spiral.ai/integrations/notion/cassetteai-music-generator)
- [OpenClaw](https://spiral.ai/integrations/openclaw/cassetteai-music-generator)
- [opencode](https://spiral.ai/integrations/opencode/cassetteai-music-generator)
- [Perplexity](https://spiral.ai/integrations/perplexity/cassetteai-music-generator)
- [Raycast](https://spiral.ai/integrations/raycast/cassetteai-music-generator)
- [VS Code](https://spiral.ai/integrations/vscode/cassetteai-music-generator)
- [Windsurf](https://spiral.ai/integrations/windsurf/cassetteai-music-generator)
- [Zapier](https://spiral.ai/integrations/zapier/cassetteai-music-generator)

## More Claude Code guides

- [Canary Speech-to-Text Turbo](https://spiral.ai/integrations/claude-code/canary-speech-to-text-turbo)
- [CassetteAI Sound Effects Generator](https://spiral.ai/integrations/claude-code/cassetteai-sound-effects-generator)
- [Canary Speech-to-Text](https://spiral.ai/integrations/claude-code/canary-speech-to-text)
- [Chatterbox HD](https://spiral.ai/integrations/claude-code/chatterbox-hd)
- [Audio Understanding](https://spiral.ai/integrations/claude-code/audio-understanding)
- [Chatterbox HD Speech to Speech](https://spiral.ai/integrations/claude-code/chatterbox-hd-speech-to-speech)

## Questions about CassetteAI Music Generator in Claude Code

**Can Claude Code use CassetteAI Music Generator?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run CassetteAI Music Generator like any built-in tool.

**How much does CassetteAI Music Generator cost in Claude Code?**

$0.026 per minute. Billed on `duration`, default 180. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need a fal account to use CassetteAI Music Generator in Claude Code?**

No. Spiral runs CassetteAI Music Generator on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up CassetteAI Music Generator in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while CassetteAI Music Generator runs?**

CassetteAI Music Generator runs in the background. Claude Code starts the run, checks on it and gives you the audio when it's ready.

**What is CassetteAI Music Generator useful for?**

Use it for instrumental background music for videos, podcasts, games, or study sessions. Describe the musical style and mood you want, such as quiet jazz for narration or energetic house for a game.

**Can CassetteAI Music Generator sing lyrics?**

No. It generates instrumental music and does not support sung vocals or lyrics.

**How long can a CassetteAI track be?**

A track can be up to three minutes long. For longer projects, plan separate cues and assemble them in an audio editor.

**What audio format does CassetteAI Music Generator produce?**

It produces WAV audio at 44.1 kHz in stereo.

**What should I put in a CassetteAI music prompt?**

Specify the genre, mood, instruments, and tempo. For example, ask for mellow lo-fi hip-hop with soft piano, deep bass, and gentle drums at 90 BPM.

