POST
/api/v1/createTaskCreate a Captcha Task
Enqueues a captcha solving job onto the ByeCap gRPC GPU cluster. Funds (or package quota) are reserved atomically and automatically refunded if the task fails or times out. Poll the returned taskId via POST /getTaskResult.
Authentication: Pass your API key via the
X-API-Key HTTP header (recommended) or inside the JSON body as clientKey. Both nested task.* (2Captcha/CapSolver style) and flat payloads are supported.Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| clientKey | string | required | Your API key (passed in JSON body or X-API-Key header). |
| task.type | string | required | Captcha task type (e.g. ImageToTextTask, SvgToTextTask, TurnstileTaskProxyless, RecaptchaV2TaskProxyless). |
| task.body | string | optional | Base64-encoded image or SVG string (also accepted as top-level image_base64). |
| task.module | string | optional | Optional specialized solver module name (e.g. Nomal for SVG OCR). |
| website_url | string | optional | Target page URL where Turnstile, reCAPTCHA, or GeeTest is rendered. |
| website_key | string | optional | Public sitekey or captchaId extracted from the target page. |
| options | object | optional | Optional key-value parameters (max 32 keys, e.g. isInvisible, action, minScore). |
| webhook_url | string | optional | Optional HTTPS callback URL to receive asynchronous solution delivery. |
| softID | integer | optional | Optional partner software identifier for referral attribution. |
Request Examples
POST /createTask
curl -X POST https://api.byecap.org/api/v1/createTask \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"task": {
"type": "ImageToTextTask",
"body": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}
}'Response Payloads
200 OK — Queued (pending)
{
"status": "pending",
"taskId": "76f8a21c-9b3e-4e11-a210-9c881c2e77a1"
}200 OK — Instant Cache Hit (ready)
{
"status": "ready",
"taskId": "76f8a21c-9b3e-4e11-a210-9c881c2e77a1",
"result": {
"text": "7K4M9"
}
}Common Error Codes
| HTTP | Error Code | Meaning |
|---|---|---|
| 401 | KEY_NOT_FOUND | Missing, invalid, or deactivated API key. |
| 400 | INSUFFICIENT_BALANCE | Wallet balance is too low to reserve the task cost. |
| 400 | UNSUPPORTED_TASK_TYPE | Unknown task.type or unsupported module routing. |
| 403 | API_KEY_MODULE_NOT_ALLOWED | This API key is restricted from calling the requested captcha module. |
| 403 | IP_NOT_WHITELISTED | Caller IP is not in the API key whitelist. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests per second; back off and retry. |
Looking for task-specific payloads? See Image OCR, Cloudflare Turnstile, or reCAPTCHA v2.Next: POST /getTaskResult →