Skip to main content
Version: 1.0.0

AI Large Model Access

Feature Introduction

This series of open APIs provides unified integration capabilities for various large models. Simply configure the token (or other authentication methods required by the large model) for the desired large model in the cloud development environment to quickly access different large models. The models in this series support responses in SSE format.

Access Guide

To call the following interfaces, you need to pass an AccessToken in the format Authorization: Bearer <token>. For token acquisition methods, refer to: https://docs.cloudbase.net/http-api/basic/access-token

HTTP Status Code

Depending on the returned results, status codes such as 2xx, 4xx, and 5xx may occur. Some large models indicate errors through the response body in 200 status codes, which should be handled accordingly.

Error Codes

The following lists the error codes specific to this series of APIs. For the complete list, refer to: https://docs.cloudbase.net/error-code/service

Error CodeMeaning
AI_MODEL_CONFIG_MISSINGMissing required configurations such as API Key for invoking models
AI_MODEL_PARAM_INVALIDAbnormal parameters in model invocation
AI_MODEL_REQUEST_FAILEDFailed to request the model
AI_MODEL_DISABLEDThe model is deactivated. Please check whether the model is enabled on the console, or wait for 2 minutes and try again.
AI_MODEL_NOT_FOUNDSpecified model not found
EXCEED_CONCURRENT_REQUEST_LIMITAPI calls exceed the concurrency limit. Please wait a moment and try again, or submit a ticket to request an increase in concurrency.
EXCEED_TOKEN_QUOTA_LIMITLarge model Token usage has exceeded the quota. Please purchase a resource package to increase the quota.

Authentication

The token corresponding to the environment ID, obtained using login authentication (v2).

Security Scheme Type:http
HTTP Authorization Scheme:bearer

License

Apache 2.0