# ImageToTextTask

# Object structure

Parameter Type Required Possible values Value
type string yes ImageToTextTask Defines the type of the task
body string yes File body encoded in base64*. Make sure to send it without line breaks.
comment string no Passing the module name to recognize a specific captcha can be useful in cases of working with a specific service
The list of available module names:
- FACEBOOK
- AMAZON
- ...
math bool no true, false false: undefined;
true: if captcha requires a mathematical operation (for example: captcha 2 + 6 = will return a value of 8)
numeric int no 0,1 1 - if captcha contains numbers only.
# Request body example
{
  "clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
  "task": {
    "type":"ImageToTextTask",
    "body":"BASE64_BODY_HERE!"
  }
}
# Response example
{
  "errorId":0,
  "taskId":407533072
}

# Getting result

Use the result 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"
  }
}