---
title: "Generate captions from a video's audio"
method: POST
path: "/v1/media/{id}/captions/transcribe"
tags: ["media"]
---

# Generate captions from a video's audio

`POST /v1/media/{id}/captions/transcribe`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/media/{id}/captions/transcribe`
- Auth: HTTP bearer

Convert a short audio clip, extracted from a video as 16 kHz mono WAV, into a caption track. Use this instead of the standard caption-generation operation when the full video file is too large to process directly.

## Path parameters

- `id` string, required

## Response `200`

Success.

- object
  - `data` object, required
    - `ok` true, required
    - `key` string, required: Storage path of the caption track.
    - `state` 'ready', required

## Other responses

- `400`: `wrong_kind`: not a video.
- `401`: Missing, expired or revoked bearer token.
- `403`: The token lacks the permission this operation needs (see `x-brix-permission`).
- `404`: No media with this id.
- `413`: Over 20 MB.
- `422`: Empty body.
- `502`: `transcription_failed`.
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
