Skip to main content
POST
Upload an asset for later generation requests

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
asset_type
enum<string>
required
Available options:
image,
audio,
video
file
file
required

Response

Uploaded asset.

id
string
required
object
string
required
Allowed value: "asset"
type
enum<string>
required
Available options:
image,
audio,
video
url
string<uri>
required
mime_type
string
required
size_bytes
integer
duration_seconds
number | null
width
integer | null
height
integer | null
expires_at
string<date-time> | null