Reference
The Solvewall API is wire-compatible with 2captcha v2. Everything below is additive: streaming, idempotency, batch submits and spend controls are new, optional, and never required.
Quickstart
Three calls: create, then read (or stream). Answers arrive in seconds.
curl -s https://api.solvewall.com/createTask -H "content-type: application/json" \
-d '{"clientKey":"swl_live_...","task":{"type":"image","body":"<base64>"}}'
# → {"errorId":0,"taskId":723456789012}
curl -s https://api.solvewall.com/getTaskResult -H "content-type: application/json" \
-d '{"clientKey":"swl_live_...","taskId":723456789012}'
# → {"errorId":0,"status":"ready","solution":{"text":"k7m2p"}}import httpx API = "https://api.solvewall.com" KEY = "swl_live_..." r = httpx.post(f"{API}/createTask", json={ "clientKey": KEY, "task": {"type": "image", "body": b64}, }).json() import time while True: s = httpx.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": r["taskId"]}).json() if s["status"] == "ready": break time.sleep(2)
Authentication
Send your key as clientKey in the JSON body, as
x-api-key: swl_live_...
or as a key query parameter on GET endpoints. Keys are per-user and rotatable. Restrict a key to CIDRs and set a hard spend ceiling from the dashboard — both are enforced server-side before a task is accepted.
All API responses are HTTP 200; check errorId.
createTask
POST /createTask
| Field | Type | Required | Notes |
|---|---|---|---|
| clientKey | string | yes | Your API key |
| task.type | string | yes | See the type table below |
| task.websiteURL | string | depends | Page where the widget lives |
| task.websiteKey | string | depends | sitekey / public key |
| callbackUrl | string | no | Signed webhook on completion |
| idempotencyKey | string | no | Replays the original taskId |
| exactMode | bool | no | Two solvers must agree |
Response
{"errorId":0,"taskId":723456789012}Type reference
| type | Params | Answer | Per 1k |
|---|---|---|---|
| recaptcha-v2 | websiteURL, websiteKey | token | $0.9 |
| recaptcha-v2-invisible | websiteURL, websiteKey | token | $0.9 |
| recaptcha-v3 | websiteURL, websiteKey, pageAction | token | $1.4 |
| recaptcha-enterprise | websiteURL, websiteKey | token | $2.6 |
| turnstile | websiteURL, websiteKey | token | $1.3 |
| hcaptcha | websiteURL, websiteKey | token | $1.1 |
| funcaptcha | websiteURL, websitePublicKey | multi | $2.4 |
| geetest-v3 | websiteURL, gt, challenge | multi | $2.6 |
| geetest-v4 | websiteURL, captchaId | multi | $2.9 |
| datadome | websiteURL, websiteKey | token | $1.3 |
| image | — | text | $0.45 |
| text | text | text | $0.42 |
| audio | — | text | $0.4 |
| grid | text | grid | $0.54 |
| click | text | coords | $0.56 |
| rotate | text | angles | $0.5 |
| bounding-box | text | boxes | $2.2 |
| draw-around | text | coords | $2.2 |
| drag-drop | websiteURL, websiteKey | coords | $1.9 |
| amazon-waf | websiteURL, websiteKey, iv, context | multi | $1.3 |
| imperva | websiteURL, websiteKey | token | $2.6 |
| akamai | websiteURL, websiteKey | token | $2.4 |
| kasada | websiteURL | token | $2.4 |
| mtcaptcha | websiteURL, websiteKey | token | $1.3 |
| lemin | websiteURL, captchaId | multi | $1.3 |
| capy | websiteURL, websiteKey | multi | $1.3 |
| altcha | websiteURL | text | $1.3 |
| friendly | websiteURL, websiteKey | text | $1.3 |
| cutcaptcha | websiteURL, websiteKey, apikey | token | $1.3 |
| atb | websiteURL, websiteKey | token | $1.3 |
| tencent | websiteURL, websiteKey | multi | $2.6 |
| binance | websiteURL, websiteKey | multi | $2.6 |
| vk | websiteURL, websiteKey | token | $1.3 |
| prosopo | websiteURL, websiteKey | multi | $1.3 |
| captchafox | websiteURL, websiteKey | token | $1.3 |
| yidun | websiteURL, websiteKey | multi | $2.6 |
| temu | websiteURL | token | $0.9 |
| tiktok | websiteURL, websiteKey | multi | $2.6 |
getTaskResult
POST /getTaskResult · body {"clientKey","taskId"}
{"errorId":0,"status":"ready","solution":{"token":"0.abc..."},"cost":"0.000900"}While in flight you get {"errorId":0,"status":"processing"}. Thesolution object is shaped by the type: token for widget types,text for recognition, coordinates / click for spatial types.
Realtime (SSE)
GET /stream/:taskId
Returns text/event-stream. One data: frame then close — no polling. If the task is already terminal, the frame is returned immediately.
data: {"status":"ready","answer":"0.abc..."}Webhooks
Set callbackUrl and we POST the result. Each delivery is signed:
x-solvewall-signature: sha256=<hmac>
x-solvewall-event: task.completed
{"taskId":"723...","status":"ready","solution":{"text":"k7m2p"}}Verify HMAC-SHA256 over the raw body with your webhook secret. Retries back off exponentially (5 s → 1 h, 8 attempts) and stop on any 2xx.
Balance & reports
GET /getBalance → {"errorId":0,"balance":"12.400000"}
POST /reportCorrect → {"errorId":0}
POST /reportIncorrect → refunds the task, dings solver accuracyImage input
Send a base64 string, a data URI, or a public URL in task.body (or astask.imageUrl). PNG, JPEG, GIF, WEBP and BMP up to 500 kB. Multiply-distorted, angled and audio images are all in scope.
Legacy endpoints
Old clients keep working:
POST /in.php (method=userrecaptcha|base64|... ) → OK|<taskId> GET /res.php?action=get&id=... → OK|<answer> | CAPTCHA_NOT_READY GET /res.php?action=getbalance → OK|<balance>
Migrating from 2captcha
- Create a key here and top up — minimum is $3.
- Replace api.2captcha.com with api.solvewall.com (and 2captcha.com with solvewall.com for legacy paths).
- Keep your key in the same field. Type strings such as RecaptchaV2TaskProxyless are accepted directly.
- Optional: switch polling to callbackUrl and add an idempotencyKey.
Sandbox & limits
- 25 createTask/s per key, 200/min per IP.
- 50 tasks per createTasks batch.
- Tasks expire 10 min after creation; unfinished tasks refund automatically.
- Add ?sandbox=1 to any key to get instant echo answers.
Error codes
| errorId | errorCode | Meaning |
|---|---|---|
| 1 | ERROR_KEY_DOES_NOT_EXIST | Unknown or revoked key |
| 10 | ERROR_ZERO_BALANCE | Top up required |
| 11 | ERROR_IP_NOT_ALLOWED | Caller IP outside the key allowlist |
| 12 | ERROR_CAPTCHA_UNSOLVABLE | Three attempts failed, auto-refunded |
| 16 | ERROR_NO_SUCH_CAPCHA_ID | Task id not found for this account |
| 22 | ERROR_TASK_ABSENT | task object missing |
| 23 | ERROR_TASK_NOT_SUPPORTED | Unknown task.type |
| 110 | ERROR_BAD_PARAMETERS | Missing or malformed params |
| 24 | ERROR_SPEND_CAP | Key budget exhausted |
| 25 | ERROR_RATE_LIMITED | Slow down |