1. Overview
1.1 Service Capabilities
ToMoviee 2.0 revolutionizes Auto BGM by enabling direct background music generation from video input. The model analyzes video features and automatically produces fitting background music. This feature significantly streamlines background music production, efficiently providing all necessary ambient background music to accurately translate video features into background music. This notably enhances video realism and spatial presence. Eliminating the need for complex background music library searches or professional recordings, ToMoviee 2.0 delivers high-quality, context-aware background music assets that perfectly match the visuals. This accelerates the overall production workflow.
1.2 Sample Prompts and Outputs
|
prompt |
Input Video |
Output Video (with BGM) |
|
It takes 30 seconds to compose a fast and exciting guitar song for a video game video |
||
|
Pop Melody + Energetic Rhythm |
|
2Prompt engine
Refer to the Text to Sound prompt structure for guidance.
3. API Requests
3.1 Request URL
https://open-api.wondershare.cc/v1/open/capacity/application/tm_video_scoring
3.2 Request Parameters
Method: POST
Headers
|
Parameter Name |
Value |
Required |
Example |
Description |
|
Content-Type |
application/json |
Yes |
|
|
|
Authorization |
|
Yes |
Basic xxx |
Security verification information, in the format of Basic {access_token}, where access_token is a token, generated using the given app_key and app_crit, with the generation method being base64 (app_key: app_crit) |
|
X-App-Key |
|
Assigned appkey |
Body
|
Parameter Name |
Type |
Required |
Default Value |
Description |
Other Info |
|
prompt |
string |
Yes |
|
Text prompt, which is recommended to contain fewer than 77 tokens for optimal performance. No hard limit is imposed. |
|
|
file_link |
string |
Yes |
|
Short URL to the input video. Supported formats: MP4, MOV, AVI, M4V, MKV, TS, FLV, MPG, and MPEG-2. Size: up to 120 MB. Duration: up to 95 seconds. Frame rate: 15 FPS–60 FPS. Resolution: 360p–1080p. |
|
|
callback |
string |
No |
|
Callback URL. |
|
|
params |
string |
No |
|
回调透明参数 |
|
3.3 Response
|
Parameter Name |
Type |
Required |
Default Value |
Description |
Other Info |
|
code |
number |
Yes |
|
Error code. |
|
|
msg |
string |
Yes |
|
Error message. |
|
|
data |
object |
No |
|
|
|
|
├─ task_id |
string |
No |
|
Task ID. |
|