Create AI APIs
- Login to the Publisher Console (https://am.wso2.com/publisher) of the WSO2 API Manager.
- Click on the
AI APIbutton and then useCreate AI APIoption. - Select AI Provider and AI Provider API Version and click Next.
- Edit the information as given below.
| Field | Sample value |
|---|---|
| Name | MistralAIAPI |
| Context | /mistralaiapi |
| Version | 0.0.2 |
| Endpoint | https://api.mistral.ai |
- Select the Kubernetes Gateway and click Create.
- Go to API Configurations, and click Endpoints.
- Fill API Key for Production and Sandbox Endpoints and click save.
- Navigate to the Deploy section and click Deployments.
- Click Deploy New Revision.
- Optionally, provide a description for the revision.
- Select the Kubernetes Gateways in which you want to deploy the API and click Deploy.
- Navigate to Life Cycle tab. Then click Publish to publish the API.
- To verify the API deployment in the APK Gateway, execute the following command. You will see the status of the deployed apis as follows once completed.
bash
kubectl get apis -n apk