audio_url content type, and process both modalities together: they can transcribe speech, answer questions about audio content, or reason over a recording and a text prompt at once.
Not all models support audio. Check the table below before sending audio inputs.
Supported models
Send an audio request
Use theaudio_url content type to include audio in your messages. The request shape matches vision requests with audio_url in place of image_url.
Each model has its own audio requirements:
The combined size of images, videos, and audio must fit within the 200 MB total-media limit. Large combinations can also exceed the encoded-media budget.
Baseten retrieves audio URLs from the inference service. Use an HTTP or HTTPS URL reachable from Baseten’s environment, such as your own object storage. Muse Spark Open follows redirects and rejects localhost, internal, and cloud-metadata IP addresses. Prefer stable, direct HTTPS links. Base64
data: URLs also work, but they count toward the request-body limit, so pass audio by URL when you can.
Send a recording alongside a text prompt like this:
- Python
- JavaScript
- cURL
audio.py