Python SDK
Getting Started
Getting Started with the VLM Run Python SDK
You can use the VLM Run Python SDK to interact with the VLM Run API.
Installation
Basic Installation
You can install the basic Python SDK using pip:
Installation with Optional Features
The package provides optional features that can be installed based on your needs:
- Video processing features (numpy, opencv-python):
- Document processing features (pypdfium2):
- All optional features:
Authentication
There are two ways to authenticate with the VLM Run API:
Using Environment Variable
The SDK will automatically use the VLMRUN_API_KEY
environment variable to authenticate. You can get your API key from the VLM Run dashboard.
Direct API Key
You can also pass the API key directly to the client:
Basic Usage
Here’s a simple example of how to use the SDK:
Resources
- View the SDK source code on GitHub
- Browse our Cookbook for examples and guides