MusicAPI
HomeDocs
HomeDocs
  1. sonic
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Common Scenarios
  • Error handling
  • sonic
    • Sonic Instructions
    • create music
      POST
    • extend music
      POST
    • concat music
      POST
    • cover music
      POST
    • create persona
      POST
    • create music with persona
      POST
    • upload music
      POST
    • get music
      GET
  • studio(Unavailable)
    • Studio Instructions
    • description mode (Use case1)
      POST
    • extend mode (Use case2)
      POST
    • custom mode (Use case3)
      POST
    • instrumental mode (Use case4)
      POST
    • get music
      GET
  • lyrics generation
    • Make Lyrics
      POST
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
      POST
    • create instrument music
      POST
    • get music
      GET
  1. sonic

create persona

POST
https://api.musicapi.ai/api/v1/sonic/persona

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
name
string 
required
the name of this persona
description
string 
required
the style of this persona
continue_clip_id
string 
required
The clip id that you want to create this persona
Example
{
  "name": "test persona",
  "description": "Pop, rap, rhythmic male bass",
  "continue_clip_id": "a2632456-62b0-405c-9de8-2ba509cf24fe"
}

Request 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.musicapi.ai/api/v1/sonic/persona' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name":"test persona",
    "description":"Pop, rap, rhythmic male bass",
    "continue_clip_id":"a2632456-62b0-405c-9de8-2ba509cf24fe"
}'

Responses

🟢200success
application/json
Body
message
string 
required
code
integer 
required
persona_id
string 
required
the id of persona, you can use it to create music
Example
{
  "code": 200,
  "persona_id": "c08806c1-34fa-4290-a78d-0c623eb1dd1c",
  "message": "success"
}
Previous
cover music
Next
create music with persona
Built with