Skip to content

AI providers

An AI provider is the model service Enciva calls when you use the AI Assistant. You add it under Account → AI Providers.

The API key belongs to you. Enciva encrypts it on the server and uses it only to call that provider on your behalf. There is no Enciva-owned model key and no fallback to a server-wide key. Usage is billed by the provider on the account that issued the key.

Desktop does not keep a second copy of the key. It uses the providers saved on the Enciva server you are connected to.

Add a provider

Click Add provider.

Field What to enter
Name A label you will recognize, such as Work OpenAI
Type One of the types in the table below
API base URL Shown only for OpenAI Compatible. Named providers do not ask for it
Model The model name that provider should run. You can type any name the provider accepts
API key The secret from that provider. It is write-only
Default provider The provider the assistant selects when you have not chosen another

Click Save. The list shows the type, model, and whether a key is stored. OpenAI Compatible also shows the base URL. The list never shows the key.

On a later edit, leave API key blank to keep the saved key. If you change the provider address to a different host, enter the key for that new address. Enciva will not reuse the previous key on a different host.

Set default on a card makes that provider the default. Delete removes it after you confirm.

Supported providers

OpenAI, Anthropic (Claude), Google Gemini, and xAI (Grok) use a fixed endpoint. The form does not ask for a base URL, and a custom host is rejected. Use OpenAI Compatible when the endpoint is one you operate or a third-party service that speaks the OpenAI chat API.

Suggested model names are starting points. The model field is editable for every type. Claude Opus 5.5 is one of those names. Enciva does not switch request behavior from the model string.

Provider Endpoint Enciva calls Authentication Suggested models
OpenAI https://api.openai.com/v1/chat/completions Bearer API key. max_completion_tokens when a limit is set. response_format: json_object for pipeline generation gpt-4o-mini, gpt-4.1-mini
Anthropic (Claude) https://api.anthropic.com/v1/messages API key in the x-api-key header. Messages API with anthropic-version: 2023-06-01. max_tokens is always sent. Pipeline generation asks for the JSON contract in the prompt and does not send a structured-output schema. Reasoning effort is sent only when that model's list metadata advertises it claude-opus-5-5, claude-sonnet-5-5, claude-haiku-4-5
Google Gemini https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent API key in the x-goog-api-key header. responseMimeType: application/json for pipeline generation gemini-2.5-flash, gemini-2.5-pro
xAI (Grok) https://api.x.ai/v1/chat/completions Bearer API key. max_completion_tokens when a limit is set. response_format: json_object for pipeline generation grok-4, grok-3
OpenAI Compatible {base}/chat/completions Bearer API key. max_tokens when a limit is set. JSON is requested in the prompt only Any model name that endpoint serves

Temperature is not sent. Enciva does not retry a rejected call to discover which parameters the provider accepts.

An OpenAI Compatible base of https://api.anthropic.com, https://api.anthropic.com/v1, or a URL ending in /chat/completions or /v1/messages is stored as https://api.anthropic.com/v1. That calls Anthropic's OpenAI-compatibility endpoint. The Anthropic (Claude) type continues to call the native Messages API. Prefer the named type for Claude.

A Gemini provider saved with the older compatibility address https://generativelanguage.googleapis.com/v1beta/openai still calls generateContent. The next save stores https://generativelanguage.googleapis.com/v1beta. The saved key is not changed.

Each provider account needs its own API access. An OpenAI key does not call Anthropic, Gemini, or xAI. Create the key in that provider's console and confirm the account is allowed to call the model you typed.

These providers are covered by automated tests against mock HTTP servers. That is not a live check. Use the live integration checklist before treating a provider as verified against the real service.

How the key is stored

Enciva encrypts the key with ENCIVA_SECRET_KEY before writing it to the server database. API responses report has_key and return the name, type, base URL, and model. They do not return the key. A connection error names the provider and HTTP status and may include a short sanitized provider message. It does not include the key, authorization headers, or the raw response body.

The same secret key encrypts saved connection passwords. If you restore a database that already contains providers, the matching ENCIVA_SECRET_KEY must be present or those keys cannot be decrypted. See Configuration.

Providers are private to the account that created them. Another user on the same installation cannot list or call them.

Default provider

The assistant uses the provider you select on the AI Assistant page. When that page has not been changed, it uses the provider marked Default.

You can keep several providers and switch per request. Switching provider clears the review in progress.

Test connection

Test connection is available after the provider has been saved. Enciva sends one short completion, with an output budget of 1024 tokens, and waits up to 30 seconds. A non-empty reply shows Connection succeeded. This does not confirm that pipeline generation will succeed.

A generation waits up to 120 seconds for each provider call, and 300 seconds for the attempt including one correction. It asks for a JSON pipeline draft. That is a separate check. A successful connection test does not prove it. The model field stays editable. When the provider publishes a model list, Edit can fill suggestions from that list. A list failure leaves the saved model in place.

A model on your own network

An official provider always uses the HTTPS address in the table above.

OpenAI Compatible can point at another HTTPS endpoint. On Shared Enciva, that address must be a public HTTPS host. Private addresses, link-local addresses, and plain HTTP are rejected.

A self-hosted installation can allow a private or local endpoint, such as a model listening on the Enciva server, by setting ENCIVA_AI_ALLOW_PRIVATE_ENDPOINTS. Hosted installations ignore that setting. The model must be reachable from the Enciva server. The browser does not call it directly.

Troubleshooting

What you see What it means
OpenAI rejected the API key (HTTP 401). The provider name and status vary. The key is missing, revoked, or not valid for that endpoint. Enter a current key. A failed test does not display the key.
A message that includes HTTP 400 and the provider's error text The model or a request parameter was rejected. Check the model name. The text is shortened and secrets are removed.
A message that includes quota, billing, or credit The provider account is out of quota or needs billing.
… is rate limiting requests (HTTP 429). The provider account has hit its request limit. Wait, or check that provider's usage dashboard.
… is temporarily unavailable (HTTP 503). The provider reported a temporary capacity problem, including high demand. Try again later. The request itself is not changed.
… is overloaded (HTTP 529). The provider reported a temporary capacity problem.
OpenAI did not respond in time. The provider name varies. The call exceeded the connection-test limit (30 seconds) or one generation call (120 seconds).
The provider stopped before it returned an answer. The output limit was used up, often by a thinking model, before any answer text.
OpenAI could not be reached. The provider name varies. DNS, TLS, or the network path from the Enciva server failed.
This provider address is not allowed. The URL is not HTTPS, or it is a private address on an installation that does not allow private endpoints.
OpenAI redirects are not allowed. The provider name varies. The endpoint returned a redirect. Use the final HTTPS base URL.
Enter the API key for the new provider address. The host changed and the saved key was not sent again.
Generation was canceled. You clicked Cancel, or the page was left while a request was running.

Provider errors are about that provider's API. They do not mean a pipeline was saved or run.

See also