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.
Body Attributes
Parameter | Description |
---|---|
clientId | Used for request creation authorization |
clientSecret | Used for request creation authorization |
Response Attributes
Parameter | Value | Description |
---|---|---|
code | 1000 | Interface returns business status code(1000:success) |
token | API token |
Body
Request
Response
All API requests should include your API token in the HTTP header, Authorization looks like this:
Remember, your API token is secret! Do not share it with others or expose it in any client-side code (browser, application). Production requests must be routed through your own backend server, and your API token can be securely loaded from environment variables or a key management service.
Response Code Description
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 |
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.
Body Attributes
Parameter | Description |
---|---|
clientId | Used for request creation authorization |
clientSecret | Used for request creation authorization |
Response Attributes
Parameter | Value | Description |
---|---|---|
code | 1000 | Interface returns business status code(1000:success) |
token | API token |
Body
Request
Response
All API requests should include your API token in the HTTP header, Authorization looks like this:
Remember, your API token is secret! Do not share it with others or expose it in any client-side code (browser, application). Production requests must be routed through your own backend server, and your API token can be securely loaded from environment variables or a key management service.
Response Code Description
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 |