Query podcast generation task status
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
Poll the current status of a podcast generation task.
- processing: Task in progress. Continue polling (recommended interval: 10-15 seconds; podcast generation typically takes several minutes).
- succeeded: Generation complete. The
audio_urlfield contains a downloadable audio link (valid for 1 hour). - failed: Generation failed. The
errorfield contains the error message. Frozen amount is automatically refunded.
Authorization
BearerAuth AuthorizationBearer <token>
API key authentication (OpenAI format). Pass in the Authorization header:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
taskId*string
Task ID (the id field returned by POST /v1/audio/podcasts)
Response Body
application/json
application/json
application/json
application/json
curl -X get "https://api.xrtoken.ai/v1/audio/podcasts/string"{
"id": "string",
"model": "string",
"status": "processing",
"audio_url": "http://example.com",
"audio_duration": 0.1,
"usage": {
"input_text_tokens": 0,
"output_audio_tokens": 0
},
"error": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "string",
"type": "invalid_request_error"
}{
"error": "rate limit exceeded",
"type": "rate_limit_error"
}