input.video:
Local paths are relative to your process’s working directory. Both
create() and
submit() upload and validate a local file automatically.
Video URLs
We only accept public URLs that point directly to a video file. We download the file from that address, so:- Use a direct file link. Opening it must download the video file itself, such as a presigned link to an S3, GCS, or R2 object, or the output URL your video generation provider returns.
- Don’t use web pages. A link to a page that plays a video is refused when you
submit it, with
400 invalid_videoand nothing charged. This covers YouTube, TikTok, Vimeo, Bilibili, X, Instagram, Facebook, and similar sites. Any other link that returns a web page instead of a video fails too. - No login or headers. We send a plain
GETrequest with no credentials. A presigned link works because the signature is part of the URL. - Keep it valid until the evaluation finishes. If a presigned link expires first, the evaluation fails. A few hours is plenty.
- Only submit videos you have the right to use. If you are not sure, download the video yourself and upload the local file.
Requirements
- MP4, MOV, or WebM container with H.264, H.265 (HEVC), or VP9 video.
- Up to 15 seconds and 50 MiB (52,428,800 bytes).
- A prompt, up to 500 words.
galileo2-pmchecks the video against it, so it is required.
Reuse an upload
Upload once when you want to evaluate the same video with different prompts. The upload call waits for validation; reuse the ID when its status isready.
The examples below use the client from the Quickstart.
- Python
- TypeScript