Create translation
post/v1/audio/translations
Translate audio into English text.
Authentication
Send your OLETOKEN API key as a Bearer token. Keys are created on the API Keys page of the console.
Authorization: Bearer $OLETOKEN_API_KEYRequest body
Content-Type:multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
| file | string | — | |
| model | string | — | |
| prompt | string | — | — |
| response_format | string | — | — |
| temperature | number | — | — |
Responses
200Translation created
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | — | — |
Example request
curl -X POST 'https://api.oletoken.ai/v1/audio/translations' \
-H "Authorization: Bearer $OLETOKEN_API_KEY" \
-F 'file=' \
-F 'model='
