curl --request GET \
--url https://cloud.comfy.org/api/assets/remote-metadata \
--header 'X-API-Key: <api-key>'{
"content_length": 4294967296,
"content_type": "application/octet-stream",
"filename": "realistic-vision-v5.safetensors",
"name": "Realistic Vision v5.0",
"tags": [
"models",
"checkpoint"
],
"preview_image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"validation": {
"is_valid": true,
"errors": [
{
"code": "FORMAT_NOT_ALLOWED",
"message": "File format \"PickleTensor\" is not allowed. Allowed formats: [SafeTensor]",
"field": "format"
}
],
"warnings": [
{
"code": "FORMAT_NOT_ALLOWED",
"message": "File format \"PickleTensor\" is not allowed. Allowed formats: [SafeTensor]",
"field": "format"
}
]
}
}Retrieves metadata for an asset from a remote download URL without downloading the entire file. Supports various sources including CivitAI and other model repositories. Uses HEAD requests or API calls to fetch metadata efficiently. This endpoint is for previewing metadata before downloading, not for getting metadata of existing assets.
curl --request GET \
--url https://cloud.comfy.org/api/assets/remote-metadata \
--header 'X-API-Key: <api-key>'{
"content_length": 4294967296,
"content_type": "application/octet-stream",
"filename": "realistic-vision-v5.safetensors",
"name": "Realistic Vision v5.0",
"tags": [
"models",
"checkpoint"
],
"preview_image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"validation": {
"is_valid": true,
"errors": [
{
"code": "FORMAT_NOT_ALLOWED",
"message": "File format \"PickleTensor\" is not allowed. Allowed formats: [SafeTensor]",
"field": "format"
}
],
"warnings": [
{
"code": "FORMAT_NOT_ALLOWED",
"message": "File format \"PickleTensor\" is not allowed. Allowed formats: [SafeTensor]",
"field": "format"
}
]
}
}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.
Download URL to retrieve metadata from
"https://civitai.com/api/download/models/123456"
Metadata retrieved successfully
Size of the asset in bytes (-1 if unknown)
4294967296
MIME type of the asset
"application/octet-stream"
Suggested filename for the asset from source
"realistic-vision-v5.safetensors"
Display name or title for the asset from source
"Realistic Vision v5.0"
Tags for categorization from source
["models", "checkpoint"]Preview image as base64-encoded data URL
"data:image/jpeg;base64,/9j/4AAQSkZJRg..."
Validation results for the file
显示 子属性