DocumentationAPI v1
Captcha Recognition•Proxyless Vision / Audio AI~140ms avg99.2% accuracy$0.40 / 1k

Slider & Jigsaw Gap Offset Recognition

POST/api/v1/tasks:solve
POST/api/v1/createTask

Returns 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 TypeModeRecommended ForRate / 1k
image_sliderGap OffsetSingle-image or background+piece jigsaw slider returning exact target_x pixels$0.40
SliderCaptchaTaskAliasCapSolver/2Captcha-compatible alias for horizontal slider offset tasks$0.40
How to Locate Required Parameters
  1. Capture the full slider background canvas (PNG or JPEG) via Playwright element.screenshot({ encoding: "base64" }) or network interception.
  2. Strip the data:image/png;base64, prefix before sending image_base64.
  3. Optionally include piece_base64 if the target serves the movable puzzle piece separately.
  4. Scale target_x proportionally if the displayed CSS width differs from the natural image width.

Request Parameters

ParameterTypeRequiredDescription
typestringRequired
Use "image_slider" or "SliderCaptchaTask".
Example: "image_slider"
image_base64stringRequired
Base64-encoded slider background image showing the cutout gap.
Example: "iVBORw0KGgoAAAANS..."
options.piece_base64stringOptional
Optional base64 of the jigsaw puzzle piece for higher edge-matching accuracy.
Example: "iVBORw0KGgoAAAANS..."
options.rendered_widthnumberOptional
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 FieldTypeDescription
solution.target_xnumberHorizontal drag distance in pixels from the left edge to the matching cutout.
solution.confidencenumberResult 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 CodeCommon CauseResolution
ERROR_IMAGE_TOO_SMALLCaptured slider image is below 100px width.Screenshot the full puzzle canvas container at 1x or 2x DPR.
ERROR_GAP_NOT_FOUNDImage 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 →