Submit a music generation task to the Producer platform. The platform generates original music based on the provided description. Poll /producer/fetch/{id} for the result.
Request
Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/jsonRequired
Example
{"prompt":"An upbeat pop song about summer vacation","style":"pop, upbeat, summer","title":"string","make_instrumental":false,"wait_audio":false}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.ccapi.ai//producer/submit/MUSIC' \
--header'Authorization: <api-key>' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "An upbeat pop song about summer vacation",
"style": "pop, upbeat, summer",
"title": "string",
"make_instrumental": false,
"wait_audio": false
}'