By default, the SDK uses https://api.browserable.ai/api/v1 as the base URL. If you need to use a different base URL (for example, in development or testing), you can specify it in the constructor:
Copy
const browserable = new Browserable({ apiKey: 'your-api-key', baseURL: 'https://custom-api.example.com/api/v1'});
You can verify that your API key is valid by using the check() method:
Copy
try { const result = await browserable.check(); if (result.success) { console.log('API key is valid!'); }} catch (error) { console.error('Failed to validate API key:', error);}