Skip to content
API referenceCreate a translation

Create a translation

POST/v1/audio/translations

Create a translation.

Compatible with OpenAI's create-translation endpoint: upload an audio file as multipart/form-data and get its English translation back as text. Supported on OpenAI and OpenAI-compatible providers and on Sarvam; another provider is a 501. The file must have an audio/* content type and be at most 25 MB, else a 400.

Authenticate with a BYOK virtual key or with x-provider and x-api-key; a PLATFORM virtual key is a 400. The key's checks, the plan's limits and the organization's approved-provider policy (403) apply. Without x-retry-count a failed call is retried up to 3 times on 429 and 5xx.

Authorization

  • AuthorizationBearer <slug>.<secret>

    A virtual key's API key (vk-....<secret>), as Authorization: Bearer. What the OpenAI SDK sends from its api_key. Used by the inference endpoints.

  • orx-virtual-keyheader

    A virtual key's API key in the x-virtual-key header, for clients that keep Authorization for something else.

  • orx-api-keyheader

    Direct credentials: the provider's own API key in x-api-key, with the provider named in x-provider (for example openai). On /v1/messages a virtual key is accepted in x-api-key too, which is what the Claude SDK sends.

Headers

  • x-providerstring

    With direct credentials: the provider x-api-key belongs to, for example openai or anthropic (case and dashes are normalised). Not used with a virtual key.

  • x-retry-countinteger<int32>

    How many times to retry a failed provider call, 0 to 5. Without the header, chat completions, Claude Messages and prompt completions do not retry, and the other endpoints retry up to 3 times. Retries back off exponentially from 1 second and honour a numeric Retry-After. The number made is in the x-retry-count response header.

  • x-retry-status-codesstring

    Comma-separated provider status codes to retry on. Default 429,500,502,503,504,529.

Request body multipart/form-data

  • filestring<binary>required

    the file to upload

  • modelstringrequired

    the model, for example whisper-1 or gpt-4o-transcribe

  • promptstring

    text to guide the model's style or continue a previous segment; optional

  • response_formatstring

    json (the default) or verbose_json, which adds the language, duration, segments and words (transcriptions only)

  • temperaturestring

    sampling temperature from 0 to 1; optional

Responses

200application/json
  • textstringrequired

    The translated text, in English.

NVIDIA Inception Program member

VectorAxis is built by GK Labs, a member of NVIDIA Inception.