Skip to main content
CaptchaKings
  • 首页
  • 特征
  • 定价
  • 演示
    • 它是如何运作的
    • Forum
    • IP旋转器
    • 博客
Search
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
登录 免费注册
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
登录 免费注册

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 "[email protected]"

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 "[email protected]" | 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 "[email protected]" | 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) 是用于现代自动化的 AI 验证码识别 API - 快速、精准且透明

产品服务

  • 特征
  • 腾讯 / 中文验证码 NEW
  • xCaptcha 识别 NEW
  • Google reCAPTCHA NEW
  • API 开发文档
  • 定价
  • 它是如何运作的
  • 支持的验证码
  • 基准测试与精度

开发资源

  • 开发者文档
  • Selenium 指南 NEW
  • Playwright 指南 NEW
  • Puppeteer 指南 NEW
  • 免费工具箱 NEW
  • Chrome 扩展插件 NEW
  • 博客与教程
  • IP 轮换器

对比与常见问题

  • 为什么选择 CaptchaKings?
  • 价格对比
  • vs 2Captcha
  • vs CapSolver
  • vs CapMonster
  • vs Anti-Captcha
  • 面向 AI 智能体

关于公司

  • 关于我们
  • 演示
  • 仪表板
  • 客户支持
  • 隐私政策
  • 退款政策
  • 服务条款
  • SLA 服务保障 99.9%

© 2026 CaptchaKings.com. 版权所有。

🚀 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

我们使用 Cookie 来改善您的浏览体验、分析网站流量并优化 API 性能。继续使用我们的网站即表示您同意我们的 Cookie 政策。 隐私政策