# 2Captcha CreateTask via PaySponge

> 2Captcha CreateTask via PaySponge is a paid API for AI agents from 2captcha.x402.paysponge.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Submits a new captcha recognition task (image-to-text, reCAPTCHA v2, or other supported types) to 2Captcha via the PaySponge x402 billing wrapper, returning a taskId for polling.

## Facts

- Endpoint: POST https://2captcha.x402.paysponge.com/createTask
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2captcha-createtask-via-paysponge-d27c3006
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kOHQlALh0VcJvF16mWFoR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2captcha-createtask-via-paysponge-d27c3006 -d '<json body>'
```

Example prompt: Solve this image captcha for me — it's a distorted text JPEG, case-sensitive, and the answer should be letters only: [base64-encoded image string].

## When to prefer this

Use this endpoint when you need to programmatically submit captcha-solving tasks (image-to-text, reCAPTCHA v2 proxyless, or other 2Captcha-supported types) without managing a separate 2Captcha API key, relying instead on per-call USDC billing via the x402 PaySponge wrapper. Prefer it in automated pipelines where captcha solving is a step in web scraping, form submission, or account automation workflows.

## Known failure modes

- Invalid or missing task type returns errorId>0 with errorCode and errorDescription
- Malformed or oversized Base64 image (>100 kB) causes task rejection
- Missing required fields like websiteURL or websiteKey for reCAPTCHA tasks triggers error response
- Payment failure via x402/PaySponge results in HTTP 402 before task is created
- Unsupported captcha type or schema mismatch returns upstream error

## How this service works

Create a CAPTCHA solving task

## Output

On success, returns an object with errorId=0 and a numeric taskId that the caller can use to poll for the captcha solution. On failure, returns a non-zero errorId along with a stable errorCode string and a human-readable errorDescription explaining why the task could not be created.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "task"
 ],
 "properties": {
  "task": {
   "anyOf": [
    {
     "type": "object",
     "required": [
      "type",
      "body"
     ],
     "properties": {
      "body": {
       "type": "string",
       "description": "Captcha image encoded as Base64. Data URI format with a `data:content/type` prefix is also supported."
      },
      "case": {
       "type": "boolean",
       "default": false,
       "description": "Set to `true` when the result is case-sensitive."
      },
      "math": {
       "type": "boolean",
       "default": false,
       "description": "Set to `true` when the captcha requires a calculation."
      },
      "type": {
       "type": "string",
       "const": "ImageToTextTask"
      },
      "phrase": {
       "type": "boolean",
       "default": false,
       "description": "Set to `true` when the answer should contain at least two words separated by a space."
      },
      "comment": {
       "type": "string",
       "description": "Optional text instruction shown to workers."
      },
      "numeric": {
       "enum": [
        0,
        1,
        2,
        3,
        4
       ],
       "type": "integer",
       "default": 0,
       "description": "Character-class hint: `0` no preference, `1` only numbers, `2` only letters, `3` either only numbers or only letters, `4` must contain both numbers and letters."
      },
      "maxLength": {
       "type": "integer",
       "default": 0,
       "minimum": 0,
       "description": "Maximum answer length. `0` means no preference."
      },
      "minLength": {
       "type": "integer",
       "default": 0,
       "minimum": 0,
       "description": "Minimum answer length. `0` means no preference."
      },
      "imgInstructions": {
       "type": "string",
       "description": "Optional Base64-encoded instruction image shown to workers."
      }
     },
     "description": "Normal CAPTCHA task. Submit a distorted text image encoded as Base64. Supported image formats are JPEG, PNG, and GIF. Maximum file size is 100 kB and maximum image size is 1000 px on any side.",
     "additionalProperties": false
    },
    {
     "type": "object",
     "required": [
      "type",
      "websiteURL",
      "websiteKey"
     ],
     "properties": {
      "type": {
       "type": "string",
       "const": "RecaptchaV2TaskProxyless"
      },
      "cookies": {
       "type": "string",
       "description": "Cookies to set in the worker browser, formatted as
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "oneOf": [
  {
   "type": "object",
   "required": [
    "errorId",
    "taskId"
   ],
   "properties": {
    "taskId": {
     "type": "integer",
     "description": "Identifier of the created task."
    },
    "errorId": {
     "type": "integer",
     "const": 0
    }
   },
   "description": "Successful task creation response.",
   "additionalProperties": false
  },
  {
   "type": "object",
   "required": [
    "errorId",
    "errorCode",
    "errorDescription"
   ],
   "properties": {
    "errorId": {
     "type": "integer",
     "description": "Non-zero numeric error identifier."
    },
    "errorCode": {
     "type": "string",
     "description": "Stable upstream error code string."
    },
    "errorDescription": {
     "type": "string",
     "description": "Human-readable upstream error description."
    }
   },
   "description": "2Captcha error response shape used when the upstream API cannot complete the requested operation.",
   "additionalProperties": false
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2captcha-createtask-via-paysponge-d27c3006/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2captcha.x402.paysponge.com](https://www.zero.xyz/host/2captcha.x402.paysponge.com/llms.txt)
