asset
Upload a new asset
Uploads a new asset to the system with associated metadata. Supports two upload methods:
- Direct file upload (multipart/form-data)
- URL-based upload (application/json with source: "url")
If an asset with the same hash already exists, returns the existing asset.
post/api/assets
Request
- Base URLhttps://api.comfy.org
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Asset already exists (returned existing asset)
Changes
No recorded changes to this operation across all 1 revision of this API.