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

Rotate Captcha Angle Recognition (0°–360°)

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

Fast (~150ms) angle recognition for single-disc upright rotation captchas (Baidu, FunCaptcha Rotate) and dual concentric counter-rotating rings (TikTok, Douyin, Shopee).

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
RotateTask (Single Disc)Single Image → angleRotate a single circular photo clockwise until upright (alias: image_rotate)$0.40
RotateTask (Double Ring)Inner + Outer → angleTikTok / Shopee / custom concentric inner + outer counter-rotating rings$0.45
How to Locate Required Parameters
  1. For single-circle rotate captchas: capture the circular image bytes and encode as Base64 in task.image.
  2. For TikTok / double-ring captchas: extract both the outer background ring (outerImage) and inner rotatable disc (innerImage) as raw Base64.
  3. Call POST /api/v1/tasks:solve to obtain solution.angle (clockwise degrees 0–360).
  4. Convert degrees to horizontal slider pixels: dragDistancePx = (solution.angle / 360) * (trackWidth - knobWidth). Note: if inner and outer rings counter-rotate at 1:1 speed, divide by 360 directly—ByeCap already accounts for counter-rotation when both images are supplied!

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use "RotateTask" (also accepts "image_rotate" or "FunCaptchaRotate").
Example: "RotateTask"
task.imagestringOptional
Required for Single-Disc mode: Base64 circular image.
Example: "/9j/4AAQSkZJRgABAQ..."
task.outerImagestringOptional
Required for Double-Ring mode: Base64 outer ring image.
Example: "/9j/4AAQSkZJRgABAQ...outer"
task.innerImagestringOptional
Required for Double-Ring mode: Base64 inner disc image.
Example: "/9j/4AAQSkZJRgABAQ...inner"

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/tasks:solve \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "task": {
      "type": "RotateTask",
      "outerImage": "/9j/4AAQSkZJRgABAQ...outer_ring_b64",
      "innerImage": "/9j/4AAQSkZJRgABAQ...inner_disc_b64"
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "taskId": "rt4409c1-7e12-40a8-99b1-1209f8a44c22",
  "status": "ready",
  "latency_ms": 134,
  "solution": {
    "angle": 142.5
  }
}
Response FieldTypeDescription
solution.anglenumberClockwise rotation angle in degrees (0 to 360, float precision ±1.5°).

Converting Degrees to Slider Drag Distance in Playwright

Browser / Client Integration
const trackWidth = await page.locator(".secsdk-captcha-drag-wrapper").evaluate((el) => el.clientWidth);
const knobWidth = await page.locator(".secsdk-captcha-drag-icon").evaluate((el) => el.clientWidth);
const maxSlidePx = trackWidth - knobWidth;

const targetPx = (solution.angle / 360) * maxSlidePx;

const knob = await page.locator(".secsdk-captcha-drag-icon").boundingBox();
await page.mouse.move(knob.x + knob.width / 2, knob.y + knob.height / 2);
await page.mouse.down();
await page.mouse.move(knob.x + knob.width / 2 + targetPx, knob.y + knob.height / 2 + 2, { steps: 24 });
await page.mouse.up();

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
ERROR_SWAPPED_RINGSinnerImage and outerImage were passed in reverse order, inverting the angle (360 - angle).Ensure outerImage is the larger background ring and innerImage is the smaller center disc.
Best Practices & Billing Protection
  • Download original PNG/WebP ring URLs directly so alpha transparency masks around circular edges remain crisp.
  • Add slight human overshoot (+3px then -3px settle) before mouseup on TikTok/ByteDance sliders.
  • Failed angle recognitions receive 100% automatic billing protection.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →