Use OpenRouter or another AI service

Pro1 min read

All guides

Lango7 Pro works with any service that speaks the OpenAI API format. OpenRouter is the easiest: one key gives you models from many companies, paid from one balance. The same steps work for Groq, DeepSeek, Mistral, or a model you run yourself with Ollama or LM Studio.

Get an OpenRouter key

  1. Go to openrouter.ai and sign up.
  2. Open Credits and add credit.
  3. Open Keys and click Create key. You can set a credit limit on the key.
  4. Copy the key. It starts with sk-or-.
  5. Pick a model on openrouter.ai/models and copy its ID, for example google/gemini-2.5-flash.

Add it to Lango7

  1. Go to Translate → Settings → Translation engine.
  2. In the OpenAI-compatible box, paste the key.
  3. Open Server and model and fill in:
    Name: OpenRouter
    Base URL: https://openrouter.ai/api/v1
    Model: the model ID you copied
  4. Click Test and save.

To keep the key out of the database, add define( 'LANGO7_COMPATIBLE_KEY', '…' ); to wp-config.php instead.

Other services

  • Use the base URL from the service’s API documentation. It usually ends in /v1.
  • A model running on your own computer, such as Ollama, needs no key. Its base URL is usually http://localhost:11434/v1, and only works if WordPress runs on the same machine.
  • Tick JSON mode only if translations come back with stray text and the service supports it.
  • Small models often get placeholders wrong. Check a few pages before you translate the whole site.