Initialization
Initialize
Confirm Endpoint
The user can specify custom domain name by passing ENDPOINT parameter. For the concept of region, please refer to Region Selection Guide.
Before working with the SDK, it's essential to select the target region for your operations. You can then configure the CaClient by inputting the Endpoint parameter corresponding to that region.
For the domain names currently supported by CA, please refer to Service Domain.
Retrieve access key
To use Baidu AI Cloud products, you need a Baidu AI Cloud account, as well as a valid AK (Access Key ID) and SK (Secret Access Key) for signature authentication.
Your AK/SK information can be obtained and understood through the following steps:
After obtaining the key, it must be provided as a parameter during Client configuration. The SDK integrates an authentication mechanism, so you don’t need to understand the underlying authentication process. Simply fill in the AK/SK in the designated fields as required, and the SDK will automatically handle the authentication for you.
