Import Asset
import_assetLink Hugging Face repos, CivitAI model URLs, or direct file URLs as Asset Hub assets so pods and tasks can use them as input_assets without copying files.
Instructions
Link a Hugging Face repo ("owner/name" or its URL), a CivitAI model URL or a direct file URL as an Asset Hub asset, so pods and tasks can use it as input_assets.
Nothing is copied: the asset is ready at once and has no storage charge; pods and tasks download it from the source when they start. paths globs link only some files, revision pins a Hugging Face branch/tag/commit.
A private or gated source needs a token or key saved in the console — pass its id from source_credentials; if the import fails, tell the user the error message as it is.
Every write requires operation_id. Reuse the ID returned by the preview, or generate a UUID before the first call. Keep it for confirmation and all retries; a new ID means a new operation. After a timeout, check operation_status and resource state before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| paths | No | ||
| source | Yes | ||
| revision | No | ||
| workspace | No | ||
| asset_type | No | ||
| hf_token_id | No | ||
| operation_id | No | ||
| civitai_key_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||