askill
mistral-ocr

mistral-ocrSafety 95Repository

OCR-based PDF/image to Markdown using Mistral AI. Best for scanned documents and images. Requires MISTRAL_API_KEY.

0 stars
1.2k downloads
Updated 3/15/2026

Package Files

Loading files...
SKILL.md

Mistral OCR

OCR conversion using Mistral AI API. Excellent for scanned documents, images with text, and complex layouts.

Prérequis

  1. Copy .env.example to .env
  2. Add your MISTRAL_API_KEY to .env

Usage

# From the mistral-ocr directory
cd .opencode/skill/convert-to-md/converters/mistral-ocr

# Basic usage
uv run scripts/mistral_ocr.py input.pdf -o output_mistral.md

# With options
uv run scripts/mistral_ocr.py input.pdf -o output_mistral.md --table-format html
uv run scripts/mistral_ocr.py input.pdf -o output_mistral.md --no-images

Options

OptionDescription
-o, --outputOutput file path (default: {input}_mistral.md)
--table-formatmarkdown (default) or html
--no-imagesExclude base64 images from output

Supported Formats

  • PDF (.pdf)
  • Images: PNG, JPG, JPEG, GIF, WEBP

Notes

  • Best results for scanned documents and images
  • Preserves table structure
  • Can extract text from images within PDFs
  • API usage incurs costs based on Mistral pricing

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 3/17/2026

Well-structured OCR skill with clear usage instructions and options. Covers prerequisites, commands, and supported formats. Score penalized slightly due to deep nesting and 'skills_archived' path suggesting internal-only usage. Otherwise actionnable and clear with good safety profile.

95
80
68
76
82

Metadata

Licenseunknown
Version-
Updated3/15/2026
Publisherpascalandy

Tags

apici-cd