Skip to main content
The IntelliJ Translation Plugin adds AI translation capabilities directly into JetBrains IDEs. Connect it to CometAPI to translate code and text without leaving your editor.

Prerequisites

  • IntelliJ IDEA or another JetBrains IDE
  • Translation Plugin installed — search for Translation in the JetBrains Marketplace
    JetBrains Marketplace showing the Translation plugin
  • A CometAPI account with an active API key

Setup

1

Get your CometAPI API key

Log in to the CometAPI dashboard. Click Add API Key and copy your key.
CometAPI dashboard — API keys section
Add API Key dialog in CometAPI console
CometAPI API key and base URL
2

Configure the translation engine

Click the Translation Plugin icon in the IDE toolbar → SettingsTranslation. Select OpenAI Translation as the engine. In the settings panel on the right, enter https://api.cometapi.com in the API Endpoint field (the second field defaults to /v1/chat/completions). Paste your CometAPI key into API Key and click Confirm.
CometAPI dashboard — Add API Key button and key list
CometAPI API key details
3

Test the integration

Click Test Service in the plugin settings. A successful verification confirms the setup is working.
IntelliJ Translation Plugin test — successful result
To add custom models, enter the current model ID in the plugin’s model configuration field.
IntelliJ Translation Plugin model settings showing a custom model added