Assets

Upload an asset

Changed on

Upload 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 URL
    https://api.krea.ai
  • Auth
    HTTP 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 height became nullable for the status

    • breaking

      the response property mime_type became nullable for the status

    • breaking

      the response property size_bytes became nullable for the status

    6 more changes in this revision