All Products
Search
Document Center

PolarDB:CreateAIDBCluster

Last Updated:Oct 22, 2026

Creates an AI cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:CreateAIDBCluster

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-beijing

ZoneId

string

No

The zone ID.

cn-beijing-i

DBNodeClass

string

No

The node specifications.

polar.pg.g4.6xlarge.gu4

DBClusterDescription

string

No

The description of the cluster. Fuzzy match is supported.

test

PayType

string

Yes

The billing method. Valid values:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

Postpaid

AutoRenew

string

No

Specifies whether to enable auto-renewal. Valid values:

  • true: enables auto-renewal.

  • false: disables auto-renewal.

Default value: false.

Note

This parameter takes effect only when the PayType parameter is set to Prepaid.

false

Period

string

No

This parameter is required when the PayType parameter is set to Prepaid. Specifies the billing cycle of the subscription cluster. Valid values:

  • Year: yearly subscription.

  • Month: monthly subscription.

5

UsedTime

string

No

The subscription duration. This parameter is required when the PayType parameter is set to Prepaid.

  • If the Period parameter is set to Month, the value of UsedTime must be an integer in the range of [1-9].

  • If the Period parameter is set to Year, the value of UsedTime must be an integer in the range of [1-3].

1

VPCId

string

Yes

The ID of the VPC.

vpc-*******************

VSwitchId

string

Yes

The ID of the vSwitch.

vsw-**********

SecurityGroupId

string

No

The ID of the security group.

sg-bp**************

StorageType

string

No

The storage type.

essdpl0

StorageSpace

integer

No

The storage space.

1024

Password

string

No

The password.

xxx

KubeConfig

string

No

The Kubernetes configuration.

xxx

KubeClusterId

string

No

The ID of the ACK cluster.

xxxxxxxxxxxxxxxxxxxxxxx

KubeType

string

No

aideploy

aideploy

AckAdmin

string

No

Specifies whether the cluster is managed by an ACK cluster.

yes

ManagementMode

string

No

The management mode.

ack

KubeManagement

string

No

The management mode of the Kubernetes cluster.

self_k8s

ModelName

string

No

The name of the model.

Qwen3-30B-A3B

Extension

string

No

The extension.

maas

InferenceEngine

string

No

The inference engine.

sglang

Capacity

integer

No

The initial model capacity of the instance. The value must be a positive integer. A capacity unit of 1000 is equivalent to one L20N card.

4000

TimeSlices

array<object>

No

The pay-as-you-go time ranges.

object

No

The pay-as-you-go time ranges.

BeginTime

integer

No

The start time of the task. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.

1758729600

EndTime

integer

No

The end time of the query. The end time must be later than the start time. Specify the time in the YYYY-MM-DDThh:mmZ format. The time must be in UTC.

1758733200

DBClusterId

string

No

The PolarDB instance ID on which the application depends.

pc-******************

KubernetesConfig

string

No

The Kubernetes configuration.

xxx

AutoUseCoupon

boolean

No

Specifies whether to automatically use coupons. Valid values:

  • true (default): uses coupons.

  • false: does not use coupons.

false

PromotionCode

string

No

The coupon code. If you do not specify this parameter, the default coupon is used.

727xxxxxx934

ClientToken

string

No

The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can generate the token on the client side. Ensure that the token is unique across different requests. The token is case-sensitive and can be up to 64 ASCII characters in length.

6000170000591aed949d0f54a343f1a4233c1e7d1c5c******

ModelSpace

string

No

The model operator space.

pms-xxx

CreatePublicEndpoint

string

No

Specifies whether to create a public endpoint.

ON

Response elements

Element

Type

Description

Example

object

Schema of Response

DBClusterId

string

The ID of the cluster.

pc-******************

OrderId

string

The ID of the order.

2035638*******

RequestId

string

Id of the request

CDB3258F-B5DE-43C4-8935-CBA0CA******

ResourceGroupId

string

The ID of the resource group.

rg-************

Examples

Success response

JSON format

{
  "DBClusterId": "pc-******************",
  "OrderId": "2035638*******",
  "RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
  "ResourceGroupId": "rg-************"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameters.Format The specified parameters are invalid. The specified parameters are invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.