ElevenLabs Too Expensive? Cheaper TTS API Alternative with NexaAPI (70% savings)
#215
by nickyni - opened
ElevenLabs Alternative: NexaAPI TTS
ElevenLabs charges $22/month for 100K characters. NexaAPI offers pay-per-use TTS at ~$0.001β0.003 per 1,000 characters.
Quick Start
pip install nexaapi
from nexaapi import NexaAPI
client = NexaAPI(api_key='YOUR_API_KEY')
response = client.audio.text_to_speech(
text='Hello! High-quality AI voice via NexaAPI.',
voice='en-US-female-1',
model='tts-multilingual-v2'
)
with open('output.mp3', 'wb') as f:
f.write(response.audio_content)
JavaScript
import NexaAPI from 'nexaapi';
const client = new NexaAPI({ apiKey: 'YOUR_API_KEY' });
const response = await client.audio.textToSpeech({
text: 'Hello! High-quality AI voice via NexaAPI.',
voice: 'en-US-female-1',
model: 'tts-multilingual-v2'
});
Pricing Comparison
- ElevenLabs Creator: $22/month for 100K characters
- NexaAPI: ~$0.001β0.003 per 1K characters (pay only what you use)
Links
- π https://nexa-api.com
- β‘ https://rapidapi.com/user/nexaquency
- π https://pypi.org/project/nexaapi/
- π¦ https://www.npmjs.com/package/nexaapi
Code: https://github.com/diwushennian4955/elevenlabs-alternative-tts