Skip to content

Image To Text Captcha Solver

Solve standard text-based captchas using the OcrImage task type. Supports customizable constraints for numeric-only, case-sensitivity, and character length.

Create Task

POST/createTask
Hostapi.captchasonic.com
Content-Typeapplication/json
{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "OcrImage",
        "queries": ["BASE64_CAPTCHA_IMAGE"],
        "module": "probot",
        "numeric": false,
        "case": false,
        "minLength": 4,
        "maxLength": 6
    }
}

Response

{
    "code": 200,
    "msg": "",
    "answers": ["ABC12"]
}

Task Parameters

PropertyTypeRequiredDescription
typestringβœ…OcrImage or ImageToTextTask
queriesstring[]βœ…Base64-encoded captcha image(s)
modulestringNoOCR module ID (e.g. probot)
numericbooleanNotrue if captcha contains only digits
casebooleanNotrue if solution is case-sensitive
minLengthintegerNoMinimum expected character count
maxLengthintegerNoMaximum expected character count

API Playground

POST
Log in to auto-fill your API key
Payload
Response

Hit Send to see response

⌘ + Enter

Parameters

apiKeystringYOUR_API_KEY
taskobject{...}
β”” typestringOcrImage
β”” queriesarray[1 items]
β”” numericbooleanfalse
β”” casebooleanfalse
β”” minLengthnumber4
β”” maxLengthnumber6

Error Codes

1KEY_DOES_NOT_EXIST
2NO_SLOT_AVAILABLE
3ZERO_BALANCE
10ERROR_BAD_PARAMETERS
12ERROR_CAPTCHA_UNSOLVABLE
14PLAN_EXPIRED
16RATE_LIMITED
17DAILY_LIMIT_EXCEEDED
18QUOTA_LIMIT_EXCEEDED
21SERVICE_UNAVAILABLE
Code
terminal