GET
/
api
/
v1
/
tts
/
{asyncTtsJobId}
curl --request GET \
  --url https://api.play.ai/api/v1/tts/{asyncTtsJobId} \
  --header 'AUTHORIZATION: <api-key>' \
  --header 'X-USER-ID: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "input": {},
  "completedAt": "2023-11-07T05:31:56Z",
  "output": {
    "status": "COMPLETED",
    "url": "<string>",
    "contentType": "<string>",
    "fileSize": 123,
    "duration": 123
  }
}

Authorizations

AUTHORIZATION
string
header
required

API key required for this endpoint. Use Bearer YOUR_SECRET_API_KEY. Get your key from https://play.ai/developers.

X-USER-ID
string
header
required

User ID required for this endpoint. Get it from https://play.ai/developers.

Path Parameters

asyncTtsJobId
string
required

The ID of the asynchronous TTS job.

Response

200
application/json
The TTS job.
id
string
required
createdAt
string
required
input
object
required

The parameters used to create the job

completedAt
string | null
required
output
object
required