Skip to main content
PUT
/
create.new_midi_song
create.new_midi_song
curl --request PUT \
  --url https://api.soundpiece.co/create.new_midi_song \
  --header 'Content-Type: application/json' \
  --data '
{
  "idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt": "<string>",
  "callback": {
    "url": "<string>",
    "context": {}
  }
}
'
{
  "computation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "generating",
    "raw_midi": "<string>"
  }
}

Body

application/json
idempotency_key
string<uuid>
required

A unique uuid to allow replaying the request if an unexpected failure occurs

prompt
string
required
Required string length: 1 - 1024
callback
Callback · object

Configuration for a callback that will be called when the computation is complete

Response

Successful Response

computation
MidiComputation · object
required

A computation to track the generation of midi