Accuracy
| Captcha | Example | Correct | Right when reliable |
|---|---|---|---|
| Slider, with the piece image | within 5 px; photos not used in development | 95.7% | 99.6% |
| Slider, background only | within 5 px; no piece image, a model finds the gap | 99.0% | 99.7% |
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.
How it finds the gap
Sites draw the gap as a darker or lighter copy of the piece's shape. With the piece, three things are matched across the background: the piece's outline against the edges, the piece's pixels against the gap (normalised, so a darkened or lightened copy still matches), and a brightness step that runs all the way round the outline. Only the real gap scores high on all three. Without the piece, a small neural network trained on slider puzzles reads the background and points at the gap's column. Puzzles were made from public-domain museum photos, and the photos used for the figures above were never used while building it.
Send a request
Install steps are on the SDK pages.
curl -s https://captchaocr.allvoraz.com/v1/solve_slider \
-H "Authorization: Bearer $CAPTCHA_API_KEY" \
-H 'Content-Type: application/json' \
-d "{\"image\": \"$(base64 < background.png | tr -d '\n')\", \"piece\": \"$(base64 < piece.png | tr -d '\n')\"}"Questions
What do I send?
The background image (the picture with the gap) as image and the piece image as piece, both base64, to POST /v1/solve_slider. The piece can be a transparent cut-out or a full-height strip, and can be left out.
What comes back?
x, the gap's left edge in pixels of the background image, and y, its top edge. The distance to drag is x minus the piece's starting x; if the page shows the image resized, scale it by the display width over the image width.
Can it work without the piece?
Yes: a model trained on slider puzzles then points at the gap from the background alone (method: model). It was within 5 pixels on 99% of 300 puzzles from unseen photos; send the piece too whenever the page has one.
Does it move the slider for me?
No. It returns the position; your automation drags the handle. That keeps it a plain image API.
How accurate is it?
With the piece, 96% of answers were within 5 pixels on 300 slider captchas made from photos it never saw, and 99.6% of the answers it marked reliable were right.

