# CAPTCHA Solve API

> Solve one Turnstile, reCAPTCHA, hCaptcha, FunCaptcha or image CAPTCHA through the configured provider chain and return its token or click coordinates.

Category: [Internal APIs](https://upapi.io/apis/internal) · Last updated 2026-11-30

## How to call it

- Endpoint: `POST https://api.upapi.io/captcha-solve.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 240 seconds.
- Cache: none; every call runs the operation.
- Try it without writing code: https://app.upapi.io/try/captcha-solve.post

```bash
curl -X POST https://api.upapi.io/captcha-solve.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "type": "turnstile", "invisible": false, "enterprise": false }'
```

## Request parameters

- `type` (enum, required) — Widget type; the first three are Stealth's own names
- `cdata` (string) — Turnstile data-cdata
- `steps` (array) — type=turnstile_headful: pre-token page interaction steps. Each dict: {"fill": "selector", "value": "text"} or {"click": "selector", "textMatch": "button text"} or {"wait": "turnstile"}
- `action` (string) — reCAPTCHA v3 action (required) or Turnstile data-action
- `pageUrl` (string) — URL of the page showing the widget
- `siteKey` (string) — data-sitekey (FunCaptcha: the public key)
- `imgWidth` (integer) — type=funcaptcha_vlm: image width in px
- `proxyUrl` (string) — type=turnstile_headful: ISP proxy for headful browser
- `imgHeight` (integer) — type=funcaptcha_vlm: image height in px
- `invisible` (boolean) — reCAPTCHA v2 without a checkbox
- `enterprise` (boolean) — reCAPTCHA Enterprise tasks
- `imageBase64` (string) — type=image or funcaptcha_vlm: the PNG/JPEG, base64
- `instruction` (string) — type=funcaptcha_vlm: the challenge instruction text
- `funcaptchaSubdomain` (string) — Arkose API subdomain when the site uses its own

## Response fields

- `type` (enum, required)
- `token` (string) — The response token (type=image: the recognised text)
- `action` (string) — type=funcaptcha_vlm: button action (submit/right_arrow/left_arrow)
- `clickX` (integer) — type=funcaptcha_vlm: x coordinate to click
- `clickY` (integer) — type=funcaptcha_vlm: y coordinate to click
- `solveMs` (integer, required) — Time the provider took
- `reasoning` (string) — type=funcaptcha_vlm: VLM reasoning for the choice

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "type": "turnstile",
  "invisible": false,
  "enterprise": false
}
```

```json
{
  "type": "turnstile",
  "token": "",
  "action": "example",
  "clickX": 1,
  "clickY": 1,
  "solveMs": 1,
  "reasoning": "example"
}
```

## Frequently asked questions

### How much does the CAPTCHA Solve API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the CAPTCHA Solve API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are CAPTCHA Solve API responses cached?

No — every call runs the operation live; responses are not cached.
