Image Tasks

MTCaptcha
Solve MTCaptcha image captchas with the NoCaptchaAI API.
Create a task
POST https://api.nocaptchaai.com/createTask
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "MtCaptchaClassification",
"websiteURL": "https://example.com",
"images": ["base64-captcha-image"],
"module": "mtcaptcha",
"maxLength": 8
}
}Get the result
{ "errorId": 0, "solution": { "text": ["abcdefgh"] } }solution.text[0]is the recognized captcha text.- Missing
solution.texttriggers a refresh.
Code example
import requests
API_KEY = "YOUR_API_KEY"; BASE = "https://api.nocaptchaai.com"
res = requests.post(f"{BASE}/createTask", json={
"clientKey": API_KEY,
"task": {
"type": "MtCaptchaClassification",
"websiteURL": "https://example.com",
"images": ["base64-captcha-image"],
"module": "mtcaptcha",
"maxLength": 8
}
}).json()
print(res)const API_KEY = "YOUR_API_KEY", BASE = "https://api.nocaptchaai.com";
const res = await fetch(`${BASE}/createTask`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
clientKey: API_KEY,
task: {
type: "MtCaptchaClassification",
websiteURL: "https://example.com",
images: ["base64-captcha-image"],
module: "mtcaptcha",
maxLength: 8
}
})
}).then(r => r.json());
console.log(res);curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "MtCaptchaClassification",
"websiteURL": "https://example.com",
"images": ["base64-captcha-image"],
"module": "mtcaptcha",
"maxLength": 8
}
}'