Example Usage
import { CreateAudioTranscriptionsMultipartRequestBody } from "@openrouter/sdk/models/operations";
// No examples available for this model
Fields
| Field | Type | Required | Description |
|---|---|---|---|
file | File | Blob | operations.CreateAudioTranscriptionsMultipartFile | :heavy_check_mark: | The audio file to transcribe. The format is derived from the filename extension or the file part content type. Max 25 MB; send larger files as base64 JSON via input_audio. |
language | string | :heavy_minus_sign: | The language of the input audio (ISO-639-1). |
model | string | :heavy_check_mark: | The model to use for transcription. |
responseFormat | operations.ResponseFormat | :heavy_minus_sign: | The response format. “json” (default) returns { text, usage }; “verbose_json” additionally returns task, language, duration, and segment-level timestamps (OpenAI-compatible providers only). |
temperature | number | :heavy_minus_sign: | The sampling temperature. |
timestampGranularities | operations.TimestampGranularities[] | :heavy_minus_sign: | Timestamp detail levels to include when response_format is “verbose_json”. “word” additionally returns word-level timestamps in the words array. |