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
Add a new channel
Click Add channel (添加渠道) and select an OpenAI-compatible channel type that matches your upstream.Fill in the channel details:
Save the channel.
| Field | Value |
|---|---|
| Channel name | Qhaigc (or any label you prefer) |
| API Key | Your Qhaigc API key (starts with sk-) |
| API address | https://api.qhaigc.net/v1 |
| Models | The model IDs you want to expose to downstream users |
| Group | e.g. default |
| Weight | Set according to your routing strategy |
| Status | Enabled |
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.
Verify the Channel
- After saving, the channel status should show as Enabled (or active).
- Send a test request through New API’s
/v1/chat/completionsendpoint using a downstream token. A successful response confirms that the channel is routing to Qhaigc correctly.
Troubleshooting
Channel shows as offline. Check the API key, API address, and network connectivity from your New API host toapi.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.