# 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 (PDFs, scans, images) into clean, naturally ordered text, 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.

|                                             **Intelligence**                                            |                                                                **Speed**                                                               |                                                                      **Sovereignty**                                                                     |                                                               **Input**                                                              |                                                                 **Output**                                                                |
| :-----------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------: |
| ![Intelligence active](/files/dnDi7yuqXqkBFqwaxdnm) ![Intelligence active](/files/dnDi7yuqXqkBFqwaxdnm) | ![Speed active](/files/evfYW3bq4dTBLlZH3dQf) ![Speed active](/files/evfYW3bq4dTBLlZH3dQf) ![Speed active](/files/evfYW3bq4dTBLlZH3dQf) | ![Sovereignty active](/files/bNpzGRJfez9SidEjNCoy) ![Sovereignty active](/files/bNpzGRJfez9SidEjNCoy) ![Sovereignty active](/files/bNpzGRJfez9SidEjNCoy) | ![Model icon](/files/WcxmwJ2hD7xtBeHiOQqH) ![Model icon](/files/DNwY25ymIs7iVH2CHTv1) ![Audio inactive](/files/PRglWWEC5Zoc5fgynNLM) | ![Text active](/files/45qlqURbT8c2Ekr8HJfK) ![Image inactive](/files/0mPVwOtrYhZrpz9clC3D) ![Audio inactive](/files/PRglWWEC5Zoc5fgynNLM) |
|                                                *Moderate*                                               |                                                                 *High*                                                                 |                                                                          *High*                                                                          |                                                                *Image*                                                               |                                                                   *Text*                                                                  |

## Central parameters

**Description:** 1B-parameter end-to-end vision-language model for document OCR. Converts PDFs, 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.

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

## IONOS CLOUD AI Model Hub Lifecycle and Alternatives

| **IONOS 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
}
```

{% 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. In addition to the [<mark style="color:blue;">contract-wide rate limits</mark>](/cloud/ai/ai-model-hub/how-tos/rate-limits.md), no model-specific limits apply.


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
