Authentication

All Resemble API endpoints use the same authentication method. Your API key works across both servers.

Getting Your API Key

Create or retrieve your API key from the Account → API page.

Authentication Format

All requests require a Bearer token in the Authorization header:

1Authorization: Bearer YOUR_API_KEY

Servers

Resemble uses two servers depending on the endpoint type:

ServerBase URLPurpose
Synthesishttps://f.cluster.resemble.aiText-to-Speech, Speech-to-Speech
APIhttps://app.resemble.ai/api/v2Voices, projects, clips, recordings, agents, etc.

Synthesis Server Example

$curl --request POST "https://f.cluster.resemble.ai/synthesize" \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> --data '{
> "voice_uuid": "YOUR_VOICE_UUID",
> "data": "Hello from Resemble!"
> }'

API Server Example

$curl 'https://app.resemble.ai/api/v2/voices' \
> -H 'Authorization: Bearer YOUR_API_KEY'

SDK Configuration

The SDKs handle authentication automatically once you set your API key:

Node.js

1import { Resemble } from "@resemble/node";
2
3Resemble.setApiKey("YOUR_API_KEY");

Python

1from resemble import Resemble
2
3Resemble.api_key("YOUR_API_KEY")

Store tokens securely and rotate them according to your security policies.