---
title: Captions
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Stream](https://developers.cloudflare.com/api/go/resources/stream)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Captions

##### [List captions or subtitles](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/methods/get)

client.Stream.Captions.Get(ctx, identifier, query) (\*SinglePage\[[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/stream/{identifier}/captions

##### ModelsExpand Collapse

<details>

<summary>

type Caption struct{…}

</summary>

Generated boolOptional

Whether the caption was generated via AI.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20generated">Link to this property</a>

Label stringOptional

The language label displayed in the native language to users.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

Language stringOptional

The language tag in BCP 47 format.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20language">Link to this property</a>

<details>

<summary>

Status CaptionStatusOptional

The status of a generated caption.

</summary>

One of the following:

const CaptionStatusReady CaptionStatus = "ready"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const CaptionStatusInprogress CaptionStatus = "inprogress"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const CaptionStatusError CaptionStatus = "error"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)

#### CaptionsLanguage

##### [List captions or subtitles for a provided language](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/subresources/language/methods/get)

client.Stream.Captions.Language.Get(ctx, identifier, language, query) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/stream/{identifier}/captions/{language}

##### [Generate captions or subtitles for a provided language via AI](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/subresources/language/methods/create)

client.Stream.Captions.Language.New(ctx, identifier, language, body) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/stream/{identifier}/captions/{language}/generate

##### [Upload captions or subtitles](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/subresources/language/methods/update)

client.Stream.Captions.Language.Update(ctx, identifier, language, params) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/stream/{identifier}/captions/{language}

##### [Delete captions or subtitles](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/subresources/language/methods/delete)

client.Stream.Captions.Language.Delete(ctx, identifier, language, body) (\*string, error)

DELETE/accounts/{account\_id}/stream/{identifier}/captions/{language}

#### CaptionsLanguageVtt

##### [Return WebVTT captions for a provided language](https://developers.cloudflare.com/api/go/resources/stream/subresources/captions/subresources/language/subresources/vtt/methods/get)

client.Stream.Captions.Language.Vtt.Get(ctx, identifier, language, query) (\*string, error)

GET/accounts/{account\_id}/stream/{identifier}/captions/{language}/vtt