GET
/v1/schemas/openai/audio/audio/translations
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace3495a940f589d37ec402c02a7cacfaa0b81f0b4bc7ed7d7c7ce4b8694dd704dc{
"fetchedAt": 1789017020,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
5 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| file* | string | The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough format metadata for the file to be identified. We recommend an extension-bearing filename and an appro… | format: binary |
| model* | string | enum | ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available. | |
| prompt | string | An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting) should be in English. | |
| response_format | enum | The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. | json | text | srt | verbose_json | vtt · default: "json" |
| temperature | number | The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_pro… | default: 0 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"audio/translations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}