---
title: "Upload an image file"
method: POST
path: "/api/upload/image"
tags: ["file"]
---

# Upload an image file

`POST /api/upload/image`

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.

## Response `200`

Image uploaded successfully

- object
  - `name` string — Filename of the uploaded image
  - `subfolder` string — Subfolder path where image was saved
  - `type` string — Type of upload (e.g., "output")

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-06-03** `8560879e6188` — 3 breaking, 6 info
  - removed the enum value `input` of the request property `type`
  - removed the enum value `output` of the request property `type`
  - removed the enum value `temp` of the request property `type`
  - api tag `file` added
  - …5 more
- **2026-05-22** `09a5075587c8` — 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 2 breaking, 8 info
  - request property `type` was restricted to a list of enum values
  - removed the media type `application/json` for the response with the status `400`
  - api tag `upload` added
  - api tag `file` removed
  - …6 more

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