/
/ComfyUI API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 45m ago · Updated 3w ago
feedback1
file19
  • getList user assets
  • postUpload a new asset
  • getGet asset details
  • putUpdate asset metadata
  • deleteDelete asset
  • putUpdate asset tags
  • postAdd tags to asset
  • deleteRemove tags from asset
  • postCreate asset reference from existing hash
  • headCheck if asset exists by hash
  • getGet tag histogram for filtered assets
  • getGet available model folders
  • getGet models in a specific folder
  • getGet related mask layer files
  • getList all tags
  • postUpload an image file
  • postUpload a mask image
  • getQuery VHS video metadata
  • getView a file
job1
node4
queue3
settings4
system2
task2
user7
workflow11
workflows11
  • postMark assets whose backing files no longer exist on disk
  • postTrigger asset scan/seed from filesystem
  • postCancel an in-progress asset scan
  • getGet asset scan progress
  • getList available embedding names
  • postFree GPU memory and/or unload models
  • getGet internationalisation translation strings
  • getGet configured folder paths
  • getGet server logs as text
  • getGet raw structured log entries
  • patchSubscribe or unsubscribe a WebSocket client to log streaming
file

Upload an image file

Upload an image file to cloud storage.

Image limits:

  • Maximum file size: 50 MB
  • Maximum width/height per edge: 16384 px
  • Maximum total pixel count: 64 megapixels (67108864 pixels)

Uploads that exceed any of these limits are rejected with HTTP 400.

post/api/upload/image

Response

Image uploaded successfully

namestring

Filename of the uploaded image

subfolderstring

Subfolder path where image was saved

typestring

Type of upload (e.g., "output")

Changes