AI Code With LogoAI Code With

Immersive Translate × AI Code With

Use AI Code With in Immersive Translate: third-party API / relay setup

This page shows how to connect a third-party API in Immersive Translate so you can translate web pages, PDFs, and subtitles with a custom model.

Install Immersive Translate first, then finish setup in Settings. Enter the key only in the extension, never on this page.

OpenAI custom endpoint quick reference4 settings
Custom translation service name
OpenAI
Custom API endpoint
https://api.aicodewith.ai/v1/chat/completions
API Key
sk-xxxxxxxx
Model ID
deepseek-v4-flash

Quick setup

In Immersive Translate Settings, configure built-in OpenAI: paste the full endpoint and key, then a Model ID. About 3 minutes.

Immersive Translate is a browser extension. Open Settings, choose OpenAI in Basic, fill the full endpoint and API key, then check Enter custom model name and paste a Model ID.

  1. Open Immersive Translate Settings

    Click the Immersive Translate toolbar icon, then Settings. Choose Basic on the left.

    Click the Immersive Translate toolbar icon, then Settings to open Basic settings.
  2. Fill the full endpoint and API key

    Set Translation Service to OpenAI. Set the custom service name to OpenAI, the custom API endpoint to https://api.aicodewith.ai/v1/chat/completions (include the full path), then paste the API key.

    Quick copy

    Custom translation service name

    OpenAI

    Custom API endpoint

    https://api.aicodewith.ai/v1/chat/completions

    Set Translation Service to OpenAI. Set the custom service name to OpenAI, the custom API endpoint to https://api.aicodewith.ai/v1/chat/completions, then paste the API key.
  3. Paste the Model ID

    Check Enter custom model name and paste a Model ID from the list below. Immersive Translate does not fetch the model list for you.

    Copy a Model ID

    Immersive Translate does not fetch a model list. Check Enter custom model name, then paste a Model ID from the list below.

    Pick a family, then copy a Model ID into the custom model name field. The API endpoint stays the same for every model.

    Selected

    Provider
    Claude
    Model ID
    claude-sonnet-4-6

    The full catalog follows the AI Code With docs and pricing page. Example IDs in screenshots only show where to paste; use an ID from this page.

    View the full model list
  4. Test, then translate

    Click Test this service first, then save. In the popup, switch the translation service to OpenAI and choose PDF or text. A normal translation confirms the connection — then match the call by time and model in AI Code With usage records.

    Click Test this service, then save. In the popup, switch the translation service to OpenAI and choose PDF or text. A normal translation confirms the connection. Match the call by time and model in usage records.
    You can also open the document translation page and use the OpenAI service you just configured to translate PDFs, ebooks, or subtitles.

How does Immersive Translate connect to AI Code With?

Immersive Translate talks to an OpenAI-compatible API. Connecting to AI Code With means filling the full endpoint, key, and a Model ID in the built-in OpenAI service:

Open Settings
Click the Immersive Translate toolbar icon, then Settings. Choose Basic on the left.
Choose OpenAI
Set Translation Service to the built-in OpenAI option. Do not use a Beta custom service.
Fill the full endpoint
Set Custom translation service name to OpenAI. Set Custom API endpoint to https://api.aicodewith.ai/v1/chat/completions (include the full path; do not split Host and Path). Then paste the API key.
Paste the Model ID
Check Enter custom model name and paste a Model ID from this page. Immersive Translate does not fetch the model list.
Test, then translate
Click Test this service first, then save. In the popup, switch the translation service to OpenAI and choose PDF or text. A normal translation confirms the connection.

Flow: Immersive Translate extension → built-in OpenAI (full endpoint + custom model name) → AI Code With API. Everything is configured inside the extension. No files to edit.

Frequently asked questions

New to Immersive Translate?

Immersive Translate is a browser extension for side-by-side translation of pages, PDFs, ebooks, and subtitles, plus document translation.

Chrome Web Store

Install Immersive Translate from the Chrome Web Store. Edge can use the same listing. After install, click the toolbar icon, then Settings.

Open the Chrome Web Store

Full install guidance follows the Immersive Translate official site; this site does not host the extension package.

Common error troubleshooting

The most frequent problems fall into 4 categories.

401 / Invalid API Key

Symptom: Test this service or a translation returns 401, Unauthorized, or Invalid API Key.

Cause: Usually the API key is invalid, mistyped, or copied with extra characters.

  • Go back to Basic settings and re-paste the API key (no extra spaces)
  • Confirm the key is a valid AI Code With API key
  • Click Test this service again

Endpoint missing /v1/chat/completions

Symptom: The test fails, or the request hits the wrong path.

Cause: Custom API endpoint was not the full URL. Immersive Translate does not append a Path, so a Host-only value fails.

  • Set Custom API endpoint to https://api.aicodewith.ai/v1/chat/completions
  • Do not split the value into Host and Path
  • Do not omit /v1/chat/completions

Model Not Found / invalid model

Symptom: Test or translation says the model does not exist, or the extension keeps using gpt-4o.

Cause: Enter custom model name is unchecked, or the pasted Model ID does not match the catalog.

  • Confirm Enter custom model name is checked
  • Copy the Model ID from this page instead of typing it
  • Confirm the key can access that model

Test fails / no translation

Symptom: Test this service fails, or the page or PDF never shows a translation.

Cause: Settings were not saved, the popup still uses another service, or the model is unavailable for this key.

  • Confirm the test succeeds, then save
  • Switch the popup translation service to OpenAI
  • Check AI Code With usage records for a matching call

Need the full guide?

Every config parameter, the complete model list, and more troubleshooting live in the AI Code With docs.

Open the AI Code With docs

Sources

Related links