Skip to main content

/status (TTS Status)

After you submit a generation task using the POST /tts endpoint, you must use this endpoint to check the job's status.

This process is called polling. You should make requests to this endpoint periodically (e.g., every 1-2 seconds) with the generation_id you received.

When the job is finished, the status field will change from "Generating" to "Completed", and the response body will contain the audio_url.


Base URL


https://api.audixa.ai/v2

Request

GET /status


Query Parameters

Unlike the /tts endpoint, this request does not take a JSON body. Instead, it requires the generation ID to be passed as a URL query parameter.

ParameterTypeRequiredDescription
generation_idstringYesThe unique ID that was returned from your POST /tts request.

Code Examples

# Replace YOUR_GENERATION_ID with the ID you received
# Replace YOUR_API_KEY with your actual key

curl -X GET "https://api.audixa.ai/v2/status?generation_id=YOUR_GENERATION_ID" \
-H "x-api-key: YOUR_API_KEY"

Responses

✅ Success (Processing)

While the audio is being generated, a 200 OK response will show the status as "Generating". The audio_url field will be null.

Response: 200 OK (Status: Generating)
{
"generation_id": "base_27b4695b-017f-4b6e-8121-03264624479c",
"user_id": "user_xyz_789",
"status": "Generating",
"text_input": "Welcome to Audixa AI...",
"voice_id": "am_ethan",
"model": "base",
"audio_url": null,
"created_at": "2025-09-05T03:30:01Z"
}

✅ Success (Completed)

Once the job is done, a 200 OK response will show the status as "Completed" and provide the permanent URL to the MP3 file in the audio_url field.

Response: 200 OK (Status: Completed)
{
"generation_id": "base_27b4695b-017f-4b6e-8121-03264624479c",
"user_id": "user_xyz_789",
"status": "Completed",
"text_input": "Welcome to Audixa AI...",
"voice_id": "am_ethan",
"model": "base",
"audio_url": "https://media.audixa.ai/base_27b4695b....wav",
"created_at": "2025-09-05T03:30:01Z"
}

❌ Errors

This endpoint will return standard HTTP error codes:

Status CodeError CodeDescription
401 UnauthorizedInvalid API KeyYour x-api-key is missing or incorrect.
403 ForbiddenAccess denied...The generation_id belongs to a different user, and you are not authorized to view it.
404 Not FoundGeneration not foundThe generation_id you provided does not exist.