The AI Web API is an interface to access configured AI providers, skills, request execution, resource upload, and an OpenAI-compatible chat completions proxy.
Requests have to be sent as HTTP requests with the scheme https://[HOST]:[PORT]/api/ai/[Command]. To access the AI Web API a user has to have the required permissions - which have to be set in the configuration manager. All clients have to be authenticated in order to use the API.
Note: The AI Web API can be used only by users who have both the Web API and ai.api permissions set. All clients must be authenticated.
The AI Web API exposes the following features:
In this API, providerId is the configured provider display name. The display name must be unique.
providerId is omitted or empty, the default provider is used. The default provider is the first configured provider.-.GET /api/ai/providers/default, the literal path token default resolves the default provider.The following commands are available for the AI Web API:
| Command | Description |
|---|---|
| Providers | Lists configured AI providers and returns details for one provider |
| AI Requests | Runs a synchronous AI request against a provider |
| Resource Uploads | Uploads a file to an AI provider that supports uploads |
| Skills | Lists configured AI skills |
| Chat Completions Proxy | OpenAI-compatible chat completions proxy for the default AI provider |