Skip to main content

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).

ProviderKey sent asDefault endpointBase URL needed
OpenAIAuthorization: Bearer …https://api.openai.com/v1No
Anthropicx-api-key: …https://api.anthropic.comNo
Google GeminiAuthorization: Bearer …https://generativelanguage.googleapis.com/v1beta/openaiNo
MistralAuthorization: Bearer …https://api.mistral.ai/v1No
OpenRouterAuthorization: Bearer …https://openrouter.ai/api/v1No
Azure OpenAIapi-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:

FieldKeyDefaultDescription
API Keyapi_key—The provider's API key
ProviderproviderUse the block's providerOptional. 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​

  1. Go to Apps, open Any REST API on the Generic tab and click Connect → AI Provider.
  2. 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.
  3. 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.1 or gemini-2.5-flash. For Azure OpenAI, use the deployment name.
    • Base URL: only for Azure OpenAI and OpenAI-compatible endpoints

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.