Skip to main content
POST
/
api
/
upload
/
image
Upload an image file
curl --request POST \
  --url https://cloud.comfy.org/api/upload/image \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form image='@example-file' \
  --form 'overwrite=<string>' \
  --form 'subfolder=<string>' \
  --form 'type=<string>'
{
  "name": "<string>",
  "subfolder": "<string>",
  "type": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.

Body

multipart/form-data
image
file
required

The image file to upload

overwrite
string

Whether to overwrite existing file (true/false). Note: Accepted for ComfyUI API compatibility but effectively ignored in cloud. Cloud uses content-addressed storage (hash-based deduplication), so identical content always maps to the same hash. Re-uploading the same content is a no-op.

subfolder
string

Optional subfolder path. Note: Accepted for ComfyUI API compatibility but ignored for storage. Cloud stores assets by hash only. The subfolder is returned in the response for client-side organization but is not used for server-side storage paths.

type
string

Upload type (defaults to "output"). Note: Accepted for ComfyUI API compatibility. Cloud stores all uploads as assets with tags rather than directory-based organization.

Response

Image uploaded successfully

name
string

Filename of the uploaded image

subfolder
string

Subfolder path where image was saved

type
string

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