AssetType one of the valid asset types, including 'file', 'checkpoint', 'lora', and 'textual_inversion'.
Data specific to the asset type; use the class named (asset_type)Data. Includes FileData, CheckpointData, LoraData, VAEData, and TextualInversionData.
Description of asset.
Optional filestring representing filepath, Buffer, or ArrayBuffer containing data of asset to upload.
Optional is_true if asset is public.
Alphanumeric, _, or - allowed.
Optional transfer_TransferApiType - If left undefined, the OctoAI TypeScript SDK will select the fastest method for upload based on file size.
Optional urlThe URL of the asset to upload.
Generated using TypeDoc
Request for creating an asset.
Remarks
This is used with AssetLibrary.create. The
datafield requires data from the matching asset_type. This includes FileData, CheckpointData, LoraData, VAEData, and TextualInversionData.