Skip to content

Chatbox

Add CodaAPI as a custom provider (OpenAI API Compatible) in Chatbox, what to enter as the API Host and API Path, and how to fetch models and check the connection.

Chatbox is a cross-platform AI client with apps for Windows, macOS, Linux, mobile and the web. Add a custom provider under Model Provider with the address and key pointing at CodaAPI.

Not tested: this page follows the official Chatbox documentation (docs.chatboxai.app) and the source code of version 1.24.4 in the official repository (checked on November 30, 2026), and hasn't been tested on CodaAPI yet. Go by the interface of the version you have installed.

What to fill in

Item Value
Provider type API Mode: OpenAI API Compatible
Address API Host: https://codaapi.com; leave API Path empty
Key API Key: the sk-… you copied from API Keys in the console
Model Fetched with Fetch, or added manually with New, for example gpt-5.4-mini

Setup

  1. Open Chatbox, click the settings button in the sidebar to open Settings, and choose Model Provider.
  2. Click Add at the bottom of the provider list. The Add provider dialog opens.
  3. Enter CodaAPI in Name, set API Mode to OpenAI API Compatible, and click Add.
  4. Enter the key you copied from API Keys in the console (open it directly) in API Key.
  5. Enter https://codaapi.com in API Host and leave API Path empty. The Preview line below shows the full request address, which should be https://codaapi.com/v1/chat/completions.
  6. Under Models, click Fetch to fetch the models this key can use from CodaAPI, or click New to add a model name by hand. Turn on capabilities such as vision and tool use to match each model; without them, a model is treated as text-only.
  7. Click Check, pick a test model, and wait for "Connection successful!".
  8. Go back to the home screen, start a new chat, and choose a model under CodaAPI.

How Chatbox builds the address

Based on the source code of Chatbox 1.24.4, with API Mode set to OpenAI API Compatible:

  • With API Path empty and a root address in API Host (such as https://codaapi.com), it adds /v1 and then appends /chat/completions.
  • With API Host ending in /v1 (such as https://codaapi.com/v1) and API Path empty, it appends /chat/completions directly. So https://codaapi.com/v1 works as well.
  • If API Host contains the full https://codaapi.com/v1/chat/completions, it splits it automatically, with the same result.
  • Once API Path is filled in, API Host no longer gets /v1 added; the two are joined as they are.

Using the native Claude format

To have Claude models use Claude's native Messages endpoint, set API Mode to Claude API Compatible. In that mode, API Host must be https://codaapi.com/v1 with /v1: Chatbox only appends /messages, so the root address would be missing /v1. If you don't need this, Claude models can also be called with OpenAI API Compatible (see Calling Claude via the OpenAI format).

Which models to use

  • OpenAI API Compatible can use any CodaAPI model served through the Chat Completions endpoint, including GPT, Claude and Gemini models, for example gpt-5.4-mini and claude-sonnet-5-5.
  • The model must be in your key's group. For the models in each group, see Groups; for prices, see Model Square.

FAQ

Too many or too few /v1 in the address

The most common mistake is entering https://codaapi.com/v1 in API Host and also /v1/chat/completions in API Path, which puts /v1 in the address twice. Leaving API Path empty avoids this. If in doubt, check the full address shown on the Preview line; it should be https://codaapi.com/v1/chat/completions.

Fetch doesn't return any models

Check that API Host and the key are correct. If the key has Model Limits set, only the models on that list are returned. You can still use the provider without fetching: click New and add the model name by hand.

Check says it can't connect

Look at the status code in the error first: 401 means the key is wrong; 404 mentioning that the model isn't configured in your groups means the model name is misspelled or the model isn't in your key's group; 404 mentioning Invalid URL means the address was put together wrong. For each status code, see Error codes.

Updated