v6

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-0952943.0 KB
assets

Create Asset

Create an asset on the asset library.

post/v1/assets

Request body

asset_type'file' | 'checkpoint' | 'lora' | 'textual_inversion' | 'vae' | 'latent' required

Asset type. It is used to distinguish between different supported assets.

descriptionstring nullable required

Asset description. It is used to provide more information.

hf_repostring nullable

HuggingFace repository.

hf_token_secretstring nullable

OctoAI secret name for HuggingFace token.

is_publicboolean

True if asset is public.

namestring required

Asset name. A unique name for the asset.

skip_validationboolean

Skip asset validation.

transfer_api_type'presigned-url' | 'sts' | 'gcp-oauth' | 'any'

Asset transfer API types.

urlstring uri nullable

Upload the contents of the url as the asset.

Response

Successful Response

tokenstring

Unused. Present for compatibility purposes.