DocumentationAPI v1
Captcha Recognition•Proxyless Vision / Audio AI~120ms avg99.5% accuracy$0.25 / 1k

Image & SVG to Text Recognition

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

Fast (~120ms) text recognition for distorted alphanumeric challenges, arithmetic equations, banking vector SVGs, Queue-it, and Amazon captchas.

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
ImageToTextTaskImage (PNG/JPG/WebP/GIF)Standard distorted alphanumeric, numeric, Queue-it, and Amazon text captchas (alias: image_text)$0.25
SvgToTextTaskVector SVGRaw XML <svg> or Base64 SVG captchas (alias: svg)$0.30

Supported Modules (task.module)

Optionally specify task.module to tailor recognition formatting to your target captcha:

Module NameTarget FormatExpected Output
standard / commonGeneral Alphanumeric (4–8 chars)Default Latin letters + digits output
numberDigits Only (0–9)Numeric digits only
mathArithmetic Expressions (e.g. "14 + 7 = ?")Evaluates +, -, ×, ÷ and returns the computed integer ("21")
queueitQueue-it Virtual Waiting RoomFormatted for Queue-it text challenges
amazonAmazon Classic 6-Letter CaptchaUppercase 6-character Amazon text output
svg / mbbank / vcbBanking Vector SVGsSupports standard banking SVG markup
How to Locate Required Parameters
  1. Capture the <img> bytes (via canvas or network interception) or extract raw <svg>...</svg> markup.
  2. Encode the raw bytes as standard Base64 and strip any "data:image/png;base64," or "data:image/svg+xml;base64," prefix.
  3. Call POST /api/v1/tasks:solve for immediate synchronous response (~120ms) or POST /api/v1/createTask for async mode.
  4. Fill solution.text into the captcha input field.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use "ImageToTextTask" ("image_text") or "SvgToTextTask" ("svg").
Example: "ImageToTextTask"
task.bodystringRequired
Raw Base64 image payload without data-URI header (also accepted as top-level image_base64).
Example: "iVBORw0KGgoAAAANSUhEUgAA..."
task.modulestringOptional
Optional module selector: common, number, math, queueit, amazon, svg, mbbank.
Example: "common"
options.caseSensitivebooleanOptional
Preserve exact uppercase/lowercase distinction when required by target validation.
Example: true
options.minLength / maxLengthnumberOptional
Optional character length constraint hint for fixed-length captchas.
Example: 5

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 '{
    "type": "ImageToTextTask",
    "module": "common",
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
    "options": {
      "caseSensitive": true
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "taskId": "76f8a21c-9b3e-4e11-a210-9c881c2e77a1",
  "status": "ready",
  "latency_ms": 94,
  "solution": {
    "text": "7K4M9"
  }
}
Response FieldTypeDescription
solution.textstringRecognized characters or evaluated arithmetic answer.
latency_msnumberTotal solve duration in milliseconds.

Capturing Exact Image Bytes Without Re-Requesting URL

Browser / Client Integration
// Avoid re-downloading captcha src (which generates a brand new captcha on the server!):
const imgBuffer = await page.locator("img#captchaImage").screenshot({ type: "png" });
const image_base64 = imgBuffer.toString("base64");

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
ERROR_IMAGE_DECODE_FAILEDBase64 string still includes "data:image/png;base64," or invalid image bytes.Strip any data-URI prefix before "," and verify payload size > 100 bytes.
WRONG_CAPTCHA_SESSIONClient made a second HTTP GET to captcha.php instead of capturing the rendered DOM image.Intercept the original image response or screenshot the existing element so session cookies stay matched.
Best Practices & Billing Protection
  • Use POST /api/v1/tasks:solve for image-to-text tasks to receive answers in a single HTTP request (~120ms).
  • Report any misread via POST /api/v1/reportIncorrect with taskId to trigger automated quality credit.
  • Need support for a custom or regional captcha format? Contact support via Dashboard Tickets for enterprise onboarding.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →