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
The SDK supports three account tiers with different capabilities:
| Feature | Free | Pro | Ultra |
|---|---|---|---|
| Video Modes | basic | quality, fast | quality, fast |
| Default Video Mode | fast | fast | quality |
| HD Upscaling | No | Yes | Yes |
| Max Images Per Batch | 4 | 4 | 4 |
reCAPTCHA Configuration
Both image and video generation require reCAPTCHA verification. The SDK supports multiple providers:
Regotcha (Recommended)
CapSolver (Recommended)
Custom Logger
You can provide a custom logger that implements the GLabsLogger interface:
Example with a custom logger:
Silent Mode
To disable logging:
Retry Configuration
The SDK automatically retries on network errors:
Client Properties
Access client configuration:
Static Methods
generateSessionId
Generate a unique session ID for API requests: