Create transcription
Changed onTranscribes audio into text. Accepts base64-encoded audio input as JSON, an OpenAI-style multipart/form-data file upload, or a URL the provider downloads directly, and returns the transcribed text.
Request
- Base URL: https://openrouter.ai/api/v1
- URL: https://openrouter.ai/api/v1/audio/transcriptions
- Auth: HTTP bearer
Request body
Example request
{
"input_audio": {
"data": "UklGRiQA...",
"format": "wav"
},
"language": "en",
"model": "openai/whisper-large-v3"
}Response
Transcription result
Example response
{
"text": "Hello, this is a test of OpenAI speech-to-text transcription.",
"usage": {
"cost": 0.000508,
"input_tokens": 83,
"output_tokens": 30,
"seconds": 9.2,
"total_tokens": 113
}
}Changes
- info
added the new optional request property
/(media type: application/json) - info
added the new optional request property
/(media type: application/json)
- info
- breaking
the
request property type changed fromobjectto no type (media type: application/json) - warning
removed the request property
/(media type: application/json) - warning
removed the request property
/(media type: application/json) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: multipart/form-data) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: multipart/form-data) - info
added the new optional request property
(media type: multipart/form-data) - info
added the new optional request property
//(media type: application/json) - info
added the new optional request property
(media type: multipart/form-data) - info
added to the
request propertyanyOflist (media type: application/json) - info
the request property
became optional (media type: multipart/form-data) - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking