Voice AI Beta — Vega

Create Speech Task

Create a Text-to-Speech task with Vega — the cheapest provider (⌈characters / 10⌉ credits, refunded automatically on failure). voice must come from the static catalog (GET /v1/tts/vega/voices); Vega has no cloning. Request body is capped at 32 MiB.

Example

curl -X POST https://genaipro.io/api/v1/tts/vega \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content": "Hello from GenAIPro", "voice": "aurora"}'

Rate limit: 30 requests/minute

post/v1/tts/vega

Request body

titlestring

Optional title (derived from content when empty)

contentstring required

Text to convert to speech

voicestring required

Voice id from the static catalog (GET /v1/tts/vega/voices)

callback_urlstring

Optional webhook — receives the task object when the task completes or fails

Example request

{
  "content": "Hello from GenAIPro",
  "voice": "aurora"
}

Response

Task created — credits already deducted (cost)

idstring

Task ID (poll via the provider's GET /{id})

status'pending' | 'cloning' | 'queued' | 'processing' | 'merging' | 'process_merging' | 'completed' | 'failed'

Voice AI Beta task lifecycle: pendingcloning (clone flow only) → queuedprocessingmergingprocess_mergingcompleted | failed.

providerstring
total_lengthinteger

Billable characters (encoder units ≈ UTF-8 bytes)

costinteger

Credits deducted for this task

Example response

{
  "status": "completed",
  "provider": "lyra"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.