GET
/
v1
/
audio-projects
/
{id}
Get audio details
curl --request GET \
  --url https://api.magichour.ai/v1/audio-projects/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "cuid-example",
  "name": "Example Name",
  "status": "complete",
  "type": "VOICE_GENERATOR",
  "created_at": "2023-11-07T05:31:56Z",
  "enabled": true,
  "credits_charged": 2,
  "downloads": [
    {
      "url": "https://videos.magichour.ai/id/output.wav",
      "expires_at": "2024-10-19T05:16:19.027Z"
    }
  ],
  "error": null
}

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".

Path Parameters

id
string
required

Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio.

Example:

"cuid-example"

Response

Success

id
string
required

Unique ID of the audio. This value can be used in the get audio project API to fetch additional details such as status

Example:

"cuid-example"

name
string | null
required

The name of the audio.

Example:

"Example Name"

status
enum<string>
required

The status of the audio.

Available options:
draft,
queued,
rendering,
complete,
error,
canceled
Example:

"complete"

type
string
required

The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER

Example:

"VOICE_GENERATOR"

created_at
string<date-time>
required
enabled
boolean
required

Indicates whether the resource is deleted

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:

2

downloads
object[]
required
error
object | null
required

In the case of an error, this object will contain the error encountered during video render

Example:

null