tencent cloud

APIs

Introduction

Download
Focus Mode
Font Size
Last updated: 2026-08-26 20:54:55

Overview

Large Model Service Platform TokenHub provides a unified large model service portal for enterprises and developers. It integrates Tencent Self-developed HunYuan Large Model capacity and supports importing high-quality third-party models, covering common dialogue, deep reasoning, code generation, visual understanding, image generation, video generation, and other scenarios. The platform supports multiple service modes such as pay-as-you-go calls, guaranteed resources, and exclusive deployment, helping businesses access AI computing power simply and efficiently.
This section introduces the cloud APIs related to TokenHub control plane operations, such as service creation, Key management, usage statistics retrieval, Token Plan enterprise package management, and Token Plan enterprise API Key management. Note that control plane APIs do not currently support model invocation. If required, check the model invocation overview (https://www.tencentcloud.com/document/product/1823/130078?from_cn_redirect=1).

Glossary

Common terminology for TokenHub API interfaces: see the table below.

Terminology Description
EndpointId Service ID of the inference service
TeamId ID of the Token Plan enterprise package.
PrepayResourceID Cloud billing prepaid resource package ID bound to the Token Plan enterprise plan.

Note:
TokenPlan Key, amount, and other information are managed separately in the package, with an independent API for control, and cannot be accessed or used through the TokenHub global API.

Getting Started with APIs

You can use the API Explorer tool to call APIs online.
This document uses querying Token Plan package details as an example. The steps to make an API call through the API Explorer Tool are as follows:

  1. Go to the API Explorer tool page. For more information about API Explorer tool usage, see Using API Explorer.
  2. Calls DescribeTokenPlan to query Token Plan package detail.
  3. Select Region: South China (Guangzhou).
  4. Input the package ID (TeamId) to query.
  5. Initiate the call.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback