π Feature Request: Support direct video file input (Base64)
Summary
Currently, the OpenRouter SDK supports video inputs primarily through external URLs (such as YouTube links).
It would be highly beneficial to also support direct video file inputs, allowing users to pass their own videos as Base64-encoded data.
Motivation
- Many real-world use cases involve private or local video files
- Uploading videos to YouTube or public storage is not always possible or desirable
- Aligns video input handling with existing image/audio Base64 workflows
- Improves developer experience for multimodal applications
Proposed Solution
Add native support for Base64-encoded video inputs, alongside existing URL-based video inputs.
Example payload
{
type: "input_video",
videoUrl: {
data: videoBase64
}
}