← nocaptchaai.comDocs
    DocsChangelog

    Get Started

    Start Here
    QuickstartAuthenticationError Codes
    Browser Extension

    Captcha Types

    Token Tasks
    Cloudflare Turnstile Task
    Image Tasks
    ReCaptcha v2GeeTest V4ImageToTextBLS CaptchaBinanceAWS WAFTikTokDB-betMTCaptchaTencentProSOPO

    API Reference

    Overview
    Solver
    Create async captcha solving taskPoll task result (GET)Poll task resultSolve captchaGet response statusCollect endpoint (reserved)Report accuracy feedbackGet accuracy report
    Balance
    Check balance & plan infoLegacy balance formatList all error codes
    System
    Health check

    SDKs

    OverviewPythonJavaScript / Node.jsGo

    Agents

    OverviewModel Context Protocol (MCP)Claude CodeOpenAI CodexCursorClineOpenClaw

    Guides

    Browser ExtensionError HandlingChoosing a Task Type
    ← nocaptchaai.com
    Get API key
    Sign inGet API key

    ImageToText

    Recognize text inside an image (OCR) with the NoCaptchaAI API.

    Loading…

    PreviousGeeTest V4NextBLS Captcha
    [ ] Docs[ ] Extension[ ] Pricing[ ] Changelog[ ] Partners[ ] Terms[ ] Privacy[ ] Cookies[ ] Refunds[ ] Contact

    Spicrawl

    Free web scraping API for AI agents.

    spicrawl.com

    Spicrawl

    © 2026 NoCaptchaAI

    Create a task

    POST https://api.nocaptchaai.com/createTask

    bash
    curl -X POST https://api.nocaptchaai.com/createTask \
      -H "Content-Type: application/json" \
      -d '{
        "clientKey": "YOUR_API_KEY",
        "task": {
          "type": "ImageToTextTask",
          "body": "/9j/4AAQSkZJRgABAQ....",
          "module": "module_nocap_201",
          "case": false,
          "numeric": 0,
          "math": false,
          "minLength": 0,
          "maxLength": 0
        }
      }'
    

    Task parameters

    ParameterTypeRequiredDescription
    typestringYesTask type, must be "ImageToTextTask".
    bodystringYesBase64-encoded image string.
    modulestringNoOCR model identifier, for example module_nocap_201 or module_nocap_202. Defaults to common. Match your image against the samples below.
    casebooleanNoCase sensitivity: true for case-sensitive, false otherwise. Default is false.
    numericintegerNoCharacter filter: 0 for any, 1 for numbers only, 2 for letters only. Default is 0.
    mathbooleanNoWhether the image contains a mathematical equation to solve. Default is false.
    minLengthintegerNoMinimum length of recognized text. Default is 0 (no minimum).
    maxLengthintegerNoMaximum length of recognized text. Default is 0 (no maximum).

    Supported models

    Compare your captcha image with the samples below and pass the matching module value in your task. common is the universal fallback model: use it when none of the specialized samples match your captcha, or omit module to use it by default.

    common 1 sample
    General Alphanumeric
    module_nocap_201 13 samples
    NCS Spaced Letters
    EnzoSolution / Securimage
    BDRIS
    Web.de
    France Visa
    Dot Matrix Numbers
    Catch.au
    BLS Senegal / Italy Visa
    Croatia Visa
    Mozambique eVisa
    Clean Alphanumeric
    Multi-colored Staggered
    BLS / Morocco OCR
    module_nocap_202 9 samples
    Poland Konsulat (Math)
    Vietnam eVisa
    Malawi eVisa
    Azerbaijan eVisa
    Bahrain Portal
    State Bank of India (SBI)
    SBI Multi-Color
    Thailand eVisa
    Oman eVisa
    module_nocap_203 1 sample
    MCA India Portal
    module_nocap_204 6 samples
    Brazil Legal — Sample 1
    Brazil Legal — Sample 2
    Brazil Legal — Sample 3
    Brazil Legal — Sample 4
    Brazil Legal — Sample 5
    Brazil Legal — Sample 6
    module_nocap_205 8 samples
    SEFAZ RN / SEI — Sample 1
    SEFAZ RN / SEI — Sample 2
    SEFAZ RN / SEI — Sample 3
    SEFAZ RN / SEI — Sample 4
    SEFAZ RN / SEI — Sample 5
    SEFAZ RN / SEI — Sample 6
    SEFAZ RN / SEI — Sample 7
    SEFAZ RN / SEI — Sample 8
    mod-ocr703 5 samples
    OCR 703 — Sample 1
    OCR 703 — Sample 2
    OCR 703 — Sample 3
    OCR 703 — Sample 4
    OCR 703 — Sample 5
    probot 1 sample
    Probot

    Returns a taskId:

    json
    {
      "errorId": 0,
      "status": "idle",
      "taskId": "abc123"
    }
    

    Get the result

    Poll POST https://api.nocaptchaai.com/getTaskResult until status is ready:

    json
    {
      "clientKey": "YOUR_API_KEY",
      "taskId": "abc123"
    }
    
    json
    {
      "errorId": 0,
      "status": "ready",
      "solution": {
        "text": "aB3xQ"
      }
    }
    
    • solution.text contains the recognized text or mathematical result.

    Code example

    python
    import time
    import requests
    
    API_KEY = "YOUR_API_KEY"
    BASE = "https://api.nocaptchaai.com"
    
    # 1. Create the task
    task = requests.post(
        f"{BASE}/createTask",
        json={
            "clientKey": API_KEY,
            "task": {
                "type": "ImageToTextTask",
                "body": "/9j/4AAQSkZJRgABAQ....",
                "module": "module_nocap_201",
                "case": False,
                "numeric": 0,
                "math": False,
                "minLength": 0,
                "maxLength": 0,
            },
        },
    ).json()
    
    task_id = task["taskId"]
    
    # 2. Poll for the result
    while True:
        time.sleep(2)
        res = requests.post(
            f"{BASE}/getTaskResult",
            json={"clientKey": API_KEY, "taskId": task_id},
        ).json()
    
        if res.get("status") == "ready":
            print(res["solution"]["text"])
            break
        if res.get("status") == "failed" or res.get("errorId"):
            raise SystemExit(res)
    

    Next steps

    API PlaygroundTry createTask live against production.QuickstartGet your API key and make a first call.More image tasksreCAPTCHA, GeeTest, OCR, BLS, AWS WAF and more.