Client Setup
Install and configure the Visgate SDK for Python or JavaScript.
The Visgate SDK is available for Python and JavaScript/TypeScript. Both clients expose the same core API surface: generate, images, videos, models, usage, and providers.
JavaScript / TypeScript
Node.js 18+, browsers, React, Vite, and Next.js.
Python
Python 3.9+, sync and async clients.
Server Proxy
Keep your API key on the server for browser apps.
Configuration Options
| Option | Python | JavaScript | Default |
|---|---|---|---|
| API Key | api_key | apiKey | $VISGATE_API_KEY |
| Base URL | base_url | baseUrl | https://visgateai.com/api/v1 |
| Timeout | timeout (seconds) | timeout (ms) | 120s / 120000ms |
| Max Retries | max_retries | maxRetries | 2 |
| Proxy URL | — | proxyUrl | — |
| Fal BYOK Key | fal_key | falKey | — |
| Replicate BYOK Key | replicate_key | replicateKey | — |
| Runway BYOK Key | runway_key | runwayKey | — |
| RunPod BYOK Key | — | runpodKey | — |