API documentation

Authenticate with a bearer token and call the versioned REST endpoints.

1. Create an API key in the console.

The key is issued on the official TokenHub side.

2. Send the key in the Authorization header.

Authorization: Bearer <api-key>

3. Call the official TokenHub international inference endpoint.

https://tokenhub-intl.tencentmaas.com/v1/chat/completions

By service region: Singapore/global https://tokenhub-intl.tencentmaas.com/v1; Guangzhou/mainland China https://tokenhub.tencentmaas.com/v1. Cross-region calls are not supported.

curl https://tokenhub-intl.tencentmaas.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek-v4-pro-0813",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Anthropic-compatible endpoint: https://tokenhub-intl.tencentmaas.com/v1/messages (x-api-key header).