Upload a reference file
Authorizations
Your team API key (starts with al_live_).
Headers
Stripe-style idempotency key (1-256 chars). Same key + same purpose + metadata returns the cached response with Aurous-Idempotent-Replayed: true. Same key against a different route (e.g. previously used on /v1/images) returns 409 invalid_request / idempotency_key_in_use. Replay window is 24 hours. Absent header is treated as non-idempotent (each call processes anew).
Optional API version pin (YYYY-MM-DD). Defaults to your team's pinned version, or the system default 2026-07-16 for unauthenticated requests.
^\d{4}-\d{2}-\d{2}$"2026-07-16"
Body
The file bytes. Image purposes: PNG / JPEG / WebP, max 10MB, max 4096px. reference_video: MP4 / MOV, max 50MB, 2–15 s. reference_audio: WAV / MP3, max 15MB, 2–15 s.
How the file will be used downstream. Must match the uploaded bytes (a WAV under reference_video is rejected).
reference, first_frame, last_frame, reference_video, reference_audio JSON-encoded metadata object. Optional.
Response
File stored
Opaque file ID.
"file_01HXMQ7Z3K8Y2NABCDEFGHJKMN"
Object discriminator.
"file"
How the file is used downstream. Image purposes: reference, first_frame, last_frame. Media purposes (PR-4): reference_video / reference_audio for the /v1/videos BYO reference fields.
reference, first_frame, last_frame, reference_video, reference_audio "reference"
image/png, image/jpeg, image/webp, video/mp4, video/quicktime, audio/mpeg, audio/wav "image/jpeg"
File size in bytes.
1247892
Decoded image width in pixels (max 4096).
1024
Decoded image height in pixels (max 4096).
768
Time-limited signed URL valid for ~1h. Re-mint a fresh URL by re-fetching GET /v1/files/:id. Do NOT cache long-term — the underlying bucket is private.
"https://...?token=..."
Hard 24h TTL — the file is automatically purged at this timestamp.
"2026-05-04T14:00:00Z"
Creation timestamp.
"2026-05-03T14:00:00Z"
Clip duration in seconds — populated for media uploads (reference_video / reference_audio, parsed at upload time), null for images.
7.4
Echoed metadata.

