CassetteAI Music Generator
Usage-based pricing
ae_cassetteai_music_generator
Create a royalty-free instrumental music track from a text description, with your chosen duration.
Usage-based pricing
Pricing
The charge per call is (max(24 × Actual generated music duration (minutes), 0)) AE credits. All applicable conditions are combined to calculate the total.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.prompt | string | Yes | The prompt to generate music from. | — |
request_body.duration | integer | Yes | The duration of the generated music in seconds. | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeySubmit first, then query with the returned task_id until the task completes.
Request coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_cassetteai_music_generator' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"duration": 45,
"prompt": "Dark cinematic crime-thriller underscore, strictly instrumental, no vocals, no drums, no melody hooks. Key D minor, very slow 70 BPM. Instrumentation: low sustained sub-bass drone, muted low string pad, sparse felt piano notes with long decay, a distant dry ticking clock pulse, faint tape hiss and cold empty-room air. Emotional arc in four stages: first a restrained suffocating tension for a late-night police office covered in victim photos and red string; then an eerie wide nocturnal rooftop with thin glassy high harmonics and a wind-like pad; then one sudden dark low impact followed by near silence; finally a calm analytical crime-scene mood with quiet pulsing bass and a single repeating piano figure, ending unresolved and cold. Low saturation, documentary realism, sparse, uncomfortable, never swelling, never triumphant."
}
}
}'Response exampleresponse.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "6921791e-8aa4-4523-9a77-dd0eb816e0e0"
}Guides using this tool
See how this tool fits into real workflows







