---
title: "Multi-lingual Document Processing"
description: "Process documents in 60+ languages with automatic language detection and OCR configuration"
---

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

# Multi-lingual Document Processing

Process documents in 60+ languages with automatic language detection. No configuration required.

---

## Sample Document

[UN document in Spanish (PDF)](https://cdn.reducto.ai/samples/un-document-spanish.pdf)

> **Note:** Download the sample: [un-document-spanish.pdf](https://cdn.reducto.ai/samples/un-document-spanish.pdf)

---

## Supported Languages

Reducto automatically detects and processes these languages:

**View all 60+ supported languages**

| Region | Languages |
| - | - |
| **European** | English, German, French, Spanish, Portuguese, Italian, Dutch, Polish, Romanian, Czech, Greek, Hungarian, Swedish, Danish, Finnish, Norwegian, Bulgarian, Croatian, Slovak, Slovenian, Lithuanian, Latvian, Estonian, Albanian, Icelandic, Catalan, Serbian, Macedonian, Belarusian, Ukrainian |
| **Asian** | Chinese, Japanese, Korean, Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Punjabi, Thai, Vietnamese, Indonesian, Malay, Filipino/Tagalog, Khmer, Lao, Nepali |
| **Middle Eastern** | Arabic, Hebrew, Persian, Turkish |
| **Other** | Russian, Armenian, Yiddish, Afrikaans |

> **Tip:** The standard OCR handles **mixed-language documents** automatically. A single document can contain text in multiple languages without any special configuration.

---

## Create API Key

1. **Open Studio**

   Sign in to Studio and open the [API keys page](https://studio.reducto.ai/api-keys).

   <img src="/cookbooks/dummy-docs/screenshots/api-1.png" alt="Studio home page with API Keys in sidebar" />
2. **View API Keys**

   The API Keys page shows your existing keys. Click **Create API key** in the top right corner.

   <img src="/cookbooks/dummy-docs/screenshots/api-2.png" alt="API Keys page with Create button" />
3. **Configure Key**

   In the modal, enter a name for your key and set an expiration policy (or select "Never" for no expiration). Click **Create key**.

   <img src="/cookbooks/dummy-docs/screenshots/api-3.png" alt="New API Key modal with name and expiration fields" />
4. **Copy Your Key**

   Copy your new API key and store it securely. You won't be able to see it again after closing this dialog.

   <img src="/cookbooks/dummy-docs/screenshots/api-4.png" alt="Copy API key dialog" />

   Set the key as an environment variable:

   ```bash
   export REDUCTO_API_KEY="your-api-key-here"
   ```

---

## Studio Walkthrough

New to Studio? The [Parse Pipeline](/studio-parse) guide covers every setting used below.

1. **Upload and Configure OCR**

   Upload your multilingual document to [studio.reducto.ai](https://studio.reducto.ai). In the **Parse** view, the **Configure** tab shows the model and **OCR features** settings.

   <img src="/cookbooks/dummy-docs/screenshots/multilingual-parse-1.png" alt="Parse view with Spanish UN document showing OCR settings" />

   Key settings:

   - **Extraction Mode**: Use `ocr` for scanned documents where text is embedded as images. Use `hybrid` (default) for mixed documents where some pages are native text and others are scans.
   - **OCR System**: Keep `standard` (default) for 60+ language support. The `legacy` system only supports Germanic languages.
2. **View Extracted Text**

   Click **Run** and switch to the **Result** tab. Reducto extracts text in the original language with proper character encoding.

   <img src="/cookbooks/dummy-docs/screenshots/multilingual-parse-result.png" alt="Parse results showing extracted Spanish text from UN document" />

   Notice how the Spanish text is extracted accurately, including accented characters (á, é, í, ó, ú, ñ) and proper formatting.

---

## Processing Non-English Documents

### Basic Usage

No special configuration needed - just parse as usual:

**Python**

```python
from pathlib import Path
from reducto import Reducto

client = Reducto()

# Upload Spanish document
upload = client.upload(file=Path("documento_español.pdf"))

# Parse - language is detected automatically
result = client.parse.run(input=upload.file_id, settings={"model": "r-1"})

# Access extracted text
for chunk in result.result.chunks:
    print(chunk.content)
```

**JavaScript**

```javascript
import Reducto from "reductoai";
import fs from "fs";

const client = new Reducto();

// Upload Spanish document
const upload = await client.upload({
  file: fs.createReadStream("documento_español.pdf"),
});

// Parse - language is detected automatically
const result = await client.parse.run({ input: upload.file_id, settings: { model: "r-1" } });

// Access extracted text
for (const chunk of result.result.chunks) {
  console.log(chunk.content);
}
```

### Output Example

From a Spanish UN Security Council document:

```
Naciones Unidas
S/2025/856

Consejo de Seguridad

Distr. general
30 de diciembre de 2025
Español
Original: inglés

Carta de fecha 29 de diciembre de 2025 dirigida a la
Presidencia del Consejo de Seguridad por el Secretario General

Tengo el honor de referirme a la resolución 2719 (2023) del Consejo de
Seguridad, por la que el Consejo estableció el marco para financiar las
operaciones de paz...
```

---

## OCR Configuration

r-1 reads 60+ languages, scans, and handwriting without OCR settings. `ocr_system` and `extraction_mode` only apply to legacy Parse. See [Legacy Parse settings](/configs/parse/legacy).

## Mixed-Language Documents

Documents containing multiple languages are handled automatically:

**Python**

```python
# A document with English headers and Spanish content
result = client.parse.run(input=upload.file_id, settings={"model": "r-1"})

# Both languages are extracted correctly
# No configuration needed
```

**JavaScript**

```javascript
// A document with English headers and Spanish content
const result = await client.parse.run({ input: upload.file_id, settings: { model: "r-1" } });

// Both languages are extracted correctly
// No configuration needed
```

### Example: Bilingual Contract

```
AGREEMENT / ACUERDO

This agreement ("Agreement") is entered into between...
Este acuerdo ("Acuerdo") se celebra entre...

TERMS AND CONDITIONS / TÉRMINOS Y CONDICIONES
1. Definitions / Definiciones
   The following terms shall have the meanings set forth below...
   Los siguientes términos tendrán los significados establecidos a continuación...
```

Reducto extracts both English and Spanish text accurately.

---

## Extracting Structured Data

Extract structured data from non-English documents using schemas with descriptive field hints:

**Python**

```python
# Schema for Spanish invoice
spanish_invoice_schema = {
    "type": "object",
    "properties": {
        "numero_factura": {
            "type": "string",
            "description": "Número de factura / Invoice number"
        },
        "fecha": {
            "type": "string",
            "description": "Fecha de la factura / Invoice date"
        },
        "proveedor": {
            "type": "object",
            "description": "Información del proveedor / Vendor information",
            "properties": {
                "nombre": {"type": "string"},
                "direccion": {"type": "string"},
                "nif": {"type": "string", "description": "NIF/CIF fiscal ID"}
            }
        },
        "cliente": {
            "type": "object",
            "description": "Información del cliente / Customer information",
            "properties": {
                "nombre": {"type": "string"},
                "direccion": {"type": "string"}
            }
        },
        "lineas": {
            "type": "array",
            "description": "Líneas de factura / Line items",
            "items": {
                "type": "object",
                "properties": {
                    "descripcion": {"type": "string"},
                    "cantidad": {"type": "number"},
                    "precio_unitario": {"type": "number"},
                    "importe": {"type": "number"}
                }
            }
        },
        "subtotal": {"type": "number"},
        "iva": {"type": "number", "description": "IVA / VAT amount"},
        "total": {"type": "number"}
    }
}

result = client.extract.run(
    input=upload.file_id,
    instructions={"schema": spanish_invoice_schema},
    parsing={"settings": {"model": "r-1"}},
)

print(f"Factura: {result.result['numero_factura']}")
print(f"Total: €{result.result['total']}")
```

**JavaScript**

```javascript
// Schema for Spanish invoice
const spanishInvoiceSchema = {
  type: "object",
  properties: {
    numero_factura: {
      type: "string",
      description: "Número de factura / Invoice number"
    },
    fecha: {
      type: "string",
      description: "Fecha de la factura / Invoice date"
    },
    proveedor: {
      type: "object",
      description: "Información del proveedor / Vendor information",
      properties: {
        nombre: { type: "string" },
        direccion: { type: "string" },
        nif: { type: "string", description: "NIF/CIF fiscal ID" }
      }
    },
    cliente: {
      type: "object",
      description: "Información del cliente / Customer information",
      properties: {
        nombre: { type: "string" },
        direccion: { type: "string" }
      }
    },
    lineas: {
      type: "array",
      description: "Líneas de factura / Line items",
      items: {
        type: "object",
        properties: {
          descripcion: { type: "string" },
          cantidad: { type: "number" },
          precio_unitario: { type: "number" },
          importe: { type: "number" }
        }
      }
    },
    subtotal: { type: "number" },
    iva: { type: "number", description: "IVA / VAT amount" },
    total: { type: "number" }
  }
};

const result = await client.extract.run({
  input: upload.file_id,
  instructions: { schema: spanishInvoiceSchema },
  parsing: { settings: { model: 'r-1' } },
});

const data = result.result[0];  // Note: result.result is an array
console.log(`Factura: ${data.numero_factura}`);
console.log(`Total: €${data.total}`);
```

> **Tip:** Include field descriptions in both the source language and English to improve extraction accuracy.

---

## Tips

For best results with non-English documents:

1. **Use high-quality scans** (300 DPI minimum) for better OCR accuracy
2. **Provide bilingual field descriptions** in extraction schemas to improve accuracy

---

## Next Steps

- [OCR Settings](/configs/parse/settings): Full OCR configuration reference

- [Agentic Modes](/configs/parse/enrichment): AI-enhanced text correction

- [Batch Processing](/cookbooks/batch-processing): Process many documents at scale

- [Extract API](/extract/overview): Structured data extraction

Source: https://docs.reducto.ai/cookbooks/multilingual-processing/index.mdx
