OpenAdapterOpenAdapter
Tools

Text to Speech

Generate spoken audio from text. Multiple voices and formats (mp3, wav, opus, flac, pcm).

Base URL & authentication

Base URL: https://api.openadapter.in

All requests need an Authorization: Bearer sk-cv-... header. Generate or copy your API key from the Dashboard → API Keys page.

Endpoint: POST /v1/audio/speech Cost per call: 0.15 credits Minimum plan: free

Generate spoken audio from text. Multiple voices and formats (mp3, wav, opus, flac, pcm).

Request

curl https://api.openadapter.in/v1/audio/speech \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","voice":"alloy","input":"Hello, world!","response_format":"mp3"}' \
  --output speech.mp3
import requests

resp = requests.post(
    "https://api.openadapter.in/v1/audio/speech",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
    "model": "tts-1",
    "voice": "alloy",
    "input": "Hello, world!",
    "response_format": "mp3",
},
)
with open("speech.mp3", "wb") as f:
    f.write(resp.content)
const res = await fetch('https://api.openadapter.in/v1/audio/speech', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.OPENADAPTER_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "tts-1",
  "voice": "alloy",
  "input": "Hello, world!",
  "response_format": "mp3"
}),
});
const blob = await res.blob();
// Save blob to speech.mp3

Pricing

Each call costs 0.15 credits. Available on the free plan and above.

On this page