Skip to content
Log in

Multi-lingual Document Processing

Process documents in 60+ languages with automatic language detection and OCR configuration

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


Sample Document


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

Create API Key

  1. Open Studio

    Sign in to Studio and open the API keys page.

    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.

    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.

    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.

    Copy API key dialog

    Set the key as an environment variable:

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

Studio Walkthrough

New to Studio? The Parse Pipeline guide covers every setting used below.

  1. Upload and Configure OCR

    Upload your multilingual document to studio.reducto.ai. In the Parse view, the Configure tab shows the model and OCR features settings.

    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.

    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:

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)
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.

Mixed-Language Documents

Documents containing multiple languages are handled automatically:

# 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
// 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:

# 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']}")
// 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}`);

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

Type to search…

escClose