---
title: "View or download a video file"
method: GET
path: "/api/viewvideo"
tags: ["view"]
---

# View or download a video file

`GET /api/viewvideo`

[cloud-only] Serves a video file from the output directory. Used by the frontend video player.

## Query parameters

- `filename` string, required
- `type` 'input' | 'output' | 'temp'
- `subfolder` string

## Response `200`

Video content

## Other responses

- `401` — Unauthorized
- `404` — Not found

## Changes

- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/viewvideo/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c9640fded659/schema)
