Node.js SDK
client
VLM Run Node.js SDK Client Configuration and Usage
Client Configuration
The VlmRun
client is the main entry point for interacting with the VLM Run API. It provides access to all SDK functionality including file operations, model operations, and predictions.
Initialization
Configuration Options
Option | Type | Description | Default |
---|---|---|---|
apiKey | string | Your VLM Run API key | Required |
baseUrl | string | Custom API base URL | https://api.vlm.run |
Client Components
The client provides access to different components for specific operations:
Error Handling
The client throws typed errors for different scenarios: