Files

Understanding how file URLs work in API responses.

File URLs in API Responses

When you fetch a video (GET /videos/{id}), the response includes direct file URLs in these fields:

  • video_url โ€” Final rendered video
  • thumbnail_url โ€” Video thumbnail image
  • audio_url โ€” Voiceover audio (only present before render completes)
  • image_url โ€” Scene images (only present before render completes)

These URLs are either presigned S3 URLs (valid for 7 days) or CDN URLs if a CDN is configured. They work without authentication.

Embedding Videos

When a video is completed, use the video_url from the video response to embed:

html
<video src="<video_url_from_response>" controls>

โš ๏ธ URL Expiry

Presigned S3 URLs expire after 7 days. For permanent access, download the file and re-host it on your own infrastructure or CDN.

Need the raw text for your AI agent? View MDX ยท Full spec at /llms.txt