---
title: "Upload an image"
method: POST
path: "/upload_image"
tags: ["ComfyUI"]
---

# Upload an image

`POST /upload_image`

Uploads an image file to the ComfyUI input directory.

## Response `200`

Image uploaded successfully

- ComfyuiUploadImageResponse
  - `name` string
  - `subfolder` string
  - `type` string

## Other responses

- `400` — Bad Request (e.g., missing file or type)
- `401` — Unauthorized
- `500` — Internal Server Error (e.g., upload failed)

---

[API](https://skmtc.dev/google/apis/comfyui-api-service-via-gin.md) · [All operations](https://skmtc.dev/google/apis/comfyui-api-service-via-gin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/comfyui-api-service-via-gin/revisions/0ff52c8365aa/schema)
