AI Provider
An AI Provider connection holds the API key that the AI Text and AI Agent blocks use to call a language model. The key stays in the connection instead of the workflow, and Blokkio sends it in the header each provider expects.
Supported providers
The provider is chosen in the AI block's Provider field, or pinned on the connection (see below).
| Provider | Key sent as | Default endpoint | Base URL needed |
|---|---|---|---|
| OpenAI | Authorization: Bearer … | https://api.openai.com/v1 | No |
| Anthropic | x-api-key: … | https://api.anthropic.com | No |
| Google Gemini | Authorization: Bearer … | https://generativelanguage.googleapis.com/v1beta/openai | No |
| Mistral | Authorization: Bearer … | https://api.mistral.ai/v1 | No |
| OpenRouter | Authorization: Bearer … | https://openrouter.ai/api/v1 | No |
| Azure OpenAI | api-key: … | (none) | Yes, e.g. https://my-resource.openai.azure.com |
| OpenAI-compatible (Groq, Ollama, vLLM, LM Studio, Together…) | Authorization: Bearer … | (none) | Yes, e.g. https://api.groq.com/openai/v1 |
Fields
The generic AI Provider template (under Apps → Generic → Any REST API) has these fields:
| Field | Key | Default | Description |
|---|---|---|---|
| API Key | api_key | — | The provider's API key |
| Provider | provider | Use the block's provider | Optional. Pins the connection to one provider (OpenAI, Anthropic, Azure OpenAI, Google Gemini, Mistral, OpenRouter, OpenAI-compatible), which decides the header the key is sent in. Leave it on Use the block's provider to follow the AI block's Provider field |
The base URL is not part of the connection. Set it on the AI block (Base URL).
Setting it up
- Go to Apps, open Any REST API on the Generic tab and click Connect → AI Provider.
- Give the connection a name (for example
Anthropic production), paste your API key (or click Use secret to reference a project secret) and, optionally, pick the Provider. Click Create. - In an AI Text or AI Agent node, set:
- Provider, for example
Anthropic - AI Provider Connection: the connection you created
- Model, for example
claude-sonnet-4-5,gpt-4.1orgemini-2.5-flash. For Azure OpenAI, use the deployment name. - Base URL: only for Azure OpenAI and OpenAI-compatible endpoints
- Provider, for example
You can use one connection with several nodes and models of the same provider. Create a separate connection per provider, because each provider issues its own keys.
The OpenAI app
For OpenAI you can also connect the official OpenAI app (Apps → OpenAI → Connect). It creates an AI
Provider connection pinned to the OpenAI provider and to api.openai.com, so you can select it as the AI
Provider Connection of AI Text and AI Agent nodes. It also comes with ready-made actions, such as Create chat
completion, for the App Action block. See Official apps.
:::tip Pin the key to the provider's domain
The generic AI Provider template has no allowed domains, so
its connections may be sent to any host. To restrict a key to the provider's API, create a
custom app: go to Apps → Custom app → New custom app, start from AI Provider,
set Allowed domains to the provider's API host (for example api.anthropic.com or *.openai.azure.com),
save, and connect it.
:::
:::note Self-hosted workers On a self-hosted worker, set the connection's Provider when you use Anthropic or Azure OpenAI. :::
OpenAI-compatible endpoints
Choose OpenAI-compatible for any service that implements the OpenAI Chat Completions API. Set Base URL to
the endpoint including its version path, such as https://api.groq.com/openai/v1. The connection is optional for
this provider: if the endpoint needs no key, leave AI Provider Connection empty.
Legacy API key field
Older workflows may use the API Key (legacy) field on the AI block. It is only used when no connection is selected. Move such keys to an AI Provider connection.
Per-environment keys
Like any connection, an AI Provider connection can have a different key per
environment, for example a low-limit key for Staging. See
per-environment overrides.