Files
Upload a file
Changed onUpload a file to your namespace, then reference it from a generation via ImageRef.file_id (as source, image_ref[], video.start_frame, keyframes, and so on). Two upload modes share this endpoint, selected by Content-Type:
-
multipart/form-data — send the bytes inline in the file part. Best for small files (subject to an inline size cap; larger files must use the presigned flow). The returned file is already pending ingest.
-
application/json — request a presigned upload. The response upload envelope tells you where to PUT the bytes; afterward call POST /files/{file_id}/complete to start ingest. Use this for larger files.
post/files
Request
- Base URL: https://agents.lumalabs.ai/v1
- URL: https://agents.lumalabs.ai/v1/files
- Auth: HTTP bearer
Request body
Response
File created
Changes
- info
endpoint added
- info