Перейти к основному содержанию
GET
Get asset metadata from remote URL

Авторизации

X-API-Key
string
header
обязательно

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

Параметры запроса

url
string<uri>
обязательно

Download URL to retrieve metadata from

Пример:

"https://civitai.com/api/download/models/123456"

Ответ

Metadata retrieved successfully

content_length
integer<int64>
обязательно

Size of the asset in bytes (-1 if unknown)

Пример:

4294967296

content_type
string

MIME type of the asset

Пример:

"application/octet-stream"

filename
string

Suggested filename for the asset from source

Пример:

"realistic-vision-v5.safetensors"

name
string

Display name or title for the asset from source

Пример:

"Realistic Vision v5.0"

tags
string[]

Tags for categorization from source

Пример:
preview_image
string

Preview image as base64-encoded data URL

Пример:

"data:image/jpeg;base64,/9j/4AAQSkZJRg..."

validation
object

Validation results for the file