/v1/audio/transcriptions gets diarized output without changing its request shape.
Setup
Install the Baseten CLI and sign in, then install the OpenAI SDK.Install and sign in to BasetenFor other platforms or a specific version, see the Baseten CLI install reference.
- macOS or Linux
- Windows
Terminal
Install the OpenAI SDK
Hardware
H100
Engine
SGLang (dev build)
Context
32K
Concurrency
128
Write the config
Create and move into the project directory:config.yaml and paste the following:
config.yaml
/v1/audio/transcriptions gets diarized output without changing its request shape.
Flags
Thestart_command passes these flags to the engine. Each one controls a runtime or serving behavior:
Deploy
Deploy the model with the Baseten CLI:Baseten CLI
baseten model push prints your model ID (abc1d2ef in the example). The examples below use it wherever you see {model_id}, and read your API key from the BASETEN_API_KEY environment variable.
Call the model
Your deployment serves the OpenAI-compatible transcription endpoint at/v1/audio/transcriptions.
Upload an audio file as multipart form data. The endpoint returns the transcription in the response body.
- Python
- cURL
main.py
Next steps
Call your model
Endpoint anatomy, authentication, and sync versus async inference
Autoscaling
Scale replicas with traffic, including scale to zero