Video input is currently supported on
gemma-4-31B-it. This model does not support audio input.Videos must meet the following requirements:
- Maximum duration: 60 seconds
- Frame rate: 2 fps
- Maximum file size: 100 MB
- Duration metadata: The video file must have readable duration metadata
Make a query with a video
The video request follows the multimodal input format. Pass the video as a base64-encoded string or a URL using thevideo_url content type.
1
Step 1
Make a new Python file and copy the code below.
2
Step 2
Use your SambaNova API key and base URL from the API keys and URLs page to replace
"your-sambanova-api-key" and "your-sambanova-base-url".3
Step 3
Replace
"sample.mp4" with the path to your video file.4
Step 4
Update the prompt text in the
content array to match your use case.5
Step 5
Run the Python file to receive the text output.
Payload format
Thevideo_url content block accepts either a base64-encoded video or a URL:

