Generate Composition Plan
Generate a composition plan from a prompt.
Headers
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Request body
Example request
{
"source_composition_plan": {
"negative_global_styles": [
"metal",
"hip-hop",
"country"
],
"positive_global_styles": [
"pop",
"rock",
"jazz"
],
"sections": [
{
"duration_ms": 10000,
"lines": [
"Verse 1 lyrics"
],
"negative_local_styles": [
"metal",
"hip-hop",
"country"
],
"positive_local_styles": [
"pop",
"rock",
"jazz"
],
"section_name": "Verse 1"
}
]
}
}Response
Successful Response
Example response
{
"negative_global_styles": [
"metal",
"hip-hop",
"country"
],
"positive_global_styles": [
"pop",
"rock",
"jazz"
],
"sections": [
{
"duration_ms": 10000,
"lines": [
"Verse 1 lyrics"
],
"negative_local_styles": [
"metal",
"hip-hop",
"country"
],
"positive_local_styles": [
"pop",
"rock",
"jazz"
],
"section_name": "Verse 1"
}
]
}Changes
Changed in 4 of the 49 revisions of this API.113
- ●
deleted the
queryrequest parameterenable_loggingrequest-parameter-removed
- ●
- ○
added the new optional
queryrequest parameterenable_loggingnew-optional-request-parameter
- ○
- ○
added the new
music_v2_5enum value to the request propertyrequest-property-enum-value-added
- ○
- ▲
the
////response property's maxLength was increased from6000to6132for the response statusresponse-property-max-length-increased
- ○
the
/////request property's maxLength was increased from6000to6132request-property-max-length-increased
- ▲