input_file content type — the same format used for PDF support.
Browse supported models in the Requesty Console. Look for models with
input_video pricing — currently this is primarily Gemini models (google/... and vertex/google/...).How It Works
Video is sent as part of the message content, either as a public URL or as base64-encoded data. Requesty translates the request into the provider’s native format — for Gemini, a video URL becomes afileData part and base64 data becomes an inlineData part.
Using a Video URL
Provide a publichttp/https URL via file_url. For Gemini models, YouTube URLs are also supported.
mime_type is required when the URL has no recognizable file extension (for example, a YouTube URL or a signed URL without .mp4).Using Base64-Encoded Video
For smaller videos, embed the content directly as a data URL infile_data:
Analyzing a Segment
Usestart_offset and end_offset to analyze only part of a video. Values are durations like "0s", "15s", or "1m30s".
Parameters
type: Must be"input_file"filename: The name of the video file (e.g.,"video.mp4")mime_type: The MIME type of the video (e.g.,"video/mp4"). Required when the URL has no recognizable file extensionfile_url: Public URL of the video (http/httpsonly)file_data: Base64-encoded video content as a data URL (e.g.,data:video/mp4;base64,...)start_offset: Optional start of the segment to analyze (e.g.,"10s")end_offset: Optional end of the segment to analyze (e.g.,"25s")
file_url or file_data, not both.
Python Example
JavaScript/TypeScript Example
Pricing
Video input is billed per token according to the model’sinput_video price, shown in the Model Library and returned by the /v1/models endpoint.
Limitations
- Video input is only supported by models with video capability (primarily Gemini). Sending video to other models will result in an error.
file_urlmust be a publichttporhttpsURL — the provider fetches it directly.- Base64 video counts toward the request size limit, so prefer
file_urlfor larger files.