Skip to main content
POST
/
eleven
/
video-to-music
视频配乐
curl --request POST \
  --url https://api.mountsea.ai/eleven/video-to-music \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoUrls": [
    "https://example.com/video.mp4"
  ],
  "description": "Upbeat background music for a travel vlog",
  "tags": [
    "upbeat",
    "cinematic"
  ],
  "outputFormat": "mp3_44100_128",
  "signWithC2pa": false
}
'
{
  "taskId": "<string>"
}
Automatically generate background music that matches your video content. The AI analyzes the video and creates music that fits the mood, pace, and transitions.
This is an async task. The response contains a taskId — use Get Task Status to poll for the generated audio.

Limits

  • Up to 10 video URLs per request
  • Total file size: max 200 MB
  • Total video duration: max 600 seconds (10 minutes)
Add a description and tags to guide the AI toward the desired style. For example, "description": "Upbeat background music for a travel vlog" with "tags": ["upbeat", "cinematic"].

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
videoUrls
string[]
required

视频文件 URL 列表(最多 10 个,总大小限 200MB,总时长限 600 秒)

Maximum array length: 10
Example:
["https://example.com/video.mp4"]
description
string

音乐描述(最多 1000 字符)

Maximum string length: 1000
Example:

"Upbeat background music for a travel vlog"

tags
string[]

风格标签(最多 10 个)

Maximum array length: 10
Example:
["upbeat", "cinematic"]
outputFormat
enum<string>
default:mp3_44100_128

输出格式,格式为 codec_sampleRate_bitrate

Available options:
mp3_22050_32,
mp3_24000_48,
mp3_44100_32,
mp3_44100_64,
mp3_44100_96,
mp3_44100_128,
mp3_44100_192,
pcm_8000,
pcm_16000,
pcm_22050,
pcm_24000,
pcm_32000,
pcm_44100,
pcm_48000,
ulaw_8000,
alaw_8000,
opus_48000_32,
opus_48000_64,
opus_48000_96,
opus_48000_128,
opus_48000_192
signWithC2pa
boolean
default:false

是否使用 C2PA 签名标记 AI 生成内容。仅适用于 MP3 输出格式

Response

200 - application/json

任务创建成功

taskId
string
required

任务 ID,用于后续查询结果