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

# View a file

`GET /api/view`

Retrieve and view a file from the ComfyUI file system.
This endpoint is typically used to view generated images or other output files.
Cookie auth is allowed on this endpoint because it's used by img/video tags in browsers.

## Query parameters

- `filename` string, required
- `subfolder` string
- `type` string
- `fullpath` string
- `format` string
- `frame_rate` integer
- `workflow` string
- `timestamp` integer
- `channel` string
- `res` integer

## Response `200`

Success - File content returned (used when channel or res parameter is present)

## Other responses

- `302` — Redirect to GCS signed URL
- `400` — Invalid request parameters
- `404` — File not found or unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/versions/9fb6092a836d/schema)
