Generation

Convert text to speech

Renders synchronously with a voice_id from GET /api/v1/voices. Costs max(1, ceil(characters / 20)) credits.

post/api/v1/speech

Request

  • Base URL: https://viewmax.studio
  • URL: https://viewmax.studio/api/v1/speech
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional. 1–200 visible ASCII characters, no spaces (otherwise 400). A repeated key for the same account, on any create endpoint, returns the task the first request created with its original costCredits and charges nothing; the body is not compared. Without it, every request creates and charges a new task.

Request body

textstring required

Trimmed text to speak. Cost: max(1, ceil(characters / 20)) credits.

voice_idstring required

Voice id from GET /api/v1/voices.

Response

Task created, or the existing task for a repeated Idempotency-Key.

code0 required
message'ok' required

Changes

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