Asset Library API
Create Asset
POST
/
v1
/
assets
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
asset_type
enum<string>
requiredAsset type.
Available options:
file
, checkpoint
, lora
, textual_inversion
, vae
, volume
data
object
requiredData specific to the asset type; use the class named ${asset_type}Data
description
string
requiredAsset descriptions.
is_public
boolean
default: falseTrue if asset is public.
name
string
requiredAsset name.
transfer_api_type
enum<string>
Transfer API type.
Available options:
presigned-url
, sts
url
string
Upload the contents of the url as the asset.
Response
200 - application/json
asset
object
requiredAsset.
token
string
default: deprecatedUnused. Present for compatibility purposes.
transfer_api
object
requiredAsset transfer API.
Was this page helpful?