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.

Base URL
https://api.slng.ai/v1/us/whisper

Replace {region} with your chosen region (us, uk, eu) and {model} with the model name.

Available Models

W
Whisper
Speech-to-Text

Accurate, multilingual speech recognition model that supports 99 languages.

View Documentation
K
Koroko
Text-to-Speech

Expressive, lifelike voice generation with natural intonation and emotion.

View Documentation
O
Orpheus
Text-to-Speech

High-speed TTS model optimized for real-time applications and streaming.

View Documentation
X2
XTTS v2
Text-to-Speech

Cross-lingual voice cloning and customization with support for 30+ languages.

View Documentation
M6
Mars6
Text-to-Speech

Experimental, stylized voice generation with unique character and personality.

View Documentation
Diarization
Speaker Detection

Identify and segment different speakers in audio recordings with high accuracy.

View Documentation

Example: 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.

Authentication Header
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.

🇺🇸
United States
api.slng.ai/v1/us/...
🇬🇧
United Kingdom
api.slng.ai/v1/uk/...
🇪🇺
European Union
api.slng.ai/v1/eu/...

Next Steps

Ready to start building with slng.ai's voice models?