reCAPTCHA Configuration
Configure reCAPTCHA providers for image and video generation
reCAPTCHA Configuration
Both image and video generation require reCAPTCHA verification. The SDK supports five providers.
Recommended Providers
- Regotcha - Best success rate for Google Labs, affordable pricing
- CapSolver - High reliability with proxy support and browser fingerprinting
Other providers: YesCaptcha, Veo3Solver, Custom (self-hosted)
Why reCAPTCHA?
Google Labs uses reCAPTCHA v3 Enterprise to protect against abuse. The SDK handles this transparently:
- All generation requests require a reCAPTCHA token
- SDK automatically fetches a token before each request
- If token evaluation fails, SDK retries with a new token (up to 3 attempts)
Supported Providers
Regotcha (Recommended)
Regotcha offers the best success rate for Google Labs reCAPTCHA v3 Enterprise at competitive pricing.
Why Regotcha?
- Optimized for Google Labs reCAPTCHA v3 Enterprise
- Fast token generation (typically 5-15s)
- Affordable pricing
- Simple API with high reliability
CapSolver (Recommended)
CapSolver provides high reliability with advanced features like proxy support and browser fingerprinting.
Why CapSolver?
- Supports residential proxy for improved success rates
- Provides browser fingerprint data (userAgent, secChUa)
- Established service with good documentation
- Suitable for high-volume usage
YesCaptcha
YesCaptcha is a captcha solving service.
Veo3Solver
Veo3Solver is a token service that provides pre-solved reCAPTCHA tokens via JWT authentication.
No polling required - tokens are returned immediately via a simple GET request.
Static Token (Testing)
For testing captcha services or debugging, you can pass a token directly without using any provider.
This bypasses all provider logic and uses the provided token directly. Useful for:
- Testing captcha provider tokens manually
- Debugging API responses without waiting for token generation
- Integration testing with known-good tokens
Custom Solver
Use your own self-hosted reCAPTCHA solver service.
Custom Solver API Specification:
Your custom solver endpoint must implement a POST endpoint that accepts:
And returns:
On error:
Configuration Options
| Option | Type | Required | Description |
|---|---|---|---|
provider | 'yescaptcha' | 'capsolver' | 'regotcha' | 'veo3solver' | 'custom' | Yes | The captcha solving service to use |
apiKey | string | Yes* | API key for the provider (*not required for custom/veo3solver) |
jwtToken | string | No** | JWT token for authentication (**required for veo3solver) |
customEndpoint | string | No*** | Custom solver endpoint URL (***required for custom provider) |
staticToken | string | No | Static token to use directly (bypasses provider, useful for testing) |
proxy | string | No | Proxy URL (CapSolver and Custom only) |
anchor | string | No | Anchor parameter (Custom only) |
reload | string | No | Reload parameter (Custom only) |
maxRetries | number | No | Maximum polling attempts |
How It Works
Token Request Flow
- SDK creates a task with the provider
- Provider solves the reCAPTCHA challenge
- SDK polls for the result
- Token is included in API requests
Regotcha Flow
CapSolver Flow
Browser Fingerprint
CapSolver provides additional browser fingerprint data:
userAgent: Browser user agent stringsecChUa: Sec-CH-UA header value
The SDK automatically includes these headers in requests when available, improving success rates.
Using Proxies (CapSolver)
For better success rates, CapSolver supports residential proxies:
Proxy formats:
- HTTP:
http://user:pass@ip:port - SOCKS5:
socks5://user:pass@ip:port
Automatic Retry on Evaluation Failure
Sometimes reCAPTCHA tokens are rejected by Google with "reCAPTCHA evaluation failed". The SDK automatically handles this by:
- Detecting the evaluation failure response
- Requesting a new token from your provider
- Retrying the request (up to 3 attempts by default)
Without reCAPTCHA
Both image and video generation require reCAPTCHA configuration. Without it, requests will fail immediately:
Error Handling
Cost Considerations
All providers charge per solved captcha:
- Regotcha (Recommended): Check current pricing at regotcha.com
- CapSolver (Recommended): Check current pricing at capsolver.com
- YesCaptcha: Check current pricing at yescaptcha.com
Each generation request requires a new token. If evaluation fails, the SDK will request additional tokens (up to 3 per request). Plan your budget accordingly.