Audio

Convert between audio and text with transcription and speech synthesis.

The Audio API converts between audio and text with transcription and speech synthesis. It mirrors OpenAI's audio endpoints so any official OpenAI SDK works out of the box - just point baseURL at https://api.aivene.com/v1.

POST /v1/audio/transcriptions
POST /v1/audio/speech

Upload audio files to transcribe to text, or send text to generate spoken audio.

What you can do

  • Transcribe audio - convert speech to text in the original language.
  • Generate speech - convert text to natural-sounding audio.
  • Multiple formats - input flac, mp3, mp4, wav, webm and more.

Browse available models at Models.

Endpoints

MethodEndpointDescription
POST/v1/audio/transcriptionsCreate transcription
POST/v1/audio/speechCreate speech

Every endpoint expects a bearer token in the Authorization header. Create keys at Manage API Keys.

Errors

All errors share one shape:

{ "error": { "message": "...", "type": "invalid_request_error" } }
Statuserror.typeMeaning
400validation_errorThe body failed schema validation. The message names the offending field.
400invalid_request_errorUnknown model, a model not available on this endpoint, or an unsupported format.
401authentication_errorMissing or invalid API key.
402invalid_request_errorNot enough credit for the request, an unpaid balance, or a spend limit was reached.
403permission_denied_errorThe account is suspended, an Admin key was used, or the model isn't included in your organization's tier.
404not_found_errorThe model is deprecated. The message names its replacement.
408timeout_errorThe model did not finish before the request timed out.
429rate_limit_errorYour organization hit its rate limit for this model. Back off and retry.
500internal_server_errorUnexpected server error.
502 / 503upstream_errorThe model is temporarily unavailable. Safe to retry.

When the model itself rejects a request, the response keeps the model's 4xx status with type upstream_error or invalid_request_error, and error.code names the cause when it is known (context_length_exceeded, content_filter, request_too_large).