curl --request GET \
--url https://cloud.comfy.org/api/assets \
--header 'X-API-Key: <api-key>'{
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"size": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"asset_hash": "<string>",
"mime_type": "<string>",
"tags": [
"<string>"
],
"user_metadata": {},
"preview_url": "<string>",
"preview_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_access_time": "2023-11-07T05:31:56Z",
"is_immutable": true
}
],
"total": 123,
"has_more": true
}Retrieves a paginated list of assets belonging to the authenticated user. Supports filtering by tags, name, metadata, and sorting options.
curl --request GET \
--url https://cloud.comfy.org/api/assets \
--header 'X-API-Key: <api-key>'{
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"size": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"asset_hash": "<string>",
"mime_type": "<string>",
"tags": [
"<string>"
],
"user_metadata": {},
"preview_url": "<string>",
"preview_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_access_time": "2023-11-07T05:31:56Z",
"is_immutable": true
}
],
"total": 123,
"has_more": true
}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.
Filter assets that have ALL of these tags
Exclude assets that have ANY of these tags
Filter assets where name contains this substring (case-insensitive)
JSON object for filtering by metadata fields
Maximum number of assets to return (1-500)
1 <= x <= 500Number of assets to skip for pagination
x >= 0Field to sort by
name, created_at, updated_at, size, last_access_time Sort order
asc, desc Whether to include public/shared assets in results