NextChat

Common Configuration Parameters

To connect an application to AI Gateway, copy the URL below, replace {APPLICATION_URL} and sk-xxxxxxxxxxxxxx, and open it in your browser.

https://{APPLICATION_URL}/#/?settings={
  "key":"sk-xxxxxxxxxxxxxx",
  "url":"https://gateway.theturbo.ai"
}
Parameter
Description

{APPLICATION_URL}

The access URL of the AI application you have deployed (for example, a chat UI or desktop web app)

key

The API key generated after creating an AI Gateway instance. This key is used to authenticate all requests

url

The base URL of your AI Gateway service endpoint, that is https://gateway.theturbo.ai

circle-info

Note

You can view Githubarrow-up-right for more detailed configurations.

Using Non-OpenAI Models in NextChat

NextChat natively supports the OpenAI API format. To use models from other providers (such as Claude or Gemini) through AI Gateway, you must add them as custom models using an OpenAI-compatible configuration.

In Settings > Custom Models, add a model using the following format:

+<model_name>@OpenAI

Example

Explanation

  • <model_name> The actual model name supported by AI Gateway.

  • @OpenAI Indicates that NextChat should call this model using the OpenAI-compatible API format, even if the underlying model is provided by a different vendor.

AI Gateway translates the OpenAI-compatible request into the appropriate provider-specific API call.

This approach allows NextChat to use multiple AI providers through a single OpenAI-compatible interface exposed by AI Gateway.

Last updated