Title: Bestony AI Provider for Tencent Cloud Token Hub
Author: Bestony
Published: <strong>October 9, 2026</strong>
Last modified: October 9, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/bestony-ai-provider-for-tencent-cloud-
token-hub.svg)

# Bestony AI Provider for Tencent Cloud Token Hub

 By [Bestony](https://profiles.wordpress.org/bestony/)

[Download](https://downloads.wordpress.org/plugin/bestony-ai-provider-for-tencent-cloud-token-hub.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/bestony-ai-provider-for-tencent-cloud-token-hub/#description)
 * [Reviews](https://wordpress.org/plugins/bestony-ai-provider-for-tencent-cloud-token-hub/#reviews)
 *  [Installation](https://wordpress.org/plugins/bestony-ai-provider-for-tencent-cloud-token-hub/#installation)
 * [Development](https://wordpress.org/plugins/bestony-ai-provider-for-tencent-cloud-token-hub/#developers)

 [Support](https://wordpress.org/support/plugin/bestony-ai-provider-for-tencent-cloud-token-hub/)

## Description

This plugin adds Tencent Cloud Token Hub’s OpenAI-compatible Chat Completions API
to the WordPress AI Client.

 * The model list is fetched live from `GET /models`.
 * Only models with `status: online` are exposed.
 * Text generation, chat history, tool calling, streaming and structured output 
   are supported.
 * Confirmed vision models declare text and image input.
 * Image, video and 3D generation models are excluded because this provider implements
   Chat Completions only.
 * A request with more than four messages is rejected before it reaches the API.

### Configuration

The provider ID is `tencentcloud_tokenhub`.

The API key is owned by the AI Client credential registry. You can enter it in Settings
Connectors as `connectors_ai_tencentcloud_tokenhub_api_key`, or define `TENCENTCLOUD_TOKENHUB_API_KEY`
as an environment variable or PHP constant supported by the SDK. The provider does
not read the Connector option directly.

Optional environment variables or PHP constants:

 * `TENCENTCLOUD_TOKENHUB_DEFAULT_MODEL` — model preferred by the AI plugin. Default:`
   hy4-preview`.
 * `TENCENTCLOUD_TOKENHUB_REQUEST_TIMEOUT` — request timeout in seconds. Default:`
   120`.
 * `TENCENTCLOUD_TOKENHUB_CONNECT_TIMEOUT` — connection timeout in seconds. Default:`
   10`.
 * `TENCENTCLOUD_TOKENHUB_STRUCTURED_OUTPUT` — `json_schema` (default), `json_object`,
   or `none`.

The API base URL is fixed at `https://api.lkeap.cloud.tencent.com/plan/v3`. The 
key is sent only to this host. The plugin does not provide a custom host setting.

### Model capabilities

Token Hub’s `/models` response does not include capability details. Unknown online
models are therefore treated as text-only chat models. The provider maintains a 
conservative list of confirmed vision IDs, including the documented DeepSeek V4 
Flash Vision, GLM-5V, HY-Vision, Hunyuan vision, and YT-VITA families. The list 
can be updated when Tencent adds documented vision models.

Image, video, 3D, embedding, speech and other non-chat families are filtered out.
No image, video or 3D generation endpoint is implemented.

### Message limit

Token Hub rejects a `messages` array longer than four entries. This provider throws
an AI Client parameter exception before sending a request when the prompt would 
exceed that limit.

### External services

This independent plugin connects to Tencent Cloud Token Hub, a service provided 
by Tencent Cloud:

 * `GET /models` — fetches the online model list and checks credentials.
 * `POST /chat/completions` — sends prompts, conversation history, tools, schemas
   and image inputs for text generation.

Requests use `Authorization: Bearer <API key>`. See the [Token Hub API documentation](https://cloud.tencent.com/document/product/1823/130078)
and [OpenAI Chat Completions field reference](https://cloud.tencent.com/document/product/1823/135872).

This service is provided by Tencent Cloud:

 * Terms of service: [https://cloud.tencent.com/document/product/301/1967](https://cloud.tencent.com/document/product/301/1967)
 * Privacy policy: [https://cloud.tencent.com/document/product/301/11470](https://cloud.tencent.com/document/product/301/11470)

### Development

    ```
    php scripts/selfcheck.php runs local checks without WordPress or a real key. Add `--sdk=/path/to/wordpress-php-ai-client/src` to run SDK integration checks.
    ```

## Installation

 1. Copy the plugin directory to `/wp-content/plugins/bestony-ai-provider-for-tencent-
    cloud-token-hub/`.
 2. Activate the plugin through the Plugins menu.
 3. Go to Settings  Connectors, open the Tencent Cloud Token Hub card and paste your
    API key.

## FAQ

### Does the plugin need a separate settings page?

No. The Connector card is the only place in WordPress where the API key is entered.
Optional behaviour is configured with environment variables or PHP constants.

### Why is a model missing from the list?

Offline models and known non-chat families are intentionally filtered. A model with
an unrecognised ID is treated as text-only, so it remains available for Chat Completions.

### Can I use a configurable Token Hub host?

No. The endpoint is fixed to the official Token Plan host so the API key is not 
sent to an arbitrary domain.

### How do I handle a long conversation?

Keep each request at four messages or fewer. Summarize earlier turns before starting
the next request.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Bestony AI Provider for Tencent Cloud Token Hub” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Bestony ](https://profiles.wordpress.org/bestony/)

[Translate “Bestony AI Provider for Tencent Cloud Token Hub” into your language.](https://translate.wordpress.org/projects/wp-plugins/bestony-ai-provider-for-tencent-cloud-token-hub)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/bestony-ai-provider-for-tencent-cloud-token-hub/),
check out the [SVN repository](https://plugins.svn.wordpress.org/bestony-ai-provider-for-tencent-cloud-token-hub/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/bestony-ai-provider-for-tencent-cloud-token-hub/)
by [RSS](https://plugins.trac.wordpress.org/log/bestony-ai-provider-for-tencent-cloud-token-hub/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release with dynamic online model discovery, OpenAI-compatible Chat Completions,
   structured output, tool calling and conservative vision metadata.

## Meta

 *  Version **1.0.0**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 7.0 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [AI](https://wordpress.org/plugins/tags/ai/)[chat](https://wordpress.org/plugins/tags/chat/)
   [connector](https://wordpress.org/plugins/tags/connector/)[Tencent Cloud](https://wordpress.org/plugins/tags/tencent-cloud/)
 *  [Advanced View](https://wordpress.org/plugins/bestony-ai-provider-for-tencent-cloud-token-hub/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/bestony-ai-provider-for-tencent-cloud-token-hub/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/bestony-ai-provider-for-tencent-cloud-token-hub/reviews/)

## Contributors

 *   [ Bestony ](https://profiles.wordpress.org/bestony/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/bestony-ai-provider-for-tencent-cloud-token-hub/)