Skip to content

Support direct video file input (Base64) in OpenRouter SDK alongside YouTube URLsΒ #126

@armamini

Description

@armamini

πŸš€ 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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions