API referenceVoices

Speak up to 20 lines

POST /voices/speak for each line (cache, per-character charge, word timings), reported per line in input order.

Top-level voice_id / clone_id / language are defaults a line may override. Stops attempting lines after one runs out of credits.

POST
/voices/speak/batch

Authorization

bearerAuth
AuthorizationBearer <token>

Typecut API key. Generate one in app.typecut.ai → Settings → API keys. Send as Authorization: Bearer tc_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/voices/speak/batch" \  -H "Content-Type: application/json" \  -d '{    "lines": [      {        "text": "string"      }    ]  }'
{
  "data": {}
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}