1. Overview
1.1 Service Capabilities
Let your inspiration become melody. ToMoviee AI Music Generation Engine leverages deep composition algorithms and emotional temporal analysis to intelligently create original music clips from text descriptions or emotional keywords. This paves the way for a barrier-free revolution in “language-to-melody” creation.
1.2 Sample Prompts and Outputs
|
Prompt |
Output Music |
Output Thumbnail and Title |
|
a suspenseful electro dance track with pulsing basslines and dark atmospheric synths, building tension for a thriller trailer |
Title: Dark Pulse |
|
|
It is a beautiful positive track with a upbeat, fashion, funky, electronic, motivational, soft, uplifting, commercial, corporate, stylish, catchy sound. |
Title: Sunlight Rhythm |
2Prompt engine
|
Prompt = Subject + Scene (Mood or Style)
|
3. API Requests
3.1 Request URL
https://open-api.wondershare.cc/v1/open/capacity/application/tm_text2music
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 must contain fewer than 77 tokens. The excess will be truncated. |
|
|
duration |
number |
Yes |
|
Desired length of the generated audio. Unit: seconds. The value must be greater than 0 and less than 95. |
|
|
qty |
integer |
Yes |
|
Number of tracks to generate. Valid values: 1–4. |
|
|
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. |
|

