✓ Verified 💻 Development ✓ Enhanced Data

Mistral Ocr

Convert PDF/images to Markdown/JSON/HTML using Mistral OCR API.

Rating
4.8 (440 reviews)
Downloads
731 downloads
Version
1.0.0

Overview

Convert PDF/images to Markdown/JSON/HTML using Mistral OCR API.

Complete Documentation

View Source →

⚠️ Privacy Warning - 隐私警告

IMPORTANT - READ BEFORE INSTALLING:

This skill uploads your files to Mistral's cloud servers for OCR processing.

Do NOT use with sensitive or confidential documents unless:

  • You trust Mistral's data handling policies
  • You have reviewed Mistral's privacy policy
  • You accept that file contents will be transmitted and processed remotely
For sensitive documents, use offline/local OCR tools instead.


Mistral OCR Skill

A powerful OCR tool that converts PDF files and images into Markdown, JSON, or HTML formats using Mistral's state-of-the-art OCR API.

Installation

bash
# Clone or download this repository
git clone https://github.com/YZDame/Mistral-OCR-SKILL.git
cd Mistral-OCR-SKILL

# Install dependencies
pip install -r requirements.txt

🔑 API Key Setup (Required)

Get your API key: 👉 https://console.mistral.ai/home

Set the environment variable:

bash
export MISTRAL_API_KEY=your_api_key

CLI Usage

bash
cd scripts

# Process PDF to Markdown
python3 mistral_ocr.py -i input.pdf

# Process PDF to JSON
python3 mistral_ocr.py -i input.pdf -f json

# Specify output directory
python3 mistral_ocr.py -i input.pdf -o ~/my_ocr_results

Arguments

FlagDescription
-i, --inputInput file path (required)
-f, --formatOutput format: markdown/json/html (default: markdown)
-o, --outputOutput directory

Data Privacy

What happens to your files:

  • Files are uploaded to Mistral's OCR API
  • Files are processed on Mistral servers
  • Processing results are returned to you
  • Files are not stored on Mistral servers (per Mistral policy)
For more details, see: https://mistral.ai/privacy-policy

License

MIT

Installation

Terminal bash

openclaw install mistral-ocr
    
Copied!

💻Code Examples

pip install -r requirements.txt

pip-install--r-requirementstxt.txt
## 🔑 API Key Setup (Required)

**Get your API key:**
👉 https://console.mistral.ai/home

**Set the environment variable:**
example.sh
# Clone or download this repository
git clone https://github.com/YZDame/Mistral-OCR-SKILL.git
cd Mistral-OCR-SKILL

# Install dependencies
pip install -r requirements.txt
example.sh
cd scripts

# Process PDF to Markdown
python3 mistral_ocr.py -i input.pdf

# Process PDF to JSON
python3 mistral_ocr.py -i input.pdf -f json

# Specify output directory
python3 mistral_ocr.py -i input.pdf -o ~/my_ocr_results

Tags

#web_and-frontend-development #api #json

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author yzdame
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install mistral-ocr