Migrate From ElevenLabs
Braiv’s Text to Speech API is designed to make migration from ElevenLabs straightforward for server-side integrations.
What changes
Section titled “What changes”| ElevenLabs | Braiv |
|---|---|
https://api.elevenlabs.io/v1 | https://api.braiv.com/v1 |
| ElevenLabs API key | Braiv API key |
ElevenLabs voice_id | Braiv voice clone id |
| ElevenLabs model id | braiv-speech-v1 |
JavaScript SDK example
Section titled “JavaScript SDK example”If your ElevenLabs client supports a custom baseUrl, point it at Braiv:
import { ElevenLabsClient } from '@elevenlabs/elevenlabs-js';
const client = new ElevenLabsClient({ apiKey: process.env.BRAIV_API_KEY, baseUrl: 'https://api.braiv.com/v1',});
const audio = await client.textToSpeech.convert('YOUR_VOICE_ID', { text: 'The first move is what sets everything in motion.', modelId: 'braiv-speech-v1',});Direct HTTP example
Section titled “Direct HTTP example”curl -X POST "https://api.braiv.com/v1/text-to-speech/YOUR_VOICE_ID" \ -H "xi-api-key: $BRAIV_API_KEY" \ -H "Content-Type: application/json" \ --output speech.wav \ --data '{"text":"Hello from Braiv.","model_id":"braiv-speech-v1"}'Compatibility notes
Section titled “Compatibility notes”- Braiv currently returns WAV audio during the beta.
- Voice cloning and voice management are handled in the Braiv app, not via public API endpoints yet.
- Plan eligibility is checked when keys are generated and whenever requests are made.