AI4CAP.COM

AI4CAP.COM API Documentation

Advanced API for automated CAPTCHA solving. Enterprise-grade reliability with 99.9% uptime guarantee.

Get API Key - $15 FreeView Examples

Quick Start

1. Get Your API Key

Sign up for a free account and get your API key from the dashboard. New users receive $15 in free credits.

Create Account

2. Create Task

Submit CAPTCHAs for solving using our advanced API.

POST /createTask

3. Get Results

Poll for task results and integrate solutions into your workflow.

POST /getTaskResult

API Endpoints

MethodEndpointDescriptionAuthentication
POST/createTaskCreate a new CAPTCHA solving taskclientKey in body
POST/getTaskResultGet the result of a CAPTCHA solving taskclientKey in body
POST/captcha/solveLegacy endpoint - Submit and solve CAPTCHA synchronouslyAPI Key header
GET/captcha/typesGet supported CAPTCHA types and pricingNone
GET/captcha/analyticsGet usage analyticsJWT Token

Supported Task Types

Task TypeDescription
ReCaptchaV2TaskProxylessGoogle ReCaptcha V2 without proxy
ReCaptchaV2TaskGoogle ReCaptcha V2 with proxy
ReCaptchaV2EnterpriseTaskGoogle ReCaptcha V2 Enterprise with proxy
ReCaptchaV2EnterpriseTaskProxylessGoogle ReCaptcha V2 Enterprise without proxy
ReCaptchaV3TaskProxylessGoogle ReCaptcha V3 without proxy
ReCaptchaV3TaskGoogle ReCaptcha V3 with proxy
ReCaptchaV3EnterpriseGoogle ReCaptcha V3 Enterprise
ReCaptchaV3EnterpriseTaskProxylessGoogle ReCaptcha V3 Enterprise without proxy
ReCaptchaMobileProxylessMobile ReCaptcha without proxy
ReCaptchaMobileMobile ReCaptcha with proxy

Request & Response Format

Create Task Request

{ "clientKey": "YOUR_API_KEY", "task": { "type": "ReCaptchaV2TaskProxyless", "websiteURL": "https://example.com", "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-" }, "callbackUrl": "https://your-server.com/callback" // optional }

Get Task Result Request

{ "clientKey": "YOUR_API_KEY", "taskId": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6" }

Code Examples

import requests import time import json CLIENT_KEY = "your_api_key_here" BASE_URL = "https://api.ai4cap.com" # Create a CAPTCHA solving task def create_task(website_url, website_key, task_type="ReCaptchaV2TaskProxyless"): response = requests.post( f"{BASE_URL}/createTask", headers={"Content-Type": "application/json"}, json={ "clientKey": CLIENT_KEY, "task": { "type": task_type, "websiteURL": website_url, "websiteKey": website_key } } ) result = response.json() if result["errorId"] == 0: return result["taskId"] else: raise Exception(f"Error: {result.get('errorDescription', 'Unknown error')}") # Get task result def get_task_result(task_id): while True: response = requests.post( f"{BASE_URL}/getTaskResult", headers={"Content-Type": "application/json"}, json={ "clientKey": CLIENT_KEY, "taskId": task_id } ) result = response.json() if result["errorId"] != 0: raise Exception(f"Error: {result.get('errorDescription', 'Unknown error')}") if result["status"] == "ready": return result["solution"]["gRecaptchaResponse"] elif result["status"] == "processing": time.sleep(2) # Wait before retry else: raise Exception("Unknown status") # Example usage task_id = create_task("https://example.com", "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-") solution = get_task_result(task_id) print(f"CAPTCHA solved: {solution}")

Response Examples

Create Task Response

{ "errorId": 0, "taskId": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6" }

Task Ready Response

{ "errorId": 0, "status": "ready", "solution": { "gRecaptchaResponse": "03AGdBq25SxXT-pf...", "token": "03AGdBq25SxXT-pf..." }, "cost": "0.002000", "ip": "1.2.3.4", "createTime": 1679004358, "endTime": 1679004368, "solveCount": 1 }

Task Processing Response

{ "errorId": 0, "status": "processing" }

Error Response

{ "errorId": 1, "errorCode": "ERROR_CAPTCHA_UNSOLVABLE", "errorDescription": "This type of captcha is not supported" }

Error Codes

Error CodeDescriptionSolution
ERROR_TASK_NOT_SUPPORTEDThe requested task type is not supportedCheck supported task types above
ERROR_INSUFFICIENT_BALANCEAccount balance is too lowTop up your account balance
ERROR_TASK_NOT_FOUNDTask ID not foundVerify the task ID is correct
ERROR_CAPTCHA_UNSOLVABLECAPTCHA could not be solvedTry again or check CAPTCHA parameters
ERROR_INTERNALInternal server errorTry again later or contact support

Rate Limits & Pricing

Rate Limits

  • 5 createTask requests per second
  • 10 getTaskResult requests per second
  • 1,000 requests per minute total
  • 100 concurrent tasks

Pricing

  • ReCaptcha V2: $0.01 per solve
  • ReCaptcha V3: $0.02 per solve
  • ReCaptcha Enterprise: $0.02 per solve
  • ReCaptcha Mobile: $0.016 per solve

Additional Resources

GitHub Examples

Complete working examples in multiple programming languages

View on GitHub

API Status

Real-time API status and uptime monitoring

Check Status

Support

Need help? Our team is here to assist you

Contact Support

Ready to Start Building?

Get your API key and start solving CAPTCHAs in minutes

Get Started - $15 FreeMore Examples