Extract data from chart images using Mistral Pixtral Vision. 90%+ accuracy.
# API request
curl -X POST "https://chart2csv.kikuai.dev/extract" \
-F "file=@chart.png"Chart2CSV/
├── api/ # FastAPI REST API
│ └── main.py # API endpoints
├── chart2csv/ # Core Python package
│ ├── core/ # Extraction logic
│ │ ├── llm_extraction.py # Mistral Pixtral LLM
│ │ ├── pipeline.py # CV pipeline (fallback)
│ │ └── ocr.py # OCR for axis labels
│ └── cli/ # Command-line interface
├── deploy/ # Deployment scripts
│ ├── deploy.sh # Server deployment
│ └── nginx.conf # Nginx config
├── scripts/ # Development utilities
├── Dockerfile # Container build
├── docker-compose.yml # Container orchestration
├── requirements.txt # Python dependencies
└── setup.py # Package installation
| Feature | Description |
|---|---|
| 🧠 Mistral Pixtral | 90%+ accuracy with vision LLM |
| ⚡ Zero-Click | Automatic chart understanding |
| 📊 Multi-Chart | Line, scatter, bar charts |
| 🔧 Manual Mode | Calibration endpoint for edge cases |
| 🌐 REST API | Production-ready FastAPI |
Powered by Mistral AI
| Endpoint | Description |
|---|---|
POST /extract |
LLM extraction (default) |
POST /extract/calibrated |
Manual calibration |
GET /docs |
Swagger UI |
GET /health |
Health check |
pip install -e .| Variable | Description |
|---|---|
MISTRAL_API_KEY |
Mistral AI API key (required) |
AGPL-3.0. Copyright (c) 2025 KikuAI OÜ