Voice AI Beta — Max
Create Speech Task
Changed onCreate a Text-to-Speech task with Max. Provide exactly one of voice_id (preset voice from GET /v1/tts/max/voices) or voice_asset_id (your voice clone). Text may contain emotion, pause and sound tags (see the Voice AI Beta — Max tag). Cost: ⌈characters × 0.7⌉ credits, deducted at creation and returned as cost; refunded automatically on failure.
Example
curl -X POST https://genaipro.io/api/v1/tts/max \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "{happy}Hello, this is GenAIPro!{/happy} <#0.5#> (laughs) Welcome.", "voice_id": "VOICE_ID", "tts_model": "max-hd", "language": "en", "speed": 1.0}'
Rate limit: 30 requests/minute
post/v1/tts/max
Request
- Base URLhttps://genaipro.io/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"content": "{happy}Hello, this is GenAIPro!{/happy} <#0.5#> Welcome."
}Response
Task created
Example response
{
"status": "completed",
"provider": "lyra"
}Changes
- info
endpoint added
- info