跳转到主要内容
GET
/
api
/
assets
/
tags
/
refine
Get tag histogram for filtered assets
curl --request GET \
  --url https://cloud.comfy.org/api/assets/tags/refine \
  --header 'X-API-Key: <api-key>'
{
  "tag_counts": {
    "checkpoint": 32,
    "lora": 193,
    "vae": 6
  }
}

授权

X-API-Key
string
header
必填

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.

查询参数

include_tags
string[]

Filter assets that have ALL of these tags

exclude_tags
string[]

Exclude assets that have ANY of these tags

name_contains
string

Filter assets where name contains this substring (case-insensitive)

metadata_filter
string

JSON object for filtering by metadata fields

limit
integer
默认值:100

Maximum number of tags to return (1-1000, default 100)

必填范围: 1 <= x <= 1000
include_public
boolean
默认值:true

Whether to include public/shared assets in results

响应

Success - Tag histogram returned

tag_counts
object
必填

Map of tag names to their occurrence counts on matching assets

示例:
{ "checkpoint": 32, "lora": 193, "vae": 6 }