AI Gateway Endpoint & Calling Example
OpenAI-compatible chat completions endpoint routed through configured providersPOST
Send a JSON body containing a
messages array with OpenAI-compatible role and content entries.Requires an authenticated administrator Bearer token in the
Authorization header.{
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "Hello!" }
],
"model": "optional-model-override"
} curl -X POST "https://www.autofillplus.laitil.com/api/ai/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
-d '{
"messages": [
{ "role": "user", "content": "Hello!" }
]
}' AI Providers
Manage AI providers, assign supported models, and configure multiple API keys for automatic failover.
| # | Provider | Endpoint URL | Models | API Keys | Status | Actions |
|---|---|---|---|---|---|---|
| Loading providers... | ||||||
| {{ index + 1 }} | {{ provider.name }}Internal providerPriority order: {{ provider.sort_order }} | {{ provider.url }} | {{ m.model_name }} +{{ (provider.models || []).length - 3 }} more None added | {{ (provider.api_keys || []).length }} key(s) | {{ provider.status }} | Protected |
| No providers configured yet. | ||||||