How a request looks
Use {"math": true} in place of the sample options. Install steps are on the SDK pages.
curl -s https://captchaocr.allvoraz.com/v1/solve \
-H "Authorization: Bearer $CAPTCHA_API_KEY" \
-H 'Content-Type: application/json' \
-d "{\"image\": \"$(base64 < captcha.png | tr -d '\n')\", \"numeric\": true, \"length\": 6}"Do not mix it with a digit code
math: true expects an expression. A code such as 482915 belongs on the numeric solver with numeric: true. The plus sign is not a digit, and a string of digits is not a sum.
Division and multi-step sumsbeta
The same {"math": true} request reads 84 ÷ 7, 12 + 7 − 4 and 3 + 4 × 5 (23, not 35). A division that does not come out whole is not answered. These layouts were added after the live set was collected, so their figures are synthetic:
| Captcha | Example | Correct | Right when reliable |
|---|---|---|---|
| Arithmetic: division | 84 ÷ 7, 96 / 8 | 99.3% | 99.3% |
| Arithmetic: three terms | 12 + 7 − 4 | 99.3% | 100.0% |
| Arithmetic: a + b × c | × and ÷ before + and − | 99.3% | 99.3% |
300 fresh synthetic captchas per row, scored end to end through the solver. No live captchas of this kind have been measured yet, so treat these as an upper bound for clean images. Test on your own site first.
Speed and the measured set
The math model is the faster engine, about 6 ms on the measured setup, before network time. The 120-captcha figure is on the accuracy page. Your site can differ. Test with the 5,000 starting credits. Answers start at ₹20 per 1,000 on the larger packs.
What do I send?
POST the image to /v1/solve with math: true. text is the result (23). expression is what was read (14+9). Do not also set numeric.
Which operators?
Add, subtract, multiply and divide (+ − × x * ÷ /), with two or more numbers. × and ÷ are done before + and −. Division and sums of three or more numbers are beta. A digit code with no operator is the numeric solver, not this one.
What if the model is unsure?
If the math model cannot parse a sum, a text read may run and reliable stays false, so you are not charged. Refresh the image. Do not flip the same bytes to numeric: true.
How accurate is it?
On 120 live arithmetic captchas from a land-records website, 95.0% were correct. Of the answers marked reliable, 98.3% were right.
