v36
latestOpenAPI 3.0.3GNU General Public License v3.0raw.githubusercontent.com2026-08-017758212.6 KBfile
Get asset 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.
get/api/assets/{id}/content
Path parameters
idstring required
Asset ID
Query parameters
disposition'inline' | 'attachment'
Content-Disposition for the response: attachment (download) or inline (render in browser). Defaults to attachment.
Response
Asset content stream (local runtime streams the bytes directly)