# Peak Solutions > Peak Solutions is a captcha and bot-challenge solving API. Solve challenges such as Cloudflare Turnstile and the Cloudflare 5-second challenge (WAF) with one HTTPS request. Pay only for successful solves. ## Key facts - Base URL: https://api.peak.fo. HTTPS and JSON only. No SDK is needed. - Authentication: send the API key in the `X-API-Key` header (or `Authorization: Bearer `). Keys start with `pk_`. - Solve: `POST https://api.peak.fo/solve` with a JSON body. `task_type` picks the task. The result comes back in the same response, with no polling. - Task types: `turnstiletask` (Cloudflare Turnstile, your proxy), `turnstiletaskproxyless` (Turnstile, no proxy needed), `cloudflare5stask` (Cloudflare 5-second challenge / WAF, returns cf_clearance cookies, needs a sticky proxy). - Proxy format: `protocol://user:pass@host:port`. Any protocol (http, https, socks4, socks5). Or send proxy parameters instead: `proxy_type` (default http), `proxy_address`, `proxy_port`, `proxy_login`, `proxy_password`; `proxy` wins if both are sent. - Every response: `{"success": bool, "data": {...}, "cost": number, "error": string, "error_code": string}`. Branch on `error_code`, not on `error`. - Every solve that was tried (success or failure) also returns `task_id` (a UUID). Report whether its result worked with `POST https://api.peak.fo/feedback` `{"task_id": "...", "correct": false, "reason": "..."}` within 24 hours; it doesn't change the balance. - Compatible API: the same base URL also answers the createTask API of 2Captcha (API v2), Anti-Captcha, CapMonster Cloud and CapSolver: `POST /createTask`, `/getTaskResult`, `/getBalance`, `/reportIncorrect`, `/reportCorrect`, `/feedbackTask`, with the key as `clientKey` in the body. Switch by changing only the base URL and key. Task types: `TurnstileTaskProxyless`, `TurnstileTask` (with `cloudflareTaskType: "cf_clearance"` for the 5-second challenge), `AntiTurnstileTaskProxyLess`, `AntiCloudflareTask`. Always HTTP 200; failure is `errorId` > 0. Finished tasks are kept 5 minutes. No 2Captcha in.php/res.php. - Failed solves return HTTP 200 with `"success": false` and are not charged. Rejected requests use 4xx/5xx. - Rate limits: each key has a solves-per-minute limit. Requests over it queue for up to 10 seconds, then get HTTP 429 `rate_limited` with `Retry-After: 1`. - Balance: `GET https://api.peak.fo/balance`. Health: `GET https://api.peak.fo/health` (no key). - Pricing: Turnstile $0.90 per 1,000 solves, 5-second challenge $1.00 per 1,000, lower with packages. New accounts can claim 1,000 free solves ($0.90 of credit) in the dashboard; some targets are blocked for trial credit until the account tops up (403 `task_blocked`, `error` says "for trial credits"). - Every docs page is also available as Markdown: add `.md` to its URL, or send `Accept: text/markdown`. ## Introduction - [What is Peak Solutions?](https://docs.peak.fo/docs.md): Solve bot checks and captchas with one API. - [Why choose Peak Solutions?](https://docs.peak.fo/docs/why.md): Free to try, fast, stable, and priced for scale. ## Getting started - [Quickstart](https://docs.peak.fo/docs/quickstart.md): Create an account, get your API key and test it. - [Authentication](https://docs.peak.fo/docs/authentication.md): Send your API key with every request. ## Guides - [Proxies](https://docs.peak.fo/docs/proxies.md): The proxy format, which protocols work, and when you need a sticky session. - [Find the sitekey](https://docs.peak.fo/docs/find-sitekey.md): Where to find a Turnstile widget's sitekey, action and cdata on a page. - [Build with AI](https://docs.peak.fo/docs/ai.md): Give your AI assistant or coding agent the whole Peak Solutions docs in one link. ## API - [Overview](https://docs.peak.fo/docs/api.md): The base URL, every endpoint, and the shape of every response. - [Solve](https://docs.peak.fo/docs/api/solve.md): POST /solve solves a task and returns the result. - [Feedback](https://docs.peak.fo/docs/api/feedback.md): POST /feedback tells us whether a solve's result worked on the site. - [Balance](https://docs.peak.fo/docs/api/balance.md): GET /balance returns what your API key can spend. - [Health](https://docs.peak.fo/docs/api/health.md): GET /health checks that the API is up. - [Error codes](https://docs.peak.fo/docs/api/errors.md): Every error_code the API can return, and what to do about it. ## Tasks - [Turnstile](https://docs.peak.fo/docs/tasks/turnstile.md): Solve a Cloudflare Turnstile widget through your own proxy. - [Turnstile (Proxyless)](https://docs.peak.fo/docs/tasks/turnstile-proxyless.md): Solve a Cloudflare Turnstile widget without a proxy. - [5-Second Challenge (WAF)](https://docs.peak.fo/docs/tasks/cloudflare-5s.md): Pass Cloudflare's "Just a moment..." browser check. ## Compatible API - [Switch from another solver](https://docs.peak.fo/docs/compat.md): Use your 2Captcha, Anti-Captcha, CapMonster or CapSolver code with Peak Solutions by changing two settings. - [createTask](https://docs.peak.fo/docs/compat/create-task.md): POST /createTask starts a solve and returns its taskId, in the 2Captcha, Anti-Captcha, CapMonster and CapSolver format. - [getTaskResult](https://docs.peak.fo/docs/compat/get-task-result.md): POST /getTaskResult returns a task's status and, once it's ready, its solution. - [getBalance](https://docs.peak.fo/docs/compat/get-balance.md): POST /getBalance returns what your key can spend, in USD. - [Report a result](https://docs.peak.fo/docs/compat/reports.md): Tell us whether a solution worked, with reportIncorrect, reportCorrect or feedbackTask. - [Compatible error codes](https://docs.peak.fo/docs/compat/errors.md): Every errorCode the compatible API returns, and what it means. ## Account - [Pricing](https://docs.peak.fo/docs/pricing.md): What each task costs, per solve or in packages. - [Referrals & App IDs](https://docs.peak.fo/docs/earn.md): Earn balance by referring people, or by building tools on Peak Solutions. - [Support](https://docs.peak.fo/docs/support.md): Where to get help, check the service status, and follow news. ## API reference - [OpenAPI 3.1 spec](https://docs.peak.fo/openapi.json): Machine-readable description of every public endpoint, request and response. ## Optional - [Full documentation in one file](https://docs.peak.fo/llms-full.txt): Every page above, as Markdown. - [Website](https://peak.fo): Sign up, pricing and the dashboard. - [Playground](https://peak.fo/dashboard/playground): Send test solves from the browser. - [Telegram channel](https://t.me/peakfo): News and announcements. - [Status page](https://peak.fo/status): Live status of each task over the last 5 hours. - [Status channel](https://t.me/peakfostatus): Outages and fixes. - [Support](https://peak.fo/support): Live chat with the team, or support@peak.fo.