STTRequest
Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { STTRequest } from "@openrouter/sdk/models";
let value: STTRequest = {
inputAudio: {
data: "UklGRiQA...",
format: "wav",
},
model: "openai/whisper-large-v3",
};
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
inputAudio | models.STTInputAudio | :heavy_check_mark: | Base64-encoded audio to transcribe | { “data”: “UklGRiQA…”, “format”: “wav” } |
language | string | :heavy_minus_sign: | ISO-639-1 language code (e.g., “en”, “ja”). Auto-detected if omitted. | en |
model | string | :heavy_check_mark: | STT model identifier | openai/whisper-large-v3 |
provider | models.STTRequestProvider | :heavy_minus_sign: | Provider-specific passthrough configuration | |
temperature | number | :heavy_minus_sign: | Sampling temperature for transcription | 0 |