v1

latestOpenAPI 3.0.22026-07-2610288167.4 KB
file

View a file

Retrieve and view a file from the ComfyUI file system. This endpoint is typically used to view generated images or other output files.

get/api/view

Query parameters

filenamestring required
Example:ComfyUI_00004_.png

Name of the file to view

subfolderstring
Example:tests/foo/bar

Subfolder path where the file is located. Note: Accepted for ComfyUI API compatibility but ignored in cloud. Cloud uses content-addressed storage where assets are stored by hash only. The subfolder is client-side UI metadata and not used for storage lookup.

typestring
Example:output

Type of file (e.g., output, input, temp). Note: In cloud, both output and temp files are stored in the same bucket. The type parameter is used for compatibility but storage location is determined by hash.

fullpathstring

Full path to the file (used for temp files)

formatstring

Format of the file

frame_rateinteger

Frame rate for video files

workflowstring

Workflow identifier

timestampinteger

Timestamp parameter

channelstring
Example:rgb

Image channel to extract from PNG images.

  • 'rgb': Return only RGB channels (alpha set to fully opaque)
  • 'a' or 'alpha': Return alpha channel as grayscale image
  • If not specified, return original image unchanged via redirect

Response

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