Zorveus LogoZorveusDOCS
Inference API

Audio transcription and speech

View Markdown

Transcribe audio files and synthesize speech through supported OpenAI-compatible routes.

POST/v1/audio/speech
API Key (Bearer zrv_...)

Zorveus routes text-to-speech (/v1/audio/speech) and audio transcription (/v1/audio/transcriptions) requests using OpenAI-compatible audio models.

Optional key for interactive API requests. Stored in memory only.


Generate speech

Client SDK / Framework:
from openai import OpenAI

client = OpenAI(
    base_url="https://api.zorveus.com/v1",
    api_key="zrv_your_api_key",
)

response = client.audio.speech.create(
    model="openai/tts-1",
    voice="alloy",
    input="Welcome to Zorveus. Your unified AI billing and gateway platform.",
)

response.stream_to_file("output.mp3")

The response is binary audio. Write it to a file or stream it with the content type returned by the gateway. The selected model determines the available voices and response formats.

Transcribe audio

POST/v1/audio/transcriptions
API Key (Bearer zrv_...)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.zorveus.com/v1",
    api_key="zrv_your_api_key",
)

with open("meeting.wav", "rb") as audio_file:
    transcript = client.audio.transcriptions.create(
        model="openai/whisper-1",
        file=audio_file,
    )

print(transcript.text)

Use GET /v1/models before selecting either model. Audio formats, file limits, voices, language options, and output formats depend on the provider route.

Do not put the API key in browser or mobile code. Upload audio to your backend, or mint a purpose-built short-lived credential only when a documented flow supports it.

Was this page helpful?
Edit this page on GitHub

On this page