CassetteAI's fast, low-cost music generator via fal.ai. Produces 10 to 180 seconds of music from a text prompt at under one credit per second. Returns a WAV file.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "cassetteai/music-generator",
"input": {
"prompt": "Upbeat K-pop electro-pop company jingle instrumental, 128 BPM, synth brass stabs, punchy drums, bright synth lead, catchy hook, fun and playful",
"duration": 30
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | The prompt to generate music from (genre, mood, instruments, tempo) |
duration | integer | Yes | 60 | Duration of the generated music in seconds (10-180). Billed per second |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
The same company-theme prompt given to every instrumental model โ compare the results side by side
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "cassetteai/music-generator",
"input": {
"prompt": "Upbeat K-pop electro-pop company jingle instrumental, 128 BPM, synth brass stabs, punchy drums, bright synth lead, catchy hook, fun and playful",
"duration": 30
}
}'A 30-second chill lo-fi loop
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "cassetteai/music-generator",
"input": {
"prompt": "Chill lo-fi hip hop beat with warm piano chords, vinyl crackle and a laid-back drum groove",
"duration": 30
}
}'POST /v1/predictions