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

## Query parameters

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

## Response `200`

Success - File content returned (used when channel 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.dev/ac/apis/comfy-api.md) · [All operations](https://skmtc.dev/ac/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ac/comfy-api/revisions/c1893dffe250/schema)
