API Reference
Upload asset
Upload an image, document or audio file for use in a multimodal context. The request body is the raw file (not JSON or multipart), and Content-Type is its MIME type, checked against the content. Assets are project-scoped and expire 24 hours after upload.
POST
Upload asset
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The body is of type file.
Response
Asset created.
An uploaded media file, usable only by the project that uploaded it.
Id of an asset uploaded with POST /v1/assets by the same project.
Pattern:
^asset_[A-Za-z0-9_-]{8,64}$Available options:
asset After this time the asset can no longer be referenced (default 24 h after upload).