v1
latestOpenAPI 3.0.22026-07-2610288167.4 KBasset
Initiate background download for large files
Initiates a background download job for large files from Huggingface or Civitai.
If the file already exists in storage, the asset record is created immediately and returned (200 OK). If the file doesn't exist, a background task is created and the task ID is returned (202 Accepted). The frontend can track progress using GET /api/tasks/{task_id}.
post/api/assets/download
Request body
Example request
{
"source_url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors",
"preview_id": "550e8400-e29b-41d4-a716-446655440000"
}Response
File already exists in storage - asset created/returned immediately