Model APIs Overview
slng.ai provides a simple, unified API for accessing state-of-the-art voice models. Our APIs allow you to transcribe audio, generate speech, and identify speakers in your applications.
Making API Requests
All slng.ai model APIs follow a consistent pattern. You can make requests to our models using standard REST API calls with JSON payloads. Each model has its own endpoint and accepts specific parameters.
https://api.slng.ai/v1/us/whisper
Replace {region} with your chosen region (us, uk, eu) and {model} with the model name.
Available Models
Accurate, multilingual speech recognition model that supports 99 languages.
View DocumentationExpressive, lifelike voice generation with natural intonation and emotion.
View DocumentationHigh-speed TTS model optimized for real-time applications and streaming.
View DocumentationCross-lingual voice cloning and customization with support for 30+ languages.
View DocumentationExperimental, stylized voice generation with unique character and personality.
View DocumentationIdentify and segment different speakers in audio recordings with high accuracy.
View DocumentationExample: Transcribing Audio
curl -X POST https://api.slng.ai/v1/us/whisper \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F "audio=@recording.mp3" \ -F "language=en" \ -F "task=transcribe"
Example: Generating Speech
curl -X POST https://api.slng.ai/v1/us/koroko \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Welcome to slng.ai, where voice models run where you need them.", "voice": "emma", "output_format": "mp3" }' \ --output speech.mp3
Authentication
All API requests require authentication using an API key. You can obtain your API key from the slng.ai dashboard after signing up.
Authorization: Bearer YOUR_API_KEY
Regional Deployment
slng.ai allows you to choose where your models run. This helps with data residency requirements, compliance with local regulations, and reducing latency.
api.slng.ai/v1/us/...
api.slng.ai/v1/uk/...
api.slng.ai/v1/eu/...