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 Code | Meaning |
AI_MODEL_CONFIG_MISSING | Missing required configurations such as API Key for invoking models |
AI_MODEL_PARAM_INVALID | Abnormal parameters in model invocation |
AI_MODEL_REQUEST_FAILED | Failed to request the model |
AI_MODEL_DISABLED | The model is deactivated. Please check whether the model is enabled on the console, or wait for 2 minutes and try again. |
AI_MODEL_NOT_FOUND | Specified model not found |
EXCEED_CONCURRENT_REQUEST_LIMIT | API 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_LIMIT | Large model Token usage has exceeded the quota. Please purchase a resource package to increase the quota. |
Authentication
- HTTP: Bearer Auth
- API Key: APIKey
The token corresponding to the environment ID, obtained using login authentication (v2).
Security Scheme Type: | http |
---|---|
HTTP Authorization Scheme: | bearer |
The Tencent Cloud version 3.0 signature starting with TC3-HMAC-SHA256 appends Timestamp and Token to the end of the signature.
Security Scheme Type: | apiKey |
---|---|
Header parameter name: | Authorization |