Skip to main content
CaptchaKings
  • Home
  • Features
  • Pricing
  • Demo
    • How It Works
    • Forum
    • IP Rotator
    • Blog
Search
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Login Sign Up Free
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Login Sign Up Free

cURL Captcha Solver: Solve Captchas From the Terminal (2026)

Terminal one-liners, bash scripts & PowerShell — updated August 2026

TL;DR — QUICK ANSWER

How to solve Captchas with cURL?

Image captchas solve in one cURL command — live today. The reCAPTCHA two-command flow (create the task, then poll) is a planned preview — see /supported-captchas. Copy the bash script below for a cron-ready solver. $0.50 free balance on signup, no credit card required.

💰 Price: $0.80 / 1,000 image solves
⚡ Speed: ~1.2s median execution
🎯 Command: Single cURL POST request
🎁 Free Trial: $0.50 balance on signup

📋 Status: Live today via the API: image/text captchas ($0.80 per 1,000, ~1.2s median) plus GeeTest, Tencent, xCaptcha, MTCaptcha and Amazon WAF ($1.00 per 1,000) — measured numbers at /benchmarks. reCAPTCHA, hCaptcha and Cloudflare Turnstile are planned, not yet available — see /supported-captchas.

Image Captcha: One Command

The image API is synchronous — upload the file, get the text back immediately. This is the same endpoint documented in the API docs:

bash
curl -X POST https://captchakings.com/api/process.php \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "captcha=@captcha.jpg"

Response (success):

json
{
  "success": true,
  "data": {
    "prediction": "7H3kP",
    "confidence": 97.5,
    "process_time": 0.84
  },
  "billing": {
    "amount_charged": 0.0008,
    "balance_remaining": 0.4992,
    "plan": "payg"
  }
}

Extract just the text with jq:

bash
curl -s -X POST https://captchakings.com/api/process.php \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "captcha=@captcha.jpg" | jq -r '.data.prediction'

Amazon WAF Image Challenge: One Command (Live)

The Amazon solver is also synchronous — upload the challenge image, get the click coordinates back in one response (~8s median, set a 30s client timeout). reCAPTCHA v2/v3 and hCaptcha are planned, not yet available — see /supported-captchas:

bash
curl -s -X POST https://captchakings.com/api/amazon.php \
  -F "api_key=YOUR_API_KEY" \
  -F "target_class=car" \
  -F "file=@challenge.png" | jq '.coordinates'

Retrying the same challenge after a transient failure? Add -F "is_retry=true" so you are not billed twice for it. reCAPTCHA's token flow will be documented at launch — the endpoints on this page are the live ones.

Full Bash Solver Script — Amazon WAF Flow (Live, Cron-Ready)

Save this as solve_amazon.sh. It prints the coordinates JSON on success and exits non-zero on failure, so cron mails you errors automatically:

solve_amazon.sh
#!/usr/bin/env bash
# Usage: ./solve_amazon.sh <challenge_image> <target_class>
set -euo pipefail

API_KEY="${CAPTCHAKINGS_KEY:?Set CAPTCHAKINGS_KEY env var}"
IMAGE="$1"
TARGET_CLASS="$2"

# Synchronous solve — one POST, coordinates in the response (~8s median, allow 30s)
RESULT=$(curl -s --max-time 30 -X POST "https://captchakings.com/api/amazon.php" \
  -F "api_key=$API_KEY" \
  -F "target_class=$TARGET_CLASS" \
  -F "file=@$IMAGE")

echo "$RESULT" | jq -e '.coordinates' >/dev/null || { echo "Solve failed: $RESULT" >&2; exit 1; }
echo "$RESULT" | jq -c '.coordinates'

Run it from cron (e.g. every 15 minutes, result saved to a file):

crontab
*/15 * * * * CAPTCHAKINGS_KEY=ck_xxx /opt/scripts/solve_amazon.sh /tmp/challenge.png "car" > /var/run/amazon_coords.json

PowerShell on Windows

No curl needed — Invoke-RestMethod -Form handles the multipart endpoints natively on PowerShell 7+:

solve_amazon.ps1
$ApiKey = $env:CAPTCHAKINGS_KEY

# Synchronous Amazon WAF solve — one POST, coordinates in the response
$r = Invoke-RestMethod -Method Post `
  -Uri "https://captchakings.com/api/amazon.php" `
  -TimeoutSec 30 `
  -Form @{
    api_key = $ApiKey
    target_class = "car"
    file = Get-Item ".\challenge.png"
  }

$r.coordinates | ConvertTo-Json -Compress

For the image API on PowerShell 7+, multipart is one call:

image.ps1 (PowerShell 7+)
$r = Invoke-RestMethod -Method Post `
  -Uri "https://captchakings.com/api/process.php" `
  -Headers @{ Authorization = "Bearer $env:CAPTCHAKINGS_KEY" } `
  -Form @{ captcha = Get-Item ".\captcha.jpg" }

$r.data.prediction

Endpoint Recap

Captcha TypeEndpointResult
Image captchacaptchakings.com/api/process.phpSolved text (synchronous) — live, ~1.2s median, $0.80 / 1,000
AWS WAF (Amazon)captchakings.com/api/amazon.phpClick coordinates (synchronous) — live, ~8s median, $1.00 / 1,000
reCAPTCHA / hCaptcha / TurnstileAnnounced at launchPlanned — token flow at launch, see /supported-captchas
2Captcha-compatiblecaptchakings.com/in.php / res.phpDrop-in migration format

Best Practices

  • -s for scripts, -v for debugging — silent mode keeps output clean for pipes and jq.
  • Set generous timeouts — image OCR solves in ~1.2s median; Amazon WAF is inference-heavy at ~8s median, so allow 30s (see /benchmarks).
  • Keep the key in an env var (CAPTCHAKINGS_KEY), not in the script or crontab history.
  • Exit codes matter in cron: the bash script above exits 1 on failure so cron notifies you instead of silently writing garbage.
  • Batch image solves with xargs for bulk jobs: ls *.jpg | xargs -P8 -I{} curl ... -F "captcha=@{}".

FAQ

Can I solve a captcha with a single cURL command?

Yes — both live APIs are synchronous: one multipart POST to /api/process.php returns the solved text, and one to /api/amazon.php returns the challenge coordinates. reCAPTCHA support is planned, not yet live — see /supported-captchas and /recaptcha-solver.

How do I parse the JSON in bash?

With jq: curl ... | jq -r '.data.prediction' for images, jq '.coordinates' for Amazon challenges. jq is in every major distro's repos and on Windows via winget.

Does this work in PowerShell?

Yes — Invoke-RestMethod -Form handles multipart uploads on PowerShell 7+. Examples above.

Can I run this from cron?

Yes — the bash script prints only the token to stdout and exits non-zero on failure, so cron emails you errors. A sample crontab line is included above.

Integration Guides for Other Languages

  • Python Captcha Solver Guide
  • Node.js Captcha Solver Guide
  • PHP Captcha Solver Guide
  • reCAPTCHA Solver — How It Works
  • Full API Documentation
  • Free Browser Tools (no code)

Start solving from your terminal today

$0.50 free balance on signup — test with your own captchas.

Get Your API Key
CaptchaKings

CaptchaKings (Captcha Kings) is an AI Captcha Solver API for modern automation - fast, measured, and transparent

Products

  • Features
  • Tencent / Chinese NEW
  • xCaptcha Solver NEW
  • Google reCAPTCHA NEW
  • API Documentation
  • Pricing
  • How It Works
  • Supported CAPTCHAs
  • Benchmarks

Resources

  • Developer Docs
  • Selenium Guide NEW
  • Playwright Guide NEW
  • Puppeteer Guide NEW
  • Free Tools NEW
  • Chrome Extension NEW
  • Blog & Tutorials
  • IP Rotator

Comparisons & FAQs

  • Why CaptchaKings?
  • Price Comparison
  • vs 2Captcha
  • vs CapSolver
  • vs CapMonster
  • vs Anti-Captcha
  • For AI Agents

Company

  • About
  • Demo
  • Dashboard
  • Support
  • Privacy Policy
  • Refund Policy
  • Terms of Service
  • SLA 99.9%

© 2026 CaptchaKings.com. All rights reserved.

🚀 Get Started Free
🎁

Wait! Don't Miss Out

Sign up now and get a $0.50 FREE BALANCE to test our API.

Claim Bonus & Sign Up Free

We use cookies to enhance your experience, analyze site traffic, and optimize API performance. By continuing to use our website, you agree to our cookie policy. Privacy Policy