---
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

## Changes

- **2026-06-03** `8560879e6188` — 11 breaking, 1 warning, 16 info
  - for the `query` request parameter `type`, default value `output` was removed
  - removed the enum value `a` from the `query` request parameter `channel`
  - removed the enum value `input` from the `query` request parameter `type`
  - removed the enum value `output` from the `query` request parameter `type`
  - …24 more
- **2026-05-22** `09a5075587c8` — 3 info
  - added the non-success response with the status `302`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 6 breaking, 6 warning, 19 info
  - the `query` request parameter `channel` was restricted to a list of enum values
  - the `query` request parameter `type` was restricted to a list of enum values
  - for the `query` request parameter `type`, default value `output` was added
  - removed the media type `application/json` for the response with the status `404`
  - …27 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/view/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/da017caf56f1/schema)
