Client Configuration
Configure the GLabs client for your needs
Client Configuration
The GLabsClient is the main entry point for interacting with Google Labs APIs.
Constructor Options
Account Tiers
| Feature | Pro | Ultra |
|---|---|---|
| Default Video Mode | fast | quality |
| Video Modes | quality, fast | quality, fast |
| HD/4K Upscaling | Yes | Yes |
| Max Images Per Batch | 4 | 4 |
reCAPTCHA Configuration
All generation requests require reCAPTCHA verification. The SDK supports 7 providers with fallback chains.
Chrome (Recommended)
Real Chrome browser with persistent context — highest scores:
YesCaptcha (Recommended)
Cloud-based — no local browser needed:
Fallback Chains
Configure a fallback provider in case the primary fails:
All Providers
| Provider | Type | Note |
|---|---|---|
chrome | Browser | Real Chrome, highest scores |
yescaptcha | Cloud | Reliable, no browser needed |
playwright | Browser | Playwright-managed browser |
regotcha | Cloud | Optimized for Google Labs |
capsolver | Cloud | Proxy support |
veo3solver | Token | Pre-solved tokens via JWT |
custom | Self-hosted | Your own solver endpoint |
Token Management
With sessionToken configured, the SDK automatically:
- Refreshes bearer token 1 hour before expiry
- Retries once on 401 after refreshing
- Deduplicates concurrent refresh calls