AI Code With LogoAI Code With

Glarity Γ— AI Code With

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

Glarity is a browser extension that summarizes web pages and YouTube videos, translates the current page side by side, and answers questions about the page.

Install Glarity in Chrome first, then finish setup in Options. Enter the key only in the extension, never on this page.

OpenAI API key quick reference4 settings
API Host
https://api.aicodewith.ai
API Path
/v1/chat/completions
API Key
sk-xxxxxxxx
Model ID
deepseek-v4-flash

Quick setup

In Glarity Options, configure OpenAI API key: Host, Path, Key, then paste a Model ID. About 3 minutes.

Glarity is a browser extension. Open Options, choose OpenAI API key in General, fill Host, Path, and API Key, then set Custom Model and paste a Model ID.

  1. Open Glarity Options

    Open chrome://extensions, find Glarity, then open Details or the extension icon to reach Options.

    Open chrome://extensions, find Glarity, then open Details or the extension icon to reach Options.
  2. Fill Host, Path, and API Key

    On the left, choose General, select OpenAI API key, and expand advanced settings. Set API Host to https://api.aicodewith.ai (no /v1), API Path to /v1/chat/completions, then paste the API key.

    Quick copy

    API Host

    https://api.aicodewith.ai

    API Path

    /v1/chat/completions

    In Options β†’ General, choose OpenAI API key and expand advanced settings. Set API Host to https://api.aicodewith.ai, API Path to /v1/chat/completions, then paste the API key.
  3. Paste the Model ID

    Set the model to Custom Model and paste a Model ID from the list below. Glarity does not fetch the model list for you.

    Copy a Model ID

    Glarity does not fetch a model list. Choose Custom Model, then paste a Model ID from the list below.

    Pick a family, then copy a Model ID into Custom Model. API Host and Path stay 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
    Set the model to Custom Model and paste a Model ID from this page. Glarity does not fetch the model list for you.
  4. Test, then send a message

    Click Test first, then Save. Open the Glarity sidebar on any page and send a test message. A normal reply confirms the connection β€” then match the call by time and model in AI Code With usage records.

    Click Test, then Save. Open the sidebar on a webpage, send a test message, and a normal reply confirms the connection. Match the call by time and model in AI Code With usage records.

How does Glarity connect to AI Code With?

Glarity talks to an OpenAI-compatible API. Connecting to AI Code With means changing Host, Path, and Key in advanced settings, then pasting a Model ID:

Open Options
Find Glarity on the Chrome extensions page and open Options. Choose General on the left.
Choose OpenAI API key
In General, select OpenAI API key and expand the advanced settings.
Fill Host and Path
Set API Host to https://api.aicodewith.ai (no /v1). Set API Path to /v1/chat/completions. Glarity concatenates these two fields.
Paste the Model ID
Set the model to Custom Model and paste a Model ID from this page. Glarity does not fetch the model list.
Test, then Save
Click Test first, then Save. Open the sidebar on a webpage and send a test message. A normal reply confirms the connection.

Flow: Glarity extension β†’ OpenAI API key (Host + Path + Custom Model) β†’ AI Code With API. Everything is configured inside the extension. No files to edit.

Frequently asked questions

New to Glarity?

Glarity is an open-source browser extension for summarizing pages, YouTube, and search results, and for side-by-side translation.

Chrome Web Store

Install Glarity from the Chrome Web Store. Edge can use the same listing. After install, open chrome://extensions, find Glarity, and open Options.

Open the Chrome Web Store

Full install guidance follows the Glarity 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 or a sidebar message returns 401, Unauthorized, or Invalid API Key.

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

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

Host / Path becomes a double /v1

Symptom: Test fails, or the request hits .../v1/v1/chat/completions.

Cause: API Host was set to https://api.aicodewith.ai/v1, and Glarity still appends the default Path.

  • Set API Host to https://api.aicodewith.ai only β€” no /v1
  • Set API Path to /v1/chat/completions
  • Do not put the full URL in both Host and Path

Model Not Found / invalid model

Symptom: Test or chat says the model does not exist, or Glarity keeps using a built-in model.

Cause: Custom Model is not selected, or the pasted Model ID does not match the catalog.

  • Confirm the dropdown is Custom Model, not a built-in name
  • Copy the Model ID from this page instead of typing it
  • Confirm the key can access that model

Test fails / no sidebar reply

Symptom: Test fails, or the sidebar never streams a reply.

Cause: Settings were not saved, the network is restricted, or the model is unavailable for this key.

  • Confirm Test succeeds, then click Save
  • Try another Model ID listed on this page
  • 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