> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/ai/ai-model-hub/models/ocr-models/lightonocr-2-1b.md).

# LightOnOCR-2-1B

**Summary:** LightOnOCR-2-1B is a compact 1B-parameter end-to-end multilingual vision-language model developed by LightOn. It converts document images, such as scans and photos, into clean, naturally ordered text while handling complex layouts, including tables, multi-column documents, and scientific notation. It is available through the <code class="expression">space.vars.ionos\_cloud</code> OpenAI-compatible API for production-ready OCR.

The model accepts image input only. PDFs must be converted to images before being sent to the API.

|                                                                                                                                                                                                                                     **Intelligence**                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                         **Speed**                                                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                        **Input**                                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                          **Output**                                                                                                                                                                                                                                                                                                                                         |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| ![Intelligence active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-b23196ddc0cba1be0b981aa5572379cec1538be3%2Fai-model-hub-intelligence.png?alt=media) ![Intelligence active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-b23196ddc0cba1be0b981aa5572379cec1538be3%2Fai-model-hub-intelligence.png?alt=media) | ![Speed active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-be3201cb2eba83650220699adf5b3d9120c83377%2Fai-model-hub-speed.png?alt=media) ![Speed active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-be3201cb2eba83650220699adf5b3d9120c83377%2Fai-model-hub-speed.png?alt=media) ![Speed active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-be3201cb2eba83650220699adf5b3d9120c83377%2Fai-model-hub-speed.png?alt=media) | ![Model icon](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-5836c279ec99bb7eede99a473d3e251311a90f71%2Fai-model-hub-text.png?alt=media) ![Model icon](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-c461ddda51ca34c71f1e06542247105a4745c243%2Fai-model-hub-image.png?alt=media) ![Audio inactive](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-8b0332538fcac6644893a504f9fbbd1ba2b56d21%2Fai-model-hub-audio.png?alt=media) | ![Text active](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-cc6707e286bceb4641047e45e095950e8db880fd%2Fai-model-hub-text.png?alt=media) ![Image inactive](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-bac2752d06f18e86dc7f0b9531ab32ec58f30aec%2Fai-model-hub-image.png?alt=media) ![Audio inactive](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-8b0332538fcac6644893a504f9fbbd1ba2b56d21%2Fai-model-hub-audio.png?alt=media) |
|                                                                                                                                                                                                                                        *Moderate*                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                           *High*                                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                         *Image*                                                                                                                                                                                                                                                                                                                                        |                                                                                                                                                                                                                                                                                                                                            *Text*                                                                                                                                                                                                                                                                                                                                           |

## Central parameters

**Description:** 1B-parameter end-to-end vision-language model for document OCR. Converts scans and images into clean, naturally ordered Markdown text. Handles complex layouts including tables, multi-column documents, scientific notation with LaTeX, and scanned material. The model always outputs Markdown-formatted text; text prompts are accepted by the API but do not influence the output format. The model accepts image input only. PDFs must be converted to images before being sent to the API.

**Model identifier:** `lightonai/LightOnOCR-2-1B`

## IONOS CLOUD AI Model Hub Lifecycle and Alternatives

| **IONOS CLOUD start date** | **End of Life** | **Alternative** | **Successor** |
| :------------------------: | :-------------: | :-------------: | :-----------: |
|     *February 23, 2026*    |       N/A       |        —        |       —       |

## Origin

|                               **Provider**                              | **Country** |                                             **License**                                             | **Flavor** | **Release** |
| :---------------------------------------------------------------------: | :---------: | :-------------------------------------------------------------------------------------------------: | :--------: | :---------: |
| [<mark style="color:blue;">**LightOn**</mark>](https://www.lighton.ai/) |    France   | [<mark style="color:blue;">**Apache 2.0**</mark>](https://www.apache.org/licenses/LICENSE-2.0.html) |    Base    |    *2026*   |

## Technology

| **Context window** | **Parameters** |     **Architecture**    | **Multilingual** |                                          **Further details**                                          |
| :----------------: | :------------: | :---------------------: | :--------------: | :---------------------------------------------------------------------------------------------------: |
|        *16k*       |      *1B*      | *Vision-Language Model* |       *Yes*      | [<mark style="color:blue;">**Hugging Face**</mark>](https://huggingface.co/lightonai/LightOnOCR-2-1B) |

## Modalities

| **Text** | **Image** |   **Audio**   |
| :------: | :-------: | :-----------: |
|  Output  |   Input   | Not supported |

## Endpoints

| **Chat Completions** | **Embeddings** | **Image generation** |
| :------------------: | :------------: | :------------------: |
|  v1/chat/completions |  Not supported |     Not supported    |

### OCR Example

```json
{
  "model": "lightonai/LightOnOCR-2-1B",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/document.png"
          }
        }
      ]
    }
  ],
  "max_tokens": 4096,
  "temperature": 0.2,
  "top_p": 0.9
}
```

**Note:** LightOnOCR-2-1B accepts image input only. PDF input is not supported. If your source document is a PDF, convert each page to an image (for example, PNG or JPEG) before sending it to the API.

{% hint style="info" %}
**Note:** LightOnOCR-2-1B always outputs Markdown-formatted text (including LaTeX spans for mathematical notation). The output format is embedded in the model weights and cannot be changed through text prompts. The API accepts a text field in the message content, but the model does not condition its output on it.
{% endhint %}

## Features

| **Streaming** | **Reasoning** | **Tool calling** |
| :-----------: | :-----------: | :--------------: |
| Not supported | Not supported |   Not supported  |

## Rate limits

Rate limits ensure fair usage and reliable access to the AI Model Hub. The [<mark style="color:blue;">default rate limits</mark>](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/rate-limits.md) apply to this model, separately from other models.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/ai/ai-model-hub/models/ocr-models/lightonocr-2-1b.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
