Skip to main content
POST
AI Music Generator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".

Body

application/json

Body

duration
integer
required

Requested track duration in seconds, from 15 to 300. Determines credits charged.

Required range: 15 <= x <= 300
Example:

120

style
object
required
name
string
default:AI Music Generator

Give your audio a custom name for easy identification.

Example:

"My Music Generator audio"

Response

Success

Success

id
string
required

Unique ID of the audio. Use it with the Get audio Project API to fetch status and downloads.

Example:

"cuid-example"

credits_charged
integer
required

The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.

If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.

Example:

120