Transcribe audio
Transcribe an audio clip to text using the platform's speech model (OpenAI Whisper). Send a `multipart/form-data` request with a single field named `audio` containing the audio file. Accepted formats: webm, ogg, wav, mp3, m4a — anything Whisper accepts. Maximum file size is 25 MB. Returns `{ text }` with the transcribed content. Returns 503 if the server is not configured with an OpenAI API key.
POST
/v1/transcribeRequest body
| Name | Type | Required | Description |
|---|---|---|---|
audio | file | Required | Audio file to transcribe. `multipart/form-data` field name must be `audio`. Accepted MIME types: audio/webm, audio/ogg, audio/wav, audio/mpeg, audio/mp4. Maximum 25 MB. |
curl https://api.cortex.cognit-dx.com/v1/transcribe \
-X POST \
-H "Authorization: Bearer $CORTEX_TOKEN" \
-F audio=@/path/to/audio.webmResponse codes
| Status | Meaning | Body |
|---|---|---|
401 | Missing or invalid credential. | `{ error, code, request_id }` |
422 | Request body failed validation. | `{ error, code, request_id }` |
{
"text": "Schedule a follow-up call with the Acme team for next Tuesday at 10 AM."
}