Get a signed URL to upload a file directly to storage, bypassing the server. This is the recommended upload method for large files.
Flow:
x-goog-resumable: start to get a session URIAllowed types: audio/mpeg, audio/wav, image/jpeg, image/png, image/webp, video/mp4. Max size: 64 MB. Upload URL expires in 15 minutes.
Personal Access Token or OAuth2 JWT. Create a PAT at app.layer.ai → Settings → Personal Access Tokens.
Successful Response
Unique identifier for the file. Use as input to generation endpoints after upload completes.
Signed upload URL. POST to this URL to initiate a resumable upload, then PUT file chunks to the session URI returned in the Location header. Expires in 15 minutes.
MIME type to use when uploading.