curl --request POST \
--url https://api.smartlyq.com/v1/audio/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"voice": "<string>",
"model": "<string>"
}
'{
"success": true,
"data": {
"id": 123,
"url": "<string>",
"duration_seconds": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"usage": {
"units": 123,
"cost": "<string>",
"balance_remaining": "<string>"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}curl --request POST \
--url https://api.smartlyq.com/v1/audio/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"voice": "<string>",
"model": "<string>"
}
'{
"success": true,
"data": {
"id": 123,
"url": "<string>",
"duration_seconds": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"usage": {
"units": 123,
"cost": "<string>",
"balance_remaining": "<string>"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}API key from Developer dashboard (Bearer token).