Coming Soon
Python SDK
Solve CAPTCHAs in your AI agents with one line of code. No API keys, no accounts — just install and go.
Installation
pip install gatesolveQuickstart
from gatesolve import GateSolve
# No API keys needed — payment happens via x402
gs = GateSolve()
# Solve a Cloudflare Turnstile CAPTCHA
solution = gs.solve(
captcha_type="turnstile",
sitekey="0x4AAAAAAAB...",
pageurl="https://example.com"
)
print(solution.token) # Use this token to bypass the CAPTCHAWith Playwright (Agent Example)
Real-world example: an AI agent browsing a protected site, detecting a CAPTCHA, solving it via GateSolve, and continuing.
from gatesolve import GateSolve
from playwright.sync_api import sync_playwright
gs = GateSolve()
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://protected-site.com")
# Detect and solve CAPTCHA automatically
sitekey = page.locator("[data-sitekey]").get_attribute("data-sitekey")
solution = gs.solve(
captcha_type="turnstile",
sitekey=sitekey,
pageurl=page.url
)
# Inject the solution
page.evaluate(f"""
document.querySelector('[name="cf-turnstile-response"]')
.value = '{solution.token}';
""")
page.click("button[type=submit]")Configuration
from gatesolve import GateSolve
gs = GateSolve(
# Optional: set your USDC wallet for payments
wallet_address="0x...",
# Optional: configure network (default: Base L2)
network="base",
# Optional: set max price per solve (in USDC)
max_price=0.05,
# Optional: timeout in seconds
timeout=10,
)Supported CAPTCHA Types
Cloudflare Turnstile
turnstile · $0.02/solvereCAPTCHA v2
recaptcha_v2 · $0.03/solvereCAPTCHA v3
recaptcha_v3 · $0.02/solvehCaptcha
hcaptcha · $0.03/solveSDK launching with early access
Join the waitlist to get the SDK + 1,000 free solves on launch day.
Join the Waitlist →