Voice AI Beta — Lyra
Create Speech Task
Create a Text-to-Speech task with Lyra. Provide exactly one of voice_id (preset voice from GET /v1/tts/lyra/voices) or voice_asset_id (your voice clone). Lyra requires an explicit language (defaults to vi) and supports speed, volume and emotion controls. Cost: characters credits (1 : 1), refunded automatically on failure.
Example
curl -X POST https://genaipro.io/api/v1/tts/lyra \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "Xin chào, đây là GenAIPro", "voice_id": "694f1b24-...", "language": "vi", "speed": 1.0}'
Rate limit: 30 requests/minute
post/v1/tts/lyra
Request body
Example request
{
"content": "Xin chào, đây là GenAIPro"
}Response
Task created
Example response
{
"status": "completed",
"provider": "lyra"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.