System Requirements
Tinbox requires Python 3.12 or higher to run properly.
- Python: 3.12 or 3.13
- Operating System: macOS, Linux, or Windows
- System Tools: Poppler (required for PDF processing)
Python Installation
- macOS
- Linux
- Windows
Installing Tinbox
Tinbox is installed from source. First, clone the repository:
- Recommended (All Features)
- PDF Only
- DOCX Only
- Base Package
Install Tinbox with all features enabled (PDF, DOCX, image processing):This includes:
- PDF processing with pdf2image
- Word document (DOCX) support
- Image processing capabilities
System Dependencies
Poppler (Required for PDF Processing)
Poppler is required to convert PDF pages to images for vision-capable models:- macOS
- Linux (Ubuntu/Debian)
- Linux (Fedora)
- Windows
API Keys Setup
Tinbox requires API keys to access LLM providers. Set up the keys for your preferred provider:Getting API Keys
OpenAI
Get your OpenAI API key for GPT-4o and GPT-5 models
Anthropic
Get your Anthropic API key for Claude models
Google AI
Get your Google API key for Gemini models
Local Models with Ollama
Want to use local models without API costs? Install Ollama for free local translation.
Install Ollama
Download and install from ollama.ai
Verify Installation
Run the diagnostic tool to check your setup:- ✅ Python version (3.12+)
- ✅ Required system tools (poppler)
- ✅ Optional dependencies (pdf2image, python-docx)
- ✅ API key configuration
Example Output
Development Installation
For contributors and developers
For contributors and developers
If you want to contribute to Tinbox or modify the source code:This includes additional tools:
- pytest for testing
- black for code formatting
- mypy for type checking
- ruff for linting
- pytest-cov for coverage reports
Troubleshooting
PDF translation fails
PDF translation fails
Problem: Error when translating PDFsSolutions:
- Install poppler:
brew install poppler(macOS) orsudo apt-get install poppler-utils(Linux) - Use a vision-capable model: GPT-4o, Claude Sonnet, or Gemini Pro Vision
- Install PDF extras:
pip install tinbox[pdf]
No module named pdf2image
No module named pdf2image
Problem: Missing PDF processing librarySolution: Install PDF support:
API key not found
API key not found
Problem: “API key not configured” errorSolution: Set your API key as an environment variable:Make it permanent by adding to
~/.bashrc or ~/.zshrcTranslation times out
Translation times out
Problem: Large documents timeout or failSolutions:
- Use smaller chunks:
--context-size 1500 - Enable checkpointing:
--checkpoint-dir ./checkpoints - Use page-by-page for PDFs:
--algorithm page
Next Steps
Quick Start
Jump into translating your first document
Introduction
Learn more about Tinbox features and capabilities