碳塑复材科技(郑州)有限公司
Section navigation

New API

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

1. Add a channel

Sign in to the 魔方AI admin console, open Channel Management, and select Add channel.

Add a channel from 魔方AI Channel Management

2. Configure 魔方AI

Enter the following values when creating the channel:

FieldValue
TypeOpenAI
Name魔方AI
KeyAn API token from 魔方AI Token Management, such as sk-your-api-key
Base URLThe 魔方AI site root, such as https://www.mofangai001.cn
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 魔方AI deployment, replace the example domain with your actual site address.

Configure the 魔方AI channel in 魔方AI

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 魔方AI model in the 魔方AI chat interface

Security notes

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