Files
ComfyUI-Lora-Manager/examples/metadata/checkpoint-civitai.json
Will Miao 8b91920058 docs: add comprehensive metadata.json schema documentation (#856)
- Create docs/metadata-json-schema.md with complete field reference
  - All base fields for LoRA, Checkpoint, and Embedding models
  - Complete civitai object structure with Used vs Stored field classification
  - Model-level fields (allowCommercialUse, allowDerivatives, etc.)
  - Creator fields (username, image)
  - customImages structure with actual field names and types
  - Field behavior categories (Auto-Updated, Set Once, User-Editable)

- Add .specs/metadata.schema.json for programmatic validation
  - JSON Schema draft-07 format
  - oneOf schemas for each model type
  - Definitions for civitaiObject and usageTips

- Add example metadata files for each model type
  - lora-civitai.json: LoRA with full Civitai data
  - lora-custom.json: User-defined LoRA with trigger words
  - lora-no-triggerwords.json: LoRA without trigger words
  - checkpoint-civitai.json: Checkpoint from Civitai
  - embedding-custom.json: Custom embedding

Key clarifications:
  - modified: Import timestamp (Set Once, never changes after import)
  - size: File size at import time (Set Once)
  - base_model: Optional with actual values (SDXL 1.0, Flux.1 D, etc.)
  - model_type: Used in metadata.json (not sub_type which is internal)
  - allowCommercialUse: ["Image", "Video", "RentCivit", "Rent"]
  - civitai.files/images: Marked as Used by Lora Manager
  - User-editable fields clearly documented (model_name, tags, etc.)
2026-03-16 09:41:58 +08:00

42 lines
1.4 KiB
JSON

{
"file_name": "realistic_vision_v5",
"model_name": "Realistic Vision v5.0",
"file_path": "/home/user/ComfyUI/models/checkpoints/realistic_vision_v5.safetensors",
"size": 6943152000,
"modified": 1710000000.0,
"sha256": "ghi456jkl789012345678901234567890123456789012345678901234567ijkl",
"base_model": "SDXL",
"preview_url": "/home/user/ComfyUI/models/checkpoints/realistic_vision_v5.preview.png",
"preview_nsfw_level": 0,
"from_civitai": true,
"civitai": {
"id": 54321,
"modelId": 98765,
"name": "v5.0",
"description": "Realistic Vision v5.0 - photorealistic checkpoint",
"baseModel": "SDXL",
"type": "checkpoint",
"trainedWords": ["realistic photo", "photorealistic"],
"model": {
"name": "Realistic Vision",
"description": "A photorealistic checkpoint model for SDXL",
"tags": ["realistic", "photorealistic", "portrait", "landscape"]
},
"creator": {
"id": 44444,
"name": "CheckpointCreator"
}
},
"tags": ["realistic", "photorealistic", "portrait", "landscape"],
"modelDescription": "Photorealistic checkpoint model optimized for portraits and landscapes. Works best with positive prompts.",
"civitai_deleted": false,
"favorite": true,
"exclude": false,
"db_checked": true,
"skip_metadata_refresh": false,
"metadata_source": "civitai_api",
"last_checked_at": 1710100000.0,
"hash_status": "completed",
"sub_type": "checkpoint"
}