AI providers
Connect Avenvail to a language model, from Ollama on your own machine to OpenAI, Anthropic, Gemini and gateways such as OpenRouter.
An AI connection holds the address, key and default models of an AI service. Add one under Automations › Connections with Add connection, then choose the service:
| Group | Services |
|---|---|
| Local AI | Ollama, LM Studio, llama.cpp |
| AI providers | Anthropic, Google Gemini, OpenAI, Groq, Azure OpenAI |
| AI gateways | OpenRouter, Vercel AI Gateway |
| OpenAI-compatible | vLLM, or any other service with an OpenAI-compatible chat completions API, self-hosted or hosted |
Choosing a service only fills in its settings; you can change everything afterwards. At the bottom, the form names where steps' files and text go, taken from the address you enter, never from the kind of service.
Saving never depends on the service: you can save a connection whose service is down, without a model list, and type a model's name.
Settings
| Setting | |
|---|---|
| Address | The API's base address. For OpenAI-compatible services it usually ends in /v1. Shown first for local, self-hosted and custom services, and for Azure OpenAI; under Advanced settings for services with a fixed address, where you'd change it only for a proxy. |
| API key | Kept secret. Required for hosted services and gateways. Under Advanced settings for Ollama and LM Studio, which don't need one unless you put them behind a proxy. |
| Default model | Used by steps that don't choose their own. See Models. |
| Temperature | Advanced. How varied answers are, from 0 to 2. Empty (Model default) leaves it to the model. Steps can set their own. Not offered for Anthropic. |
| Max output tokens | Advanced. The longest answer a step may ask for. Empty (Server default) means 1,024. Steps can set their own. |
| Max input characters | Advanced. The most text a step may send. Empty means the server's limit. |
| Decision models | Advanced, OpenAI-compatible only. Whether the service also has decision models, and through which API: OpenAI decisions API (POST /decisions, as OpenAI and Vercel AI Gateway serve it) System One API (POST /systemone, as TypeSafe and llama.cpp serve it, text only) or OpenRouter decisions (OpenRouter's alpha decisions API, with images). Set for you by the OpenAI, Vercel AI Gateway, OpenRouter, Cloudflare Workers AI and llama.cpp presets, and for connections to those services saved before. Cloudflare Workers AI runs models such as Clef through Cloudflare's own API. |
| Default decision model | Used by steps that ask a decision model without choosing one. Shown with the main settings for services that offer decision models. |
| Extraction models | Advanced, OpenAI-compatible only. Whether the service also has extraction models, and through which API: Cloudflare Workers AI (Clairic, through Cloudflare's own API) or OpenRouter extractions (OpenRouter's alpha extractions API, with images but no yes-or-no values). Set for you by the Cloudflare Workers AI and OpenRouter presets, and for connections to those services saved before. |
| Default extraction model | Used by steps that ask an extraction model without choosing one. Shown with the main settings for services that offer extraction models. |
| Every model takes a schema | Advanced, OpenAI-compatible only. On for Ollama, LM Studio and vLLM, which hold any model's answer to a JSON Schema. Turn it off if your server rejects structured output. |
| Request timeout | Advanced. See Request timeout. |
Requests can take up to 3 minutes, since a local model may need to load first, and may be up to 16 MiB, enough for an image of 10 MiB.
Choosing a model
The same model picker is used for a connection's Default model and a step's Model. Open it to search the service's models by name or ID. Each model shows its context size and the features it's known to support.
- When adding a connection, the picker lists the models with the settings you've entered so far, before anything is saved. On a saved connection it shows the last list; Refresh asks the service again.
- If a refresh fails, the picker keeps the last list and says when it's from. Services that don't list models, or models the list leaves out, such as Azure deployment names, can be typed in: type the ID and choose Use "…". Avenvail sends it exactly as entered, and a model that isn't in the list is marked so.
- Gateways list models from many providers. The picker groups them by provider, and the provider menu shows one at a time.
- The feature buttons (Image input, Structured output, JSON mode) hide models known not to support a feature. Models whose support is unknown stay, marked unknown. A step's picker starts with the features the step needs.
- A step that uses decision models lists only the models the service marks as decision models, plus any it doesn't describe. A language model step leaves decision models out. Vercel AI Gateway and OpenRouter mark them; OpenAI's list doesn't, so type
gpt-6-luna. OpenRouter leaves decision and extraction models out of its usual model list, so Avenvail asks for them separately when the connection offers them. - On a connection, the selected model's features show under the picker as supported (✓), not supported (✕, struck through) or unknown (?). In a step, the information button beside the model shows them, and only a feature the step needs but the model lacks, or may lack, shows as a warning.
Avenvail never swaps a model for another: a model that disappears from the list stays selected, with a warning, until you change it.
In a step, Connection default follows the connection's default model, whose ID shows beneath the picker. Choose a model to pin the step to it instead.
A connection's page lists all its models under Models, where you can override what Avenvail knows about a feature or Check with test requests. See Model features.
Ollama
Recommended when files should stay on your own network. Install Ollama, pull a model, such as ollama pull llama3.2 or a vision model such as ollama pull gemma3 to classify images, and choose the Ollama preset.
The preset's address is http://localhost:11434/v1. Two things to change:
- When Avenvail runs in Docker,
localhostis the container itself. Use the address of the machine running Ollama, such ashttp://host.docker.internal:11434/v1on Docker Desktop or the server's LAN address, and start Ollama withOLLAMA_HOST=0.0.0.0so it listens there. - Private addresses are refused unless Allow private network addresses is on. For local and self-hosted services the switch is in the main settings and starts on for admins; only admins can turn it on. See Outside addresses only.
llama.cpp
llama-server can serve decision models on your own machine, such as ggml-org/Kev-4B-GGUF, through the System One API. Choose llama.cpp (http://localhost:8080/v1), change the address as for Ollama, and set Default decision model to the model's name. Start the server with the model, such as llama-server -hf ggml-org/Kev-4B-GGUF:Q8_0.
Decision model support in llama.cpp is new: use a build that includes it. The System One API takes text only, so decision steps on this connection can't send an image. The same server also answers language model steps through its chat API.
LM Studio and vLLM
Choose LM Studio (http://localhost:1234/v1) or vLLM (http://localhost:8000/v1) and change the address the same way as for Ollama. For vLLM, add the API key if you started it with --api-key.
OpenAI and Groq
Click Get a key next to API key to open the provider's key page, create a key and paste it. OpenAI models such as gpt-4.1-mini take images and structured output; Groq's capabilities depend on the model, so use Check with test requests when unsure.
OpenAI also answers decision steps through its Decisions API, with gpt-6-luna, the preset's default decision model. It takes images.
Cloudflare Workers AI
Choose Cloudflare Workers AI and replace YOUR-ACCOUNT-ID in the address with your Cloudflare account ID, from the Workers AI page of the Cloudflare dashboard: https://api.cloudflare.com/client/v4/accounts/YOUR-ACCOUNT-ID/ai/v1. Create an API token with the Workers AI - Read and Workers AI - Edit permissions, and paste it as the API key. The Create a Workers AI API Token template in the Cloudflare dashboard sets both.
- Decision steps use Clef (
@cf/cloudflare/clef, the preset's default decision model). It takes text and images. - Extract steps use Clairic (
@cf/cloudflare/clairic, the preset's default extraction model). It takes text and up to 4 PNG, JPEG or WebP images, and reads every value type. - Language model steps use Cloudflare's OpenAI-compatible chat API with any Workers AI text model, such as
@cf/meta/llama-3.3-70b-instruct-fp8-fast. Avenvail lists Workers AI models through Cloudflare's model search, since its OpenAI-compatible API has no model list.
A bare model name such as clairic means Cloudflare's own model, @cf/cloudflare/clairic. Cloudflare's decision and extraction models are in preview.
Azure OpenAI
Choose Azure OpenAI and replace YOUR-RESOURCE in the address with your resource's name: https://YOUR-RESOURCE.openai.azure.com/openai/v1. This is Azure's v1 API, which needs no api-version. Use your deployment names as models; type them in the picker, since Azure doesn't list deployments.
Gateways
OpenRouter and Vercel AI Gateway take one key and forward each request to one of many providers. Name models as the gateway does, such as openai/gpt-4.1-mini or google/gemini-2.5-flash.
- The gateway, not Avenvail, chooses which provider serves a request, and it may fall back to another provider when one fails, by its own routing rules and your account's settings there. Files a step sends may reach any provider the gateway routes to.
- Both gateways report each model's features in their model list, so the picker shows them as reported by the provider.
- Both offer decision models. Vercel AI Gateway uses the OpenAI decisions API and takes images for models that do, such as
openai/gpt-6-luna-decisions(the preset's default). Text-only models, such astypesafe-ai/jev, refuse images. OpenRouter uses its own decisions API, which takes images for models that read them; choose a decision model such astypesafe/jev-1.14as its default decision model. - OpenRouter also offers extraction models, such as
cloudflare/clairic, through its alpha extractions API. It takes text and up to 4 PNG, JPEG or WebP images, but doesn't read yes-or-no values, so the editor flags an extract step that asks for one. OpenRouter's docs say only some field types read images, so if it refuses a step with an image, try the same model on a Cloudflare Workers AI connection. Vercel AI Gateway lists extraction models but offers them only through its AI SDK, not an API Avenvail can call. - When the gateway says which provider answered, the run records it as
servedByin the step'saioutput. Vercel AI Gateway reports it; OpenRouter does when it includes the provider in its answer.
Anthropic
Create a key in the Claude Console (Get a key opens it) and choose Anthropic. Claude models take images and structured output. Avenvail doesn't send a temperature to Anthropic, so steps use the model's default.
Gemini
Create a key in Google AI Studio (Get a key opens it) and choose Google Gemini. Gemini models take images, structured output, JSON mode and temperature.
Custom
Choose OpenAI-compatible API for any other service with an OpenAI-compatible chat completions API. Enter its address, ending where /chat/completions and /models follow. If it rejects response_format, mark structured output and JSON mode as Not supported in the model features: steps then add the schema to their instructions and check the answer.
Testing the connection
Test connection runs the usual connection test: the service must answer, accept the key, and, when a default model is set and the service lists models, know that model. The test sends no chat request, so it costs nothing.