Audio
Mesh API supports audio through POST /v1/chat/completions.
Use this page for:
- audio input with
input_audio - audio output with
modalitiesandaudio
Audio input
Send audio as a content part inside a chat message.
curl
Node.js SDK
Python SDK
Go SDK
Java SDK
Audio output
Request text and audio together when the model supports audio output.
The same request shape is available through all four SDKs by setting chat-completions fields for modalities and audio.
SDK coverage
- Node:
client.chat.completions.create(...) - Python:
client.chat.completions.create(...) - Go:
client.Chat.Completions.Create(...) - Java:
client.chat().completions().create(...)
Notes
- Audio payloads are base64 encoded in the request body.
- Check
GET /v1/modelsto find models that accept or produce audio. - Keep payload sizes reasonable, especially for browser-based clients.