assets

Create an asset on the asset library.

post/v1/assets

Request

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.

Changes

    • breaking

      added to the response property oneOf list for the response status

    • warning

      added the new image/flux-dev enum value to the ///// response property for the response status

    • warning

      added the new image/flux-dev enum value to the ///// response property for the response status

    • warning

      added the new image/flux-dev enum value to the ///// response property for the response status

    • warning

      added the new image/flux-dev enum value to the ///// response property for the response status

    • warning

      added the new image/flux-dev enum value to the ///// response property for the response status

    • warning

      added the new image/flux-schnell enum value to the ///// response property for the response status

    • warning

      added the new image/flux-schnell enum value to the ///// response property for the response status

    • warning

      added the new image/flux-schnell enum value to the ///// response property for the response status

    • warning

      added the new image/flux-schnell enum value to the ///// response property for the response status

    • warning

      added the new image/flux-schnell enum value to the ///// response property for the response status

    • warning

      added the new image/stable-diffusion-v3-medium enum value to the ///// response property for the response status

    • warning

      added the new image/stable-diffusion-v3-medium enum value to the ///// response property for the response status

    • warning

      added the new image/stable-diffusion-v3-medium enum value to the ///// response property for the response status

    • warning

      added the new image/stable-diffusion-v3-medium enum value to the ///// response property for the response status

    • warning

      added the new image/stable-diffusion-v3-medium enum value to the ///// response property for the response status

    • warning

      added the new jsonl enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-405b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-405b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-405b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-405b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-405b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3.1-8b enum value to the ///// response property for the response status

    • warning

      added the new text/mistral-nemo enum value to the ///// response property for the response status

    • warning

      added the new text/mistral-nemo enum value to the ///// response property for the response status

    • warning

      added the new text/mistral-nemo enum value to the ///// response property for the response status

    • warning

      added the new text/mistral-nemo enum value to the ///// response property for the response status

    • warning

      added the new text/mistral-nemo enum value to the ///// response property for the response status

    • warning

      added the new video/svd enum value to the ///// response property for the response status

    • warning

      added the new video/svd enum value to the ///// response property for the response status

    • warning

      added the new video/svd enum value to the ///// response property for the response status

    • warning

      added the new video/svd enum value to the ///// response property for the response status

    • warning

      added the new video/svd enum value to the ///// response property for the response status

    • info

      added the new gcp-oauth enum value to the request property /

    • info

      added the new image/flux-dev enum value to the request property ///

    • info

      added the new image/flux-dev enum value to the request property ///

    • info

      added the new image/flux-dev enum value to the request property ///

    • info

      added the new image/flux-dev enum value to the request property ///

    • info

      added the new image/flux-dev enum value to the request property ///

    • info

      added the new image/flux-schnell enum value to the request property ///

    • info

      added the new image/flux-schnell enum value to the request property ///

    • info

      added the new image/flux-schnell enum value to the request property ///

    • info

      added the new image/flux-schnell enum value to the request property ///

    • info

      added the new image/flux-schnell enum value to the request property ///

    • info

      added the new image/stable-diffusion-v3-medium enum value to the request property ///

    • info

      added the new image/stable-diffusion-v3-medium enum value to the request property ///

    • info

      added the new image/stable-diffusion-v3-medium enum value to the request property ///

    • info

      added the new image/stable-diffusion-v3-medium enum value to the request property ///

    • info

      added the new image/stable-diffusion-v3-medium enum value to the request property ///

    • info

      added the new jsonl enum value to the request property ///

    • info

      added the new text/llama-3.1-405b enum value to the request property ///

    • info

      added the new text/llama-3.1-405b enum value to the request property ///

    • info

      added the new text/llama-3.1-405b enum value to the request property ///

    • info

      added the new text/llama-3.1-405b enum value to the request property ///

    • info

      added the new text/llama-3.1-405b enum value to the request property ///

    • info

      added the new text/llama-3.1-70b enum value to the request property ///

    • info

      added the new text/llama-3.1-70b enum value to the request property ///

    • info

      added the new text/llama-3.1-70b enum value to the request property ///

    • info

      added the new text/llama-3.1-70b enum value to the request property ///

    • info

      added the new text/llama-3.1-70b enum value to the request property ///

    • info

      added the new text/llama-3.1-8b enum value to the request property ///

    • info

      added the new text/llama-3.1-8b enum value to the request property ///

    • info

      added the new text/llama-3.1-8b enum value to the request property ///

    • info

      added the new text/llama-3.1-8b enum value to the request property ///

    • info

      added the new text/llama-3.1-8b enum value to the request property ///

    • info

      added the new text/mistral-nemo enum value to the request property ///

    • info

      added the new text/mistral-nemo enum value to the request property ///

    • info

      added the new text/mistral-nemo enum value to the request property ///

    • info

      added the new text/mistral-nemo enum value to the request property ///

    • info

      added the new text/mistral-nemo enum value to the request property ///

    • info

      added the new video/svd enum value to the request property ///

    • info

      added the new video/svd enum value to the request property ///

    • info

      added the new video/svd enum value to the request property ///

    • info

      added the new video/svd enum value to the request property ///

    • info

      added the new video/svd enum value to the request property ///

    • info

      added gcp-oauth discriminator mapping keys to the response property for the response status

    • info

      added the required property // to the response with the status

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property type changed from no type to string

    • breaking

      the // response's property type changed from no type to string for status

    • warning

      removed from the request property allOf list

    • warning

      added the new checkpoint enum value to the // response property for the response status

    • warning

      added the new file enum value to the // response property for the response status

    • warning

      added the new latent enum value to the // response property for the response status

    • warning

      added the new lora enum value to the // response property for the response status

    • warning

      added the new text/llama-3-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-70b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-8b enum value to the ///// response property for the response status

    • warning

      added the new text/llama-3-8b enum value to the ///// response property for the response status

    • warning

      added the new textual_inversion enum value to the // response property for the response status

    • warning

      added the new vae enum value to the // response property for the response status

    • info

      added the new any enum value to the request property /

    • info

      added the new checkpoint enum value to the request property

    • info

      added the new file enum value to the request property

    • info

      added the new latent enum value to the request property

    • info

      added the new lora enum value to the request property

    • info

      added the new text/llama-3-70b enum value to the request property ///

    • info

      added the new text/llama-3-70b enum value to the request property ///

    • info

      added the new text/llama-3-70b enum value to the request property ///

    • info

      added the new text/llama-3-70b enum value to the request property ///

    • info

      added the new text/llama-3-70b enum value to the request property ///

    • info

      added the new text/llama-3-8b enum value to the request property ///

    • info

      added the new text/llama-3-8b enum value to the request property ///

    • info

      added the new text/llama-3-8b enum value to the request property ///

    • info

      added the new text/llama-3-8b enum value to the request property ///

    • info

      added the new text/llama-3-8b enum value to the request property ///

    • info

      added the new textual_inversion enum value to the request property

    • info

      added the new vae enum value to the request property

    • info

      removed from the // response property allOf list for the response status