跳转到主要内容
New API is an aggregation and distribution gateway for AI APIs. By adding Qhaigc as a channel, you can redistribute Qhaigc access to team members or downstream applications through your own New API instance — they use New API’s endpoint and tokens, while New API routes requests upstream to Qhaigc.

Prerequisites

  • A deployed New API instance with admin access
  • A Qhaigc API key — get yours from the API Tokens page

Add Qhaigc as a Channel

1

Open Channels management

Log in to the New API admin panel and navigate to Channels (渠道管理).
2

Add a new channel

Click Add channel (添加渠道) and select an OpenAI-compatible channel type that matches your upstream.Fill in the channel details:
FieldValue
Channel nameQhaigc (or any label you prefer)
API KeyYour Qhaigc API key (starts with sk-)
API addresshttps://api.qhaigc.net/v1
ModelsThe model IDs you want to expose to downstream users
Groupe.g. default
WeightSet according to your routing strategy
StatusEnabled
Save the channel.
3

Configure model mappings (optional)

If you want to expose models under different names to downstream users, open the model mapping configuration, define your mappings, and save.
4

Create downstream tokens

Generate one or more downstream tokens in New API. Provide your downstream users with:
  • New API’s /v1 base URL
  • A downstream token
Downstream users make standard OpenAI-compatible requests to your New API instance, which routes them to Qhaigc.

Verify the Channel

  • After saving, the channel status should show as Enabled (or active).
  • Send a test request through New API’s /v1/chat/completions endpoint using a downstream token. A successful response confirms that the channel is routing to Qhaigc correctly.
Use the built-in channel test in the New API admin panel to verify connectivity before distributing tokens to your team.

Troubleshooting

Channel shows as offline. Check the API key, API address, and network connectivity from your New API host to api.qhaigc.net. Also confirm the channel type is set to an OpenAI-compatible option. Downstream requests do not reach Qhaigc. Verify that the channel weight, group assignment, and model mappings are all configured correctly and that the channel is enabled.