---
title: "MakeAIVideo Music API: Generate Background Tracks"
description: "Generate a background music track from a text prompt, and list the tracks already generated in your workspace, ready to sit under a video."
canonical: https://makeaivideo.ai/docs/api/music
format: markdown
generator: makeaivideo-marketing build-time HTML→MD
---

[Documentation](/docs)v1.2

Guides

-   [Overview](/docs)
-   [Quickstart](/docs/quickstart)
-   [Authentication](/docs/authentication)
-   [Webhooks](/docs/webhooks)

Integrations

-   [MCP server](/docs/mcp)
-   [Agents](/docs/agents)
-   [CLI](/docs/cli)
-   [TypeScript SDK](/docs/sdk)

API reference

-   [All endpoints](/docs/api)
-   [Introspection](/docs/api/introspection)
-   [Videos](/docs/api/videos)
-   [Scripts](/docs/api/scripts)
-   [Characters](/docs/api/characters)
-   [Voices](/docs/api/voices)
-   [Music](/docs/api/music)
-   [Uploads](/docs/api/uploads)
-   [Brand kit](/docs/api/brand-kit)
-   [Workspace](/docs/api/workspace)
-   [Ideas](/docs/api/ideas)
-   [Publishing](/docs/api/publishing)
-   [Webhooks](/docs/api/webhooks)
-   [Auth](/docs/api/auth)

API reference

# MakeAIVideo Music API

2 operations · https://app.makeaivideo.ai/api/v1

## When to use the Music API

Background music from a text prompt, rather than a stock library you have to licence and search. Describe the mood and POST /music generates a track for it.

Generated tracks persist in the workspace and GET /music lists them, so a track that works for one video can sit under the next without regenerating. For a channel running a consistent sound, generating once and reusing is both cheaper and more coherent than a fresh track per video.

Generate a background trackCopy

```
curl -X POST https://app.makeaivideo.ai/api/v1/music \
  -H "Authorization: Bearer $MAV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "warm lo-fi bed under a calm explainer",
    "duration": 30,
    "mood": "calm"
  }'
```

-   [GET`/music`](/docs/api/music/list-music)
-   [POST`/music`](/docs/api/music/generate-music)

GET`/music`read

### Your generated background tracks

GET https://app.makeaivideo.ai/api/v1/music

#### Responses

-   `200`Tracks

POST`/music`ai

### Generate a background track from a prompt

POST https://app.makeaivideo.ai/api/v1/music

#### Responses

-   `201`Track

## Music API questions

Where does the background music come from?

It is generated from your text prompt rather than pulled from a stock library, so you describe the mood you want instead of searching for a track that fits.

Can I reuse the same track across several videos?

Yes. Generated tracks stay in your workspace and GET /music lists them, which is the usual approach for a channel that wants a consistent sound.

## MakeAIVideo API guides

-   [Quickstart](/docs/quickstart) — the create, poll and download loop end to end.
-   [Authentication](/docs/authentication) — what the read, ai scope on this page mean.
-   [Agents](/docs/agents) — calling these endpoints from an autonomous agent.

## More MakeAIVideo documentation

In the product

-   [AI music video generator](/ai-music-video-generator): music-led videos in the app

Get an API key

The API and MCP server use the same credits and the same balance as the app, with no separate API plan. Create a key under Settings, Advanced, API keys.

[Start 7 day free trial](https://app.makeaivideo.ai/signup?utm_source=docs&utm_medium=docs_cta&utm_content=%2Fdocs%2Fapi%2Fmusic)[MakeAIVideo plans and pricing](/pricing)

7-day free trial with 350 credits, then plans from $9/mo. Cancel anytime before the trial ends.

[← Voices API](/docs/api/voices)[Uploads API →](/docs/api/uploads)
