SpyBara
Go Premium

go/resources/videos/methods/download_content/index.md 2026-07-07 08:02 UTC to 2026-07-09 20:58 UTC

86 added, 0 removed.

2026
Fri 31 21:03 Thu 30 23:58 Wed 29 15:02 Sat 25 05:59 Thu 23 18:00 Wed 22 20:02 Mon 20 20:00 Fri 17 17:00 Thu 16 20:57 Wed 15 02:58 Tue 14 06:58 Mon 13 15:59 Sun 12 06:58 Fri 10 23:02 Thu 9 20:58 Tue 7 08:02

Retrieve video content

client.Videos.DownloadContent(ctx, videoID, query) (*Response, error)

get /videos/{video_id}/content

Retrieve video content

Parameters

  • videoID string

  • query VideoDownloadContentParams

    • Variant param.Field[VideoDownloadContentParamsVariant]

      Which downloadable asset to return. Defaults to the MP4 video.

      • const VideoDownloadContentParamsVariantVideo VideoDownloadContentParamsVariant = "video"

      • const VideoDownloadContentParamsVariantThumbnail VideoDownloadContentParamsVariant = "thumbnail"

      • const VideoDownloadContentParamsVariantSpritesheet VideoDownloadContentParamsVariant = "spritesheet"

Returns

  • type VideoDownloadContentResponse interface{…}

Example

package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.Videos.DownloadContent(
    context.TODO(),
    "video_123",
    openai.VideoDownloadContentParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}

Example

package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
)

func main() {
  client := openai.NewClient()
  response, err := client.Videos.DownloadContent(
    context.TODO(),
    "video_123",
    openai.VideoDownloadContentParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}