Skip to main content

Access Large Models

CloudBase provides three ways to access large models:

MethodDescriptionApplicable Plan/Scenario
Token Resource PackPurchase a resource pack to use models such as DeepSeek, MiniMax, Hunyuan, Kimi, GLM, etc.All available plans
Trial ModelUse the built-in Hunyuan model for freeMini Program Growth Plan
Custom ModelConfigure any model compatible with the OpenAI protocolStandard plan and above

Token Resource Pack

Resource Pack Details

  • Validity: 1 year
  • Supported Models: DeepSeek, MiniMax, Hunyuan, Kimi, GLM and other latest models. See supported model list
  • Usage: Purchased independently; cannot be offset by subscription plans or pay-as-you-go billing

Purchase Requirements

You must have a CloudBase environment. Resource packs are available for all available plans.

Purchase URL

Console → AI → Text Generation Models, click "Purchase Now" to proceed.

Token resource pack purchase page

Trial Model

The trial model is exclusively for the Mini Program Growth Plan. Currently only Hunyuan is supported. To use DeepSeek or other models, please purchase a Token resource pack.

The following Hunyuan models are currently available:

ModelDescription
hy3-previewHunyuan instruction model

Custom Model

CloudBase Standard plan and above supports configuring third-party models. Once configured, you can call them directly via the CloudBase JS SDK and Mini Program SDK.

Notes

Custom models only support large model interfaces compatible with the OpenAI protocol.

Required Parameters

ParameterDescription
BaseURLThe API request URL of the large model (must be compatible with the OpenAI protocol)
APIKeyThe key for accessing the large model API
Model NameThe specific model identifier, e.g., deepseek-v4-flash, deepseek-v3, etc.

Configuration Steps

  1. Obtain BaseURL and API Key

    The following provides integration references for Hunyuan and DeepSeek. For other models, refer to the corresponding provider's documentation:

    ModelProviderBaseURLModel NameBilling
    hunyuanTencent Hunyuanhttps://api.hunyuan.cloud.tencent.com/v1See Hunyuan Model ListSee Billing Docs
    DeepSeekDeepSeek Officialhttps://api.deepseek.com/v1See DeepSeek Model ListSee DeepSeek Docs
  2. Configure in the platform

    Go to the CloudBase AI+ console. There are two ways to configure:

    • Supported platforms: Select the corresponding platform and fill in the API Key directly

      Select platform to configure API Key

    • Other models: Click the "Add Model Provider" button and fill in the BaseURL, API Key, and model name

      Add model provider

Frequently Asked Questions

How do I determine if a large model is compatible with the OpenAI protocol?

Large models compatible with the OpenAI protocol typically state this explicitly in their API documentation, or their API structure aligns with OpenAI's interface specification (e.g., similar endpoints and parameter structure).

What should I do if the large model doesn't work properly after configuration?

Please check the following:

  • Is the API Key correct and not expired?
  • Is the BaseURL accurate?
  • Does the model name match the one in the provider's documentation?
  • Have you enabled billing or topped up your account on the third-party platform?

How much concurrency does the large model support?

  • When using the trial model, one environment supports 5 concurrent requests.
  • After configuring a custom model, the platform no longer limits concurrency. The actual concurrency limit depends on the third-party model provider's restrictions.