> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/raw-text-ocr-models/ocr.md).

# Raw Text Model Overview

## Use Cases

When the entire text of a document needs to be extracted, along with position information for each word.

We use the term "OCR" literally, as the acronym for "Optical Character Recognition".

Meaning the exact text is returned as raw data, not parsed into structured data as fields.

{% hint style="info" %}
**Most users looking for a generic "Mindee OCR" or to "OCR a document" are likely looking for Extraction: c**onsult the [Extraction model documentation](/extraction-models/extraction-models-overview.md).
{% endhint %}

A file sent to the Raw Text OCR Model may have any number of pages, [within limits](/integrations/technical-limitations.md#file-limits).

### Difference Between Raw Text *Model* and Raw Text *Option*

The [Extraction model](/extraction-models/extraction-models-overview.md) has the [Raw Text optional feature](/extraction-models/optional-features/raw-text-full-ocr.md) that can be used in similar uses cases, depending on your needs.

**Raw Text option:** returns the entire text for each page as a single string.

**Raw Text model:** in addition to the single string per page, also returns each word on the page. Each word has position information and text content.

### Language Support

Almost all languages are fully supported, since only the writing system is involved in detection.

In other words, as long as the system can recognize the glyphs (letters in an alphabet), the text will be extracted.

It's much easier and shorter to list what is **not** supported:

* Ancient languages with no equivalent modern writing system such as cuneiform, Egyptian hieroglyphs, ancient Maya, etc.
* Modern languages with uncommon writing systems such as Blackfoot, Cherokee, Inuktitut, etc.

## Create a Raw Text OCR Model

Raw OCR models are always custom, there are no templates available in the Catalog.

Each OCR model gets its own unique model ID when you create it.

1. To create a OCR model, click on **Models**, and then click on **Create your document AI model**.
2. Scroll to the **Document Utilities** section, click on **OCR.**\
   This step will also generate the model's unique ID.
3. You can now use the **Live Test** tab to process documents.<br>

Your OCR model is now available in your **Models** tab:

<figure><img src="/files/YThWXqYUf397uDSxX7wv" alt=""><figcaption></figcaption></figure>

Here is a step-by-step tutorial that shows you how to properly create an OCR utility:

{% @supademo/embed url="<https://app.supademo.com/demo/cmlrrputf0pnh1189ay3tsdkt>" demoId="cmlrrputf0pnh1189ay3tsdkt" %}

## Integration

Once your OCR model is created and tested, integration documentation is provided in the "Documentation" page, or here: [OCR Quick Start](/raw-text-ocr-models/sdk-integration/ocr-quick-start.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mindee.com/raw-text-ocr-models/ocr.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
