Skip to main content
AddedAudioSDKs
Audio translations, structured outputs, realtime GA protocol, SDK releases

Translate audio to English

POST /v1/audio/translations accepts audio in any language and returns the speech translated to English. This is distinct from the transcribe-and-translate helper at POST /v1/audio/transcriptions/translate, which transcribes first and then translates the text.
model is required — check GET /v1/models for models that support translation. A model that does not is refused with 422. See Audio.

Structured outputs in the SDKs

Node.js 0.1.1 adds a parse() method on chat completions that sends a JSON-schema response_format and returns a typed value instead of a string:
It takes any Standard Schema validator (Zod, Valibot, ArkType) or a raw schema. The Python parse() is not yet published to PyPI. See Structured output.

Realtime audio — GA protocol

Python 0.1.11 and Go v0.1.12 move the realtime client to the GA wire protocol: audio is sent as base64 input_audio_buffer.append events, and output audio is decoded into the message’s audio field rather than left as a base64 string. See Realtime.

SDK releases

  • Python 0.1.11 — realtime GA protocol.
  • Python 0.1.10 — realtime TLS trusts the certifi bundle; stricter request params; error mapping matches the gateway’s error codes; image_bytes() helper for reading generated images; spec fields that had been dropped are now declared.
  • Python 0.1.9 — transcription language_code example fixed.
  • Python 0.1.8 — audio translations.
  • Go v0.1.12 — realtime GA protocol.
  • Go v0.1.11 — SSE buffer no longer truncates large frames; error mapping matches the gateway’s error codes; Bytes() helper for generated images; missing spec fields added.
  • Go v0.1.10 — transcription language_code example fixed.
  • Go v0.1.9 — audio translations.
  • Node.js 0.1.1 — covers the full public data plane: moderations, web search, router select, models search and get, Responses API list and get, image edits, audio translations, plus structured outputs. The unreleased /v1/documents wrapper was removed.
Versions are as published to PyPI (meshapi), npm (meshapi-node-sdk) and the Go module proxy. Before 1.0.4, Node.js repository tags do not match npm: npm 0.1.1 is tagged v1.0.0 and v1.0.1, and 0.1.2 is v1.0.2. See SDK overview for install commands.