Skip to main content
Requesty supports sending video to AI models that accept video input, such as Google Gemini models. Videos are sent through the standard Chat Completions API using the 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 a fileData part and base64 data becomes an inlineData part.

Using a Video URL

Provide a public http/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 in file_data:

Analyzing a Segment

Use start_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 extension
  • file_url: Public URL of the video (http/https only)
  • 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")
Provide either file_url or file_data, not both.

Python Example

JavaScript/TypeScript Example

Pricing

Video input is billed per token according to the model’s input_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_url must be a public http or https URL — the provider fetches it directly.
  • Base64 video counts toward the request size limit, so prefer file_url for larger files.
Last modified on August 18, 2026