Captcha Recognition•Proxyless Vision / Audio AI~140ms avg99.2% accuracy$0.40 / 1k
Slider & Jigsaw Gap Offset Recognition
POST
https://api.byecap.org/api/v1/tasks:solvePOST
https://api.byecap.org/api/v1/createTaskReturns the exact horizontal pixel gap offset (target_x) for jigsaw slider captchas (TikTok, Shopee, GeeTest Slide, custom HTML5 canvas puzzles) in ~140ms.
Supported Task Types & Modes
| Task Type | Mode | Recommended For | Rate / 1k |
|---|---|---|---|
| image_slider | Gap Offset | Single-image or background+piece jigsaw slider returning exact target_x pixels | $0.40 |
| SliderCaptchaTask | Alias | CapSolver/2Captcha-compatible alias for horizontal slider offset tasks | $0.40 |
How to Locate Required Parameters
- Capture the full slider background canvas (PNG or JPEG) via Playwright element.screenshot({ encoding: "base64" }) or network interception.
- Strip the data:image/png;base64, prefix before sending image_base64.
- Optionally include piece_base64 if the target serves the movable puzzle piece separately.
- Scale target_x proportionally if the displayed CSS width differs from the natural image width.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Required | Use "image_slider" or "SliderCaptchaTask". Example: "image_slider" |
| image_base64 | string | Required | Base64-encoded slider background image showing the cutout gap. Example: "iVBORw0KGgoAAAANS..." |
| options.piece_base64 | string | Optional | Optional base64 of the jigsaw puzzle piece for higher edge-matching accuracy. Example: "iVBORw0KGgoAAAANS..." |
| options.rendered_width | number | Optional | Optional CSS display width in pixels so target_x is auto-scaled. Example: 320 |
Request Examples
Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"type": "image_slider",
"image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
"options": {
"rendered_width": 320
}
}'Response Format
200 OK — Ready Solution
{
"errorId": 0,
"status": "ready",
"solution": {
"target_x": 185,
"confidence": 0.986
}
}| Response Field | Type | Description |
|---|---|---|
| solution.target_x | number | Horizontal drag distance in pixels from the left edge to the matching cutout. |
| solution.confidence | number | Result confidence score (0.0 to 1.0). |
Human-Like Slider Drag in Playwright
Browser / Client Integration
const box = await page.locator('.slider-handle').boundingBox();
await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
await page.mouse.down();
await page.mouse.move(box.x + box.width / 2 + targetX, box.y + box.height / 2, { steps: 18 });
await page.mouse.up();Error Codes & Troubleshooting
| Error Code | Common Cause | Resolution |
|---|---|---|
| ERROR_IMAGE_TOO_SMALL | Captured slider image is below 100px width. | Screenshot the full puzzle canvas container at 1x or 2x DPR. |
| ERROR_GAP_NOT_FOUND | Image is blank or still loading when captured. | Wait for the slider canvas image to finish decoding before capturing. |
Best Practices & Billing Protection
- Use multi-step mouse interpolation (steps: 15–25) instead of teleporting the slider handle in 1 step.
- Always verify whether your screenshot DPR (devicePixelRatio) matches CSS pixels before dragging.
- Failed slider detections are 100% automatically refunded.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →