Get Text to Speech Task
FreshGETGET https://api.creatify.ai/api/text_to_speech/{id}/Retrieve a specific text-to-speech task by its ID.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The TTS task ID |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-ID | string | Yes | Your Creatify API ID |
X-API-KEY | string | Yes | Your Creatify API key |
Example Request
bash
curl -X GET 'https://api.creatify.ai/api/text_to_speech/tts-001/' \
-H 'X-API-ID: your-api-id' \
-H 'X-API-KEY: your-api-key'Response
json
{
"id": "tts-001",
"status": "done",
"text": "Welcome to our product demonstration.",
"voice_id": "voice-en-001",
"output": "https://cdn.creatify.ai/tts/tts-001.mp3",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:31:00Z"
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique task identifier |
status | string | Task status: pending, processing, done, failed |
text | string | The input text |
voice_id | string | Voice ID used |
output | string | Generated audio URL (available when done) |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
Status Codes
| Code | Description |
|---|---|
200 | Success |
401 | Unauthorized -- invalid API credentials |
404 | Task not found |
500 | Internal server error |