Documentation Index
Fetch the complete documentation index at: https://mintlify.com/strickvl/tinbox/llms.txt
Use this file to discover all available pages before exploring further.
Your First Translation
Let’s translate a document in three simple steps:Set Your API Key
Choose your preferred LLM provider and set the API key:
Don’t have an API key? See the Installation guide for details on getting one.
Run Your First Translation
Translate a text document to German:The translation will be printed to your console.
Basic Examples
Text Documents
Translating text files is the simplest use case:PDF Documents
Word Documents (DOCX)
Model Providers
Tinbox supports multiple LLM providers:- OpenAI
- Anthropic (Claude)
- Google (Gemini)
- Ollama (Local)
GPT-4o and GPT-5 both support vision for PDF translation.
Real-World Example
Let’s translate a story from English to German with checkpointing:Advanced Features
Glossary for Consistent Terminology
Maintain consistent translations of technical terms:Glossary File Format
Create a JSON file with term mappings:terms.json
Cost Control
Prevent unexpected expenses:Reasoning Effort
Control translation quality vs. cost:Output Formats
Choose how you want your translation output:- Text (Default)
- JSON
- Markdown
Best Practices by Document Type
PDFs
- Use
--algorithm page - Requires vision-capable model
- Consider
--pdf-dpi 300for higher quality
Large Text Files
- Use context-aware algorithm (default)
- Enable checkpointing
- Adjust
--context-sizeas needed
Technical Documents
- Enable glossary support
- Save terms for future use
- Consider higher reasoning effort
Cost-Sensitive Projects
- Always use
--dry-runfirst - Set
--max-costlimits - Use minimal reasoning effort
- Consider Ollama for local models
Common Workflows
Batch Translation
Translate multiple documents efficiently:Resume Interrupted Translation
If a translation is interrupted, simply rerun with the same checkpoint directory:Troubleshooting
Translation quality is poor
Translation quality is poor
Try these improvements:
- Increase reasoning effort:
--reasoning-effort high - Use a better model:
openai:gpt-5-2025-08-07oranthropic:claude-3-sonnet - Enable glossary:
--glossaryfor consistent terminology - Specify source language:
--from en(don’t rely on auto-detect)
PDF translation not working
PDF translation not working
Check these requirements:
- Poppler installed: Run
tinbox doctorto verify - Using vision-capable model: GPT-4o, Claude Sonnet, or Gemini Pro Vision
- PDF extras installed:
pip install tinbox[pdf]
Too expensive
Too expensive
Reduce costs with:
- Use local Ollama models (free)
- Set
--reasoning-effort minimal - Set
--max-costlimits - Use
--dry-runto preview costs - Smaller context size:
--context-size 1500
Translation timing out
Translation timing out
For large documents:
- Enable checkpointing:
--checkpoint-dir ./checkpoints - Reduce chunk size:
--context-size 1500 - For PDFs, use:
--algorithm page
Next Steps
Command Reference
Complete guide to all CLI options and flags
Translation Algorithms
Learn about different translation strategies
Model Providers
Detailed comparison of LLM providers
Advanced Usage
Custom splitting, glossaries, and optimization
Need help? Run
tinbox doctor to diagnose issues or check our troubleshooting guide.