Documentation Index
Fetch the complete documentation index at: https://docstest.akool.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OpenAPI uses API keys for authentication. Get your API token from our API interfaces . We provide open APIs for Gen AI Platform by clicking on the top API button on this page openAPI.- First you need to login to our website.
- Then click the picture icon in the upper right corner of the website, and click the “APl Credentials” function to set the key pair (clientId, clientSecret) used when accessing the API and save it.
- Use the secret key pair just saved to send the api interface to obtain the access token.
API
Get the token
| Parameter | Description |
|---|---|
| clientId | Used for request creation authorization |
| clientSecret | Used for request creation authorization |
| Parameter | Value | Description |
|---|---|---|
| code | 1000 | Interface returns business status code(1000:success) |
| token | API token |
Please note that the generated token is valid for more than 1 year.
Example
Body Please note that if the value of the response code is not equal to 1000, the request is failed or wrong
| Parameter | Value | Description |
|---|---|---|
| code | 1000 | Success |
| code | 1101 | Invalid authorization or The request token has expired |
| code | 1102 | Authorization cannot be empty |
| code | 1200 | The account has been banned |