Tencent Hunyuan Setup

Connect Tencent Hunyuan to Chatbox through its OpenAI-compatible API, configure the endpoint, and troubleshoot key and model access.

ℹ️
Tencent is moving new model services to TokenHub. The steps below apply to existing Hunyuan API accounts. For new services, use the endpoint and key issued by TokenHub; do not mix credentials between platforms.

Get an API Key

Create a Tencent Hunyuan API Key in the Tencent Cloud API Key Management Console. Keep the key private and do not upload or share it publicly.

Configure the Provider

  1. Open SettingsModel ProviderAdd.
💡
On mobile, tap the menu in the top-left corner to expand the sidebar before opening Settings.
  1. Enter a provider name and select OpenAI API Compatible as the API mode.
  2. Set the API Host to https://api.hunyuan.cloud.tencent.com/v1/.
  3. Paste your Tencent Hunyuan API Key into API Key and leave the other fields blank.
  4. Save the provider.
Tencent Hunyuan API key configuration (Desktop)
Configure the Tencent Hunyuan API key

Select a model available to your account from the model list to start a new chat.

Use Tencent Hunyuan model (Desktop)
Select an available Hunyuan model

Troubleshooting

Use the API Key created for the compatible endpoint, not a Tencent Cloud SecretId/SecretKey pair. Check that the full URL ends in /v1/chat/completions. If a model is unavailable, check your account’s service access and the migration notice above.

Related guides

All providers · Choose a provider · Connection troubleshooting

Provider reference

Tencent Hunyuan