Complete a presigned upload
Changed onFinalize a presigned upload after you have PUT the bytes to the upload URL. Kicks off ingest/moderation and returns the file, which transitions to ready (or failed) asynchronously — poll GET /files/{file_id} to observe the terminal state.
Request
- Base URLhttps://agents.lumalabs.ai/v1
- AuthHTTP bearer
Path parameters
File UUID returned by POST /files.
Response
Upload finalized; ingest started
A file in the caller's namespace.
File identifier, referenced as ImageRef.file_id.
Original filename supplied at upload, if any.
MIME type of the stored bytes (for example, image/jpeg).
Size of the stored object in bytes.
How the file is intended to be used in a generation. input is the primary subject (e.g. the source image for an edit); reference is style/content guidance.
Lifecycle state of an uploaded file. pending until bytes are received and the ingest pipeline runs; ready once it can be referenced from a generation; failed if ingest/moderation rejected it; deleted after a soft-delete.
Human-readable reason when state is failed.
TTL set at upload, if any. After this time Luma may automatically delete the file and reclaim its bytes — you don't need to call DELETE yourself.
Creation timestamp.
Soft-delete timestamp, if the file was deleted.
The opaque end-user tag supplied at upload, echoed back unchanged. Abuse-attribution only; not an access-control primitive.
Changes
- info
endpoint added
- info