You can use the VLM Run Python SDK to interact with the VLM Run API.

Installation

You can install the Python SDK directly using pip:

pip install --upgrade 'vlmrun[all]'

Authentication

By default, the SDK will use the VLMRUN_API_KEY environment variable to authenticate. You can get your API key from the VLM Run dashboard.

from vlmrun.client import VLMRun

client = VLMRun()

You can also pass the API key directly to the client:

from vlmrun.client import VLMRun

client = VLMRun(api_key="your-api-key")