Add to Claude
VoiceLabs
API ReferenceGeneration

Ensure the default voice

Make sure this account has VoiceLabs' default built-in voice ("Heart", the Kokoro preset `af_heart`), creating it only if it is missing, and return it. Safe to call on every start: a second call returns the same voice with `created: false` and creates nothing. Use it when GET /v1/voices comes back empty, then pass the returned id as `voice_id` (POST /v1/speech) or `voice` (POST /v1/audio/speech). It adds a built-in voice only; it never clones anyone's voice. Requires the `voice:generate` scope.

POST
/v1/voices/default

Make sure this account has VoiceLabs' default built-in voice ("Heart", the Kokoro preset af_heart), creating it only if it is missing, and return it. Safe to call on every start: a second call returns the same voice with created: false and creates nothing. Use it when GET /v1/voices comes back empty, then pass the returned id as voice_id (POST /v1/speech) or voice (POST /v1/audio/speech). It adds a built-in voice only; it never clones anyone's voice.

Requires the voice:generate scope.

Authorization

x-api-key<token>

A VoiceLabs API key, sent in the x-api-key header. Keys begin with vl_sandbox_. This is the simplest way to authenticate and is what most callers should use.

Create one in the developer console at https://voicelabs.now/connections, on the API keys tab, choosing the scopes it carries. A key does exactly what its scopes allow: one without voice:generate is answered 403 insufficient_scope on the generation operations and cannot spend the account's allowance. The secret is shown once, at creation; revoking a key takes effect on its very next request.

In: header

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/voices/default"
{  "id": "string",  "name": "string",  "created": true,  "voice_type": "string",  "engine": "string",  "language": "string"}