# ImageToTextTask

# Object structure

Parameter Type Required Value
type String yes ImageToTextTask
subType String no facebook bidv vietcombank
body String yes File body encoded in base64*. Make sure to send it without line breaks.
numeric int no 1 - if captcha contains numbers only.

# Request body example

{
  "clientKey": "f95f25ea9e71408d8f272d523f8c281d",
  "task": {
    "type": "ImageToTextTask",
    "subType": "facebook",
    "body": "BASE64_BODY_HERE!"
  }
}

# Response example

{
  "errorId": 0,
  "taskId": 407533072
}

# Getting result

Use the getTaskResult method to get the captcha solution. Depending on the system load, you will receive an answer within an interval from 300ms to 6s

# Response example

{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "text": "answer"
  }
}