Search...
/
Login
Documentation
API Reference
Integrations
Release Notes
Status
Documentation
API Reference
Integrations
Release Notes
Status
OctoAI API
Authentication
Inference
Account
Endpoint
Telemetry
Secret
Registry Credential
Public Endpoint
Instance Types
Text Generation API
STREAM
Create Chat Completion
STREAM
Create Completion
Media Generation API
POST
Generate SDXL
POST
Generate SD3
POST
Generate ControlNet SDXL
POST
Generate SVD
POST
Generate FLUX.1 [dev]
POST
Generate FLUX.1 [schnell]
Fine Tuning API
POST
Create Tune
GET
Get Tune
DEL
Delete Tune
POST
Cancel Tune
GET
List Tunes
Asset Library API
GET
List Assets
POST
Create Asset
DEL
Delete Asset
POST
Complete Asset Upload
GET
Retrieve Asset
Media Utilities API
POST
Adetailer
POST
Upscaling
POST
Remove Background
Login
Asset Library API
Create Asset
POST
https://api.octoai.cloud
/
v1
/
assets
Create an asset on the asset library.
Request
This endpoint expects an object.
asset_type
enum
Required
Asset type. It is used to distinguish between different supported assets.
Show 6 enum values
data
object
Required
Asset data. It shows the type of data for an asset.
Show 6 variants
name
string
Required
Asset name. A unique name for the asset.
description
string
Optional
Asset description. It is used to provide more information.
hf_repo
string
Optional
HuggingFace repository.
hf_token_secret
string
Optional
OctoAI secret name for HuggingFace token.
is_public
boolean
Optional
True if asset is public.
skip_validation
boolean
Optional
Skip asset validation.
transfer_api_type
enum
Optional
Allowed values:
presigned-url
sts
gcp-oauth
any
Transfer API type.
url
string
Optional
Upload the contents of the url as the asset.
Response
This endpoint returns an object.
asset
object
Asset.
Show 15 properties
transfer_api
object
Asset transfer API type.
Show 4 variants
token
string
Optional
Defaults to
Deprecated
Unused. Present for compatibility purposes.