---
title: "Get text from audio"
method: POST
path: "/api/v5/ai-chat/messages/audio"
tags: ["Ai Chat Messages"]
---

# Get text from audio

`POST /api/v5/ai-chat/messages/audio`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/ai-chat/messages/audio`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/ai-chat/messages/audio/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new message in a specific thread.

## Query parameters

- `thread_id` integer: The ID of the chat thread

## Request body `multipart/form-data`

- BodyAiChatMessagesAudioApiV5AiChatMessagesAudioPost
  - `audio_file` string, binary, required

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
