New API

Configure CoffeeRouter as an OpenAI upstream channel in New API and test available models from the chat interface.

1. Add a channel

Sign in to the New API admin console, open Channel Management, and select Add channel.

Add a channel from New API Channel Management

2. Configure CoffeeRouter

Enter the following values when creating the channel:

FieldValue
TypeOpenAI
NameCoffeeRouter
KeyAn API token from CoffeeRouter Token Management, such as sk-your-api-key
Base URLThe CoffeeRouter site root, such as https://www.coffeerouter.ai
ModelSelect the models allowed by the current token as needed

Use the site root as the Base URL and do not append another /v1. If you operate your own CoffeeRouter deployment, replace the example domain with your actual site address.

Configure the CoffeeRouter channel in New API

Select Submit to save the channel. Then use the test action in the channel list to verify connectivity.

3. Open the chat interface

Open Playground or Chat, select the channel group and model you configured, and send a test message.

Test a CoffeeRouter model in the New API chat interface

Security notes

  • A CoffeeRouter API token is a calling credential. Never share the full token, configuration screenshots, or runtime logs.
  • Create a dedicated token for New API and configure appropriate model, quota, and IP restrictions.
  • If a token appears in a public screenshot or any untrusted location, revoke it immediately in CoffeeRouter and create a replacement.