Skip to contents

[Experimental]

Usage

foundry_video_download(
  generation_id,
  path,
  content = c("video", "thumbnail"),
  overwrite = FALSE,
  api_key = NULL,
  token = NULL,
  endpoint = NULL,
  api_version = "preview"
)

Arguments

generation_id

Character. Video generation ID.

path

Character. Local file path for the downloaded content.

content

Character. "video" for video bytes or "thumbnail" for the generated thumbnail.

overwrite

Logical. Whether to overwrite an existing file.

api_key

Character. Optional API key override.

token

Character. Optional bearer token override.

endpoint

Character. Optional endpoint override.

api_version

Character. Optional API version. Defaults to "preview".

Value

A tibble with the local path, bytes written, generation ID, and content type.

Examples

if (FALSE) { # \dontrun{
foundry_video_download("vidgen_abc123", "clip.mp4")
} # }