Assets
Upload an asset
Changed onUpload a new asset (image, video, audio, or 3D model). Accepts multipart/form-data with a file and optional description. Maximum file size: 75MB.
post/assets
Request
- Base URLhttps://api.krea.ai
- AuthHTTP bearer
Request body multipart/form-data
object required
file, string binary required
The file to upload (JPEG, PNG, WebP, HEIC, MP4, MOV, WebM, GLB, WAV, MP3). Maximum size: 75MB.
description, string
Optional description for the asset
Response
Asset uploaded successfully
object required
id, string uuid required
image_url, string uri required
uploaded_at, string date-time required
width, number nullable required
height, number nullable required
size_bytes, number nullable required
mime_type, string nullable required
description, string
Changes
- breaking
the response property
heightbecame nullable for the status - breaking
the response property
mime_typebecame nullable for the status - breaking
the response property
size_bytesbecame nullable for the status
6 more changes in this revision
- breaking