> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unrealapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Img to txt

`POST` `/img-to-txt`

Grabs the text from an image and returns it

## Headers

| Name   | Value                |
| ------ | -------------------- |
| apikey | 28-Character API Key |

## Body

| Name       | Type     | Description                    |
| ---------- | -------- | ------------------------------ |
| image\_url | string\* | The image to get the text of   |
| lang       | string   | The language (Defaults to eng) |

## Response

<Tabs>
  <Tab title="200: OK">
    ```json theme={null}
      {
        "text": "Welcome to the server!\nPlease read the rules in #info.",
        "confidence": 87.45,
        "language": "eng",
        "original_image": "https://example.com/welcome-screenshot.png"
      }
    ```
  </Tab>

  <Tab title="400: Bad Request">
    **Error**\
    You didn't provide a valid:

    * image\_url
    * lang

    Check `response.error`
  </Tab>

  <Tab title="401: Unauthorized">
    **Error**\
    You didn't provide a working apikey.
  </Tab>

  <Tab title="429: Too Many Requests">
    You sent too many requests too quickly. Try again later.
  </Tab>
</Tabs>
