---
title: "Get asset content"
method: GET
path: "/api/assets/{id}/content"
tags: ["file"]
---

# Get asset content

`GET /api/assets/{id}/content`

Returns the binary content of an asset by ID.

The contract is the same across runtimes — "GET this path and you
receive the asset's bytes" — but the mechanism differs:
- **Local ComfyUI** streams the bytes directly (`200`,
  `application/octet-stream`).
- **Cloud** does not proxy large files; it responds `302` with a
  `Location` redirect to a short-lived signed storage URL. Clients that
  follow redirects (browsers, `fetch`/XHR, `<img>`/`<video>`) receive
  the bytes transparently.

Prefer this over the filename-addressed `/api/view` when you have an
asset ID.

## Path parameters

- `id` string, required

## Query parameters

- `disposition` 'inline' | 'attachment'

## Response `200`

Asset content stream (local runtime streams the bytes directly)

## Other responses

- `302` — Redirect to a signed storage URL (cloud runtime)
- `404` — Asset not found
- `500` — Internal server error

---

[API](https://skmtc.net/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/versions/9fb6092a836d/schema)
