GET /audio/{audio_id}
Purpose
This endpoint retrieves the current status and results of a sound generation. Use the audio_id returned by Generate Sound Effects or Generate Background Music.
Sounds are looked up here, not with Get Job Status. An audio_id passed to /job/{job_id} returns 404.
Method and Path
- HTTP Method:
GET - Path:
/public/v1/audio/{audio_id}
Authentication
This endpoint requires Bearer Token authentication. See the Authentication Guide for details.
Required Headers:
Authorization: Bearer {your_api_key}
Request Fields
Path Parameters
| Field Name | Type | Required | Description |
|---|---|---|---|
audio_id | UUID | Required | Unique identifier for the sound to retrieve (UUID format) |
Response
GetAudioStatusResponse
| Field Name | Type | Description |
|---|---|---|
audio_id | UUID | Unique identifier for the sound |
status | string | Status. Possible values: Pending, Succeed, Failed |
audio_urls | list[string] | Audio file URLs. Filled only when the status is Succeed |
audio_urls holds one URL per sound effect (10, 6, 4 or 1 depending on length), or one URL for background music. Sound effects are MP3 files. Background music is an MP3 or WAV file.
Status Values
- Pending: The sound is queued or being generated.
audio_urlsstays empty until every result is ready - Succeed: Generation completed successfully
- Failed: Generation failed. The credits are refunded
Error / Validation Rules
| HTTP Status Code | Error Condition | Description |
|---|---|---|
401 Unauthorized | Authentication failed | Invalid API key or missing authentication header |
404 Not Found | Sound not found | No sound found for the given audio_id, or it was deleted ("Audio Not Found") |
422 Unprocessable Entity | Invalid audio_id format | audio_id must be a valid UUID |
Async Job Behavior
Sound generation endpoints immediately return an audio_id, and generation occurs in the background.
Polling Strategy:
- Initial status is
Pending - When complete,
statuschanges toSucceedandaudio_urlscontains the result URLs - If failed,
statuschanges toFailed - Recommended polling interval: 2-3 seconds for sound effects, 5-10 seconds for background music (usually a few minutes)
Example Request
cURL
curl -X GET "https://api.aetherforgeai.com/public/v1/audio/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-H "Authorization: Bearer YOUR_API_KEY"
Response Example (Pending)
{
"audio_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": "Pending",
"audio_urls": []
}
Response Example (Succeed, length 3)
{
"audio_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": "Succeed",
"audio_urls": [
"https://cdn.aetherforgeai.com/audio/1f0e6a52-0c1d-4c55-9a8e-3c1b1d2a7f10.mp3",
"https://cdn.aetherforgeai.com/audio/5b7c2f8e-6d3a-4e19-8b40-2a9e0c4d1e22.mp3",
"https://cdn.aetherforgeai.com/audio/9a1d4c3b-2e8f-4a70-b5c6-7d8e9f0a1b33.mp3",
"https://cdn.aetherforgeai.com/audio/c3e5f7a9-1b2d-4e6f-8a0c-2e4f6a8c0e44.mp3"
]
}
Response Example (Failed)
{
"audio_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": "Failed",
"audio_urls": []
}