Skip to content

ImageToText

ImageToText Task (OCR) : Image Charecter Recognition

with this POST request you can solve Charecter Recognition image challenges.

Get ApiKey PRICING
POST https://api.nocaptchaai.com/createTask
Host: api.nocaptchaai.com
Content-Type: application/json

Supported module List:

"module": "common"
"module": "omgomg"
"module": "probot"
"module": "mtcap"
"module": "dell"
"module": "catch"
"module": "webde"
"module": "zefoy"
"module": "caixa"
"module": "oxcheats"
"module": "u1"
"module": "zoho"
"module": "protypers"
"module": "visa1"

Request

{
"clientKey": "YOUR_API_KEY", // Get API_KEY from https://NoCaptchaAi.com
"task": {
"type": "ImageToTextTask",
"module": "common", // "module_001", "module_002", ...
"body": "base64image" or ["base64image", "base64image"], // string(single) or array(multiple) of base64 of the main images
"websiteURL": "website URL", // source url to improve accuracy
"phrase": false,
"case": true,
"numeric": 0,
"math": false,
"minLength": 1,
"maxLength": 5,
"score": 0.8, // 0.8 ~ 1 expected matching score
"comment": "enter the text you see on the image"
},
"languagePool": "en"
}

Response

PATH : /getTaskResult
API ENDPOINT: https://api.nocaptchaai.com/getTaskResult
{
"errorId": 0,
"status": "ready",
"solution": {
"text": "hello world"
},
"cost": "0.00025",
"ip": "1.2.3.4",
"createTime": 1692808229,
"endTime": 1692808326,
"solveCount": 1
}

API Testing Example Scripts

(Copy, Edit and Implement)

const axios = require('axios');
const url = 'https://api.nocaptchaai.com/createTask';
const payload = {
clientKey: "userxx-2782xx2-065e-x-7daa-xxxxx",
task: {
type: "GeetestClassification",
images: [
"iVBORw0KGgoAAAANSUhEUgAAASwAAAD"
],
slice: "iVBORw0KGgoAAAANSUhEUgAAAFAAAA",
question: "slide",
websiteURL: "https://doamin.net/login"
}
};
axios.post(url, payload, {
headers: {
'Content-Type': 'application/json'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});