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

Body

application/json
idempotency_key
string<uuid>
required

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

prompt
string
required
Minimum string length: 1
duration
number
required
Required range: 0.5 <= x <= 30
callback
Callback · object

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

loopable
boolean
default:false

Whether the generated sample should be able to be looped

Response

Successful Response

computation
AudioComputation · object
required

A computation to track the generation of audio