asset
Get asset metadata from remote URL
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.
get/api/assets/remote-metadata
Request
- Base URLhttps://api.comfy.org
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
urlstring uri required
Example:https://civitai.com/api/download/models/123456
Download URL to retrieve metadata from
Response
Metadata retrieved successfully
Example response
{
"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"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.