The technical content of this page is available in English.
Введение / OCR (изображение в текст)
OCR (изображение в текст)активно
POSThttps://api.solucaptcha.com/createTask
Solve OCR (image-to-text) tasks. Send a Base64 image and receive the extracted text.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
clientKey | string | Yes | Your private API key. |
task.type | string | Yes | Must be ocr. |
task.base64 | string | Yes | Base64-encoded image (or data URI). |
Example
curl --request POST \
--url https://api.solucaptcha.com/createTask \
--header "Content-Type: application/json" \
--data '{ "clientKey": "YOUR_API_KEY", "task": { "type": "ocr", "base64": "iVBORw0KGgo..." } }'
Result
{ "errorId": 0, "status": "completed", "solution": { "value": "k4t9", "text": "k4t9" } }