Skip to main content
Fhddos’s /v1/audio endpoints give you three complementary capabilities: convert text to spoken audio with TTS models, transcribe audio files to text with Whisper, and translate foreign-language audio directly into English or another target language. All three endpoints are OpenAI-compatible — point your SDK at https://aiapi.fhddos.com and swap your API key for your Fhddos token.

Text-to-Speech — POST /v1/audio/speech

Send a text string and receive a binary audio stream. The response is a raw audio file you can save directly to disk or pipe into a player.

Parameters

ParameterTypeRequiredDescription
modelstringTTS model to use — e.g. tts-1, tts-1-hd, gpt-4o-mini-tts, gpt-4o-audio-preview
inputstringThe text to synthesise into speech
voicestringVoice ID — compatible with all available OpenAI voice options (e.g. alloy, echo, fable, onyx, nova, shimmer)
response_formatstringOutput audio format. Examples: mp3, opus, aac, pcm, wav, or format strings like mp3-1-32000-128000
speednumberPlayback speed multiplier from 0.25 to 4.0. Default 1.0

Examples

curl -X POST "https://aiapi.fhddos.com/v1/audio/speech" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "voice": "alloy",
    "input": "Welcome to Fhddos — your unified AI model gateway."
  }' \
  --output speech.mp3

High-Definition TTS

For content where audio quality matters — podcasts, voice-overs, or customer-facing audio — use tts-1-hd:
curl -X POST "https://aiapi.fhddos.com/v1/audio/speech" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1-hd",
    "voice": "nova",
    "input": "This is a high-definition voice-over for a product video.",
    "speed": 0.9
  }' \
  --output voiceover-hd.mp3
tts-1 is optimised for low latency and suits real-time use cases. tts-1-hd produces higher-quality audio at slightly higher cost and latency, making it better suited for pre-rendered content.

Authentication

All /v1/audio endpoints use Bearer token authentication:
-H "Authorization: Bearer $TOKEN"
Replace $TOKEN with your Fhddos API token. You can find it in the API Keys section of the Fhddos console.