Version: 1.1.0 Author: Livvux (https://livvux.com) License: GPL2 Requires: WordPress 5.0+, PHP 7.4+
This is an addon for TranslatePress that adds AI-powered translation capabilities using modern Large Language Models (LLMs). It extends TranslatePress with four major AI translation engines:
- OpenAI (GPT-4, GPT-4o, GPT-3.5 Turbo)
- Anthropic (Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku)
- OpenRouter (Unified access to 100+ AI models)
- DeepSeek (Best price-performance ratio for translations)
TranslatePress - LLM Translation Engines enables you to automatically translate your WordPress website content using state-of-the-art AI models. Instead of traditional machine translation services, you can leverage the power of:
- OpenAI's GPT models - Known for excellent understanding of context and nuance
- Anthropic's Claude models - Highly regarded for natural, human-like translations
- OpenRouter's unified API - Access to multiple AI providers (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more) from a single interface
- DeepSeek - Exceptional translation quality at the lowest cost (~$0.14/1M input tokens)
The screenshot shows the Automatic Translation settings page where you can configure your AI translation engines.
- Switch between OpenAI, Anthropic, OpenRouter, and DeepSeek with a single setting
- Each provider offers multiple model options with different quality/cost tradeoffs
- OpenAI: GPT-4o Mini (recommended for cost/quality balance), GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo
- Anthropic: Claude 3.5 Sonnet (recommended), Claude 3.5 Haiku (fast), Claude 3 Opus
- OpenRouter: Access to Claude, GPT, Gemini, Llama, Mistral, DeepSeek, and more
- DeepSeek: DeepSeek Chat (recommended - best value), DeepSeek Reasoner (R1)
- Preserves HTML tags and formatting
- Maintains placeholders (%s, %d, {{variables}})
- Handles complex sentence structures and context
- Professional-quality translations suitable for production
- Secure password fields for API keys
- Real-time API key validation
- Clear error messages for common issues (invalid keys, rate limits, quota exceeded)
- Fetches available models directly from provider APIs
- Displays pricing information per model
- Caches model lists for performance
- Processes translations in batches (default: 25 strings per request)
- Respects TranslatePress quota limits
- Logs all translation requests for debugging
- Displays pricing for each model ($/1M tokens)
- Helps you choose the most cost-effective option
- Compare costs across providers before committing
- Hides TranslatePress AI upsell notices (since you have your own API keys)
- Clean integration with TranslatePress Machine Translation settings
- Model refresh buttons to fetch latest available models
- WordPress 5.0 or higher
- PHP 7.4 or higher
- TranslatePress (free or Pro) - must be installed and activated
- API keys for one or more translation providers:
- Upload the
translatepress-llm-enginesfolder to the/wp-content/plugins/directory - Activate the plugin through the "Plugins" menu in WordPress
- Navigate to TranslatePress → Automatic Translation
- Select your preferred engine (OpenAI, Anthropic, OpenRouter, or DeepSeek)
- Enter your API key
- Choose a model from the dropdown
- Save settings and start translating!
- Go to TranslatePress → Automatic Translation in your WordPress admin
- Under "Translation Engine", choose one of:
- OpenAI (GPT) - Best all-around option
- Anthropic (Claude) - Excellent for nuanced translations
- OpenRouter - Access to multiple providers with one key
- DeepSeek - Best price-performance ratio
- For OpenAI: Get key from https://platform.openai.com/api-keys
- For Anthropic: Get key from https://console.anthropic.com/settings/keys
- For OpenRouter: Get key from https://openrouter.ai/keys
- For DeepSeek: Get key from https://platform.deepseek.com/api_keys
Each provider offers different models:
- Recommended models (marked with ★) offer best value
- Higher-tier models provide better quality but cost more
- Click "Refresh Models" to fetch latest available models
Use TranslatePress's built-in translation interface:
- Go to the page/post editor
- Use the "Translate" button or translate strings directly
- The LLM will handle the translation automatically
The plugin supports translation between 80+ languages including:
- Major languages: English, German, French, Spanish, Italian, Portuguese, Dutch, Russian, Chinese, Japanese, Korean
- European languages: Polish, Swedish, Danish, Finnish, Norwegian, Czech, Greek, Hungarian, Romanian, Ukrainian, Hebrew
- Asian languages: Thai, Vietnamese, Indonesian, Hindi, Bengali, Tamil, Telugu
- Middle Eastern: Arabic, Persian, Urdu
- And many more...
- API keys are stored securely in WordPress options
- Password fields prevent accidental exposure in admin interface
- Keys are never transmitted to third parties (only to the respective AI provider)
- Never share your API keys publicly
Translation costs depend on:
- Model selected: Newer/more powerful models cost more
- Content volume: More text = more tokens = higher cost
- Target languages: Each target language requires separate translation
| Provider | Model | Input/1M Tokens | Output/1M Tokens |
|---|---|---|---|
| DeepSeek | DeepSeek Chat | $0.14 | $0.28 |
| OpenAI | GPT-4o Mini | $0.15 | $0.60 |
| Anthropic | Claude 3.5 Haiku | $1.00 | $5.00 |
| Anthropic | Claude 3.5 Sonnet | $3.00 | $15.00 |
Recommendation: DeepSeek Chat offers the best price-performance ratio - excellent translation quality at ~10x lower cost than alternatives.
- Verify you copied the key correctly (no extra spaces)
- Check that the key is active in your provider's dashboard
- Ensure the key has the necessary permissions
- Wait a few minutes before trying again
- Consider upgrading your API plan for higher limits
- Use a different provider temporarily
- Check that TranslatePress is activated
- Verify your default language is set correctly
- Check browser console for JavaScript errors
- Review TranslatePress logs for detailed error messages
- Click the "Refresh Models" button
- Check your internet connection
- Verify your API key is valid
- Some providers may require a valid API key to fetch models
This addon is NOT the same as TranslatePress AI. Here's the difference:
| Feature | TranslatePress AI | This Addon |
|---|---|---|
| Translation Engine | Proprietary API (paid license) | Your own API keys |
| Cost | License fee + usage | Pay only for API usage |
| Models | Limited selection | Access to 100+ models |
| Transparency | Black-box | Full model control |
| Flexibility | Fixed | Switch providers anytime |
This addon gives you more control, transparency, and often lower costs for high-volume translations.
For issues or questions:
- Check the TranslatePress documentation
- Verify your API keys are valid and have available quota
- Check WordPress debug logs for detailed error messages
- Visit livvux.com for updates and other plugins
- New: Added DeepSeek as translation engine
- DeepSeek Chat model - best price-performance ratio
- DeepSeek Reasoner (R1) model for complex translations
- Direct API integration with DeepSeek platform
- Updated pricing comparison in documentation
- Initial release
- Support for OpenAI (GPT-4, GPT-4o, GPT-3.5)
- Support for Anthropic (Claude 3.5, Claude 3)
- Support for OpenRouter (unified API)
- Dynamic model loading from provider APIs
- API key validation
- Pricing display for each model
- Translation quota management
- Hide TranslatePress AI upsell notices
This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- Developed by Livvux
- Built as an addon for TranslatePress
- Powered by OpenAI, Anthropic, OpenRouter, and DeepSeek
Made with ❤️ by Livvux - https://livvux.com
