Vocalix.ai
ALL SYSTEMS NORMALSIGN INSTART FREE

Compatibility

OpenAI compatibility

POST /v1/audio/speech accepts the OpenAI audio.speech request shape. Same gateway, same wallet, same response headers — only the field names differ, so switching is a base-URL change.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.vocalix.ai/v1",   # the only change
    api_key="vx_live_…",
)

audio = client.audio.speech.create(
    model="echo-1",
    voice="meera-hi",
    input="आपका parcel आज शाम तक deliver हो जाएगा।",
    response_format="wav",
)
audio.stream_to_file("reply.wav")

Field mapping

OpenAI shapeNative shape
inputtext
voicevoice_id
response_formatoutput_format
modelmodel
speedspeed

response_format is expanded for you

OpenAI names a container; the native surface wants a container and a rate. These are the mappings applied server-side.

mp3mp3_44100_128
opusopus_24000
aacaac_44100
flacflac_44100
wavwav_22050
pcmpcm_24000
✓ same X-Vocalix-* response headers✓ same wallet and rate sheet✓ pitch and seed have no OpenAI equivalent — use the native shape