# Where AI models process data

Mindflow is **LLM-agnostic**: the platform orchestrates the call, and you choose which model answers it. This page
explains the two ways to supply models, where inference runs, and what Mindflow stores in your tenant. Enabling
providers is an Org Admin action. For the click-by-click setup, see
[Bring your own LLM](../bring-your-own-llm/).

## When to use

- You need to decide whether builders should use Mindflow-managed models, your own provider contract, or both.
- Security or compliance asked where AI data is **stored** versus where it is **processed**.
- You have an EU-residency requirement for inference and need to know which providers to leave off.
- Prefer [Bring your own LLM](../bring-your-own-llm/) when you already know you will attach your own credential.

Before you begin, you need **Org Admin** rights to change **Allowed AI providers**. Builders pick a model on each
[AI··Task](../../../build/use-ai-in-flows/ai-task-a-simple-guide/) or in an
[AI··Room](../../../operate/ai-rooms-turning-prompts-into-powerful-actions/) from the providers you enable.

## Two ways to supply models

Both options serve the same product surfaces: **AI··Task** in a flow, **AI··Agent** tools, **AI··Rooms**, and Studio
assist features such as **AI··Build**, **AI··Note**, and **AI··QuickEdit**. Those assist features use models from
**Allowed AI providers** (with product defaults). They do not bypass your provider selection. In-product support chat
is a separate help channel, not an organization model.

The choice changes **where inference runs** and **who holds the model contract**. It does not change how you design
flows.

You can enable several providers at once. Builders then pick the model per AI··Task or per room. If the same model
family is reachable through two providers, the provider is part of the selection.

|                      | Mindflow-managed Amazon Bedrock                                                          | Mindflow-managed OpenAI                                                          | Customer-managed (bring your own)                                                                                        |
| -------------------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Model contract       | Mindflow                                                                                 | Mindflow                                                                         | You                                                                                                                      |
| Models               | Amazon Bedrock catalog in Studio (Anthropic Claude, Amazon Nova, and Mistral on Bedrock) | OpenAI catalog in Studio                                                         | Anthropic, Azure AI Foundry, Google Gemini, Mistral AI, your own OpenAI key, or models behind a LiteLLM or Agent Gateway |
| Setup                | None. New organizations enable Bedrock by default                                        | None. New organizations enable OpenAI by default                                 | Org Admin creates a credential, then enables the provider under **Allowed AI providers**                                 |
| Where inference runs | In the Bedrock inference region Mindflow configured for your tenant (Europe by default)  | On OpenAI’s API infrastructure. Mindflow cannot currently guarantee EU residency | In the region of **your** provider deployment or gateway                                                                 |
| Who pays for tokens  | [AI··Credits](../ai-credits/)                                                            | [AI··Credits](../ai-credits/)                                                    | Your provider bills you. Those calls do not consume AI··Credits                                                          |
| Best when            | You want models immediately, with EU-resident inference on a typical European tenant     | You specifically want an OpenAI model and EU residency is not required           | You need your own contract, region, or a private model                                                                   |

:::note
Amazon Bedrock in Studio is always **Provided by Mindflow**. You cannot attach a customer Bedrock credential. To call
Bedrock in an account you control, put an OpenAI-compatible gateway (LiteLLM or Agent Gateway) in front of it.
:::

## Where Mindflow stores workspace data

Everything Mindflow **stores**—flows, credentials, run history, room conversations—lives in your Mindflow tenant, not
at the model provider.

- Your tenant is dedicated to your organization.
- The default location is **Europe (Frankfurt)**. Mindflow can place a tenant in another supported region when that is
  part of your agreement.
- Provider credentials authenticate the call to the provider endpoint. They are stored encrypted. Mindflow does not
  put credential secrets into the prompt. The model only receives the prompt content you configured.

That tenant region answers **where AI data is stored**. The sections below answer **where AI data is processed**
(inference).

## Mindflow-managed models

Mindflow calls these models through provider accounts it operates. You do not create a credential. Models appear in
the picker when the provider is enabled under **Allowed AI providers**. Consumption uses
[AI··Credits](../ai-credits/).

### Amazon Bedrock

**Where processing happens.** Inference runs on Amazon Bedrock in the inference region Mindflow configured for your
tenant. On a typical European tenant that region is in the EU: the prompt leaves your tenant, Bedrock processes it in
Europe, and the completion returns to your tenant. Some tenants use a different inference region—confirm with Mindflow
if your workspace is not in Europe.

Amazon Bedrock is a **managed inference service**, not a direct call to Anthropic, Amazon, or Mistral as vendors. Your
prompt is not forwarded to those vendors’ own APIs.

**What the provider keeps.** Amazon states that model vendors do not receive customer prompts and completions through
Bedrock. Review current retention and training terms in
[Amazon Bedrock — Data protection](https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html).

:::tip
Use Mindflow-managed Bedrock, and leave OpenAI disabled, when you need European processing with no credential setup.
:::

### OpenAI

**Where processing happens.** Requests go to OpenAI’s API. In the current Mindflow-managed configuration, **Mindflow
cannot guarantee that processing stays in the European Union**.

**What the provider keeps.** Mindflow disables OpenAI API response storage on that path. OpenAI’s own privacy and
retention terms still apply. See [OpenAI enterprise privacy](https://openai.com/enterprise-privacy/) and
[OpenAI — Your data](https://platform.openai.com/docs/guides/your-data).

:::caution
If your organization requires EU-resident AI processing, do not enable Mindflow-managed OpenAI. Use Mindflow-managed
Bedrock, or a customer-managed OpenAI or Azure AI Foundry deployment that you configured for EU residency.
:::

## Customer-managed models

An Org Admin creates a credential for your provider, then enables that provider in **Organization → Allowed AI
providers**. Mindflow builds the request and sends it over TLS to **your** endpoint with **your** key. Residency,
logging, and retention on the model side follow **your** contract—or your own infrastructure when the model is
self-hosted.

Setup for each provider is in [Bring your own LLM](../bring-your-own-llm/). Anthropic, Google Gemini, Mistral AI, and
Azure AI Foundry require your credential. OpenAI can use **Provided by Mindflow** or your own OpenAI credential.
LiteLLM and Agent Gateway may be off for your tenant until Mindflow enables them.

### Anthropic

You provide an Anthropic API key (`x-api-key`). Inference runs on Anthropic’s API under **your** contract, including
any residency or retention terms you negotiated. See
[Anthropic — API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).

### Azure AI Foundry

You provide the Azure endpoint, model deployments (name and id), and API key. Inference runs in the Azure geography of
**your** resource, including Global or Data zone deployment types you chose in Azure. See
[Azure — Data, privacy, and security for Foundry Models](https://learn.microsoft.com/en-us/legal/cognitive-services/openai/data-privacy).

### Your own OpenAI, Google Gemini, or Mistral AI account

Requests use your API key and run under your contract, including any zero-retention or residency terms you negotiated.
Check that provider’s documentation for where your organization’s requests are served.

- [OpenAI enterprise privacy](https://openai.com/enterprise-privacy/)
- [Gemini API additional terms](https://ai.google.dev/gemini-api/terms)
- [Mistral — Privacy and data controls](https://docs.mistral.ai/admin/monitor-comply/privacy-data-controls)

### LiteLLM or Agent Gateway, including private and self-hosted models

Expose the model behind your LiteLLM proxy or Agent Gateway and list those models on the matching credential in
Mindflow. That is how you reach models that have no first-class vendor in Studio, including open-weight models you host
and Amazon Bedrock in an account you control.

The gateway URL must be reachable from Mindflow over HTTPS. See
[LiteLLM virtual keys](https://docs.litellm.ai/docs/proxy/virtual_keys) and
[Agent Gateway virtual keys](https://agentgateway.dev/docs/standalone/latest/documentation/llm/cost-controls/virtual-keys/).

:::tip
Use a self-hosted model behind LiteLLM or Agent Gateway when prompts must stay on infrastructure you operate.
:::

Apply least privilege: declare only the models builders should select, and scope the provider key accordingly. Who can
use AI features is governed by [Manage permissions (RBAC)](../../manage-access/manage-permissions-rbac/).

## What Mindflow stores

Separate the **processing** layer (the model provider) from the **application** layer (your tenant).

**At the provider.** Retention and training follow that provider’s terms. Mindflow does not override them, except where
this page states a Mindflow API setting (OpenAI response storage disabled; Bedrock called as Bedrock rather than the
vendor API).

**In your Mindflow tenant.** Mindflow keeps application history of prompts and results for audit, replay, and product
experience. That history is stored in your tenant and expires with retention settings. There is no separate switch that
turns history off while keeping the run.

It appears in:

- Flow run history and run logs
- AI··Agent and AI··Task run data
- AI··Room conversations

You control how long it survives:

- **Organization → Audit log retention** — default **3 months**, maximum **1 year**. The shortest unit in Studio is
  **1 day**.
- **Flow settings → Run logs → Retention period** — default **1 week**, maximum **1 year**, shortest unit **1 day**.

**Redact run log data** on a flow obfuscates new run logs in Studio. The events are still stored until retention
expires. Shorter retention is the way to minimize how long AI inputs and outputs remain available.

Audit export for SIEM is covered in [Export audit logs](../exporting-logs/). Flow retention is also described in
[Create flows and agents](../../../../getting-started/flows-and-agents/).

## No retrieval index from your data

Mindflow does **not** build a retrieval-augmented generation (RAG) index from your documents. Context is passed to the
model at execution time (long-context prompting). There is no chunking pipeline, embedding store, or vector database
of customer content.

The only durable copy of that content in Mindflow is the application history above, which your retention settings
control.

## Training on your data

Mindflow does not fine-tune foundation models on your tenant data. Whether a **provider** trains on API traffic is
governed by **that provider’s** terms and by the contract on the account that holds the key (Mindflow-managed or
yours).

| Provider                       | Start here                                                                                                            |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| Amazon Bedrock                 | [Amazon Bedrock — Data protection](https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html)         |
| Anthropic Claude (via Bedrock) | Bedrock data-protection terms apply to the Bedrock path, not Anthropic’s consumer API                                 |
| Anthropic (your credential)    | [Anthropic — API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention)        |
| OpenAI                         | [OpenAI enterprise privacy](https://openai.com/enterprise-privacy/)                                                   |
| Azure AI Foundry               | [Azure — Data, privacy, and security](https://learn.microsoft.com/en-us/legal/cognitive-services/openai/data-privacy) |
| Google Gemini                  | [Gemini API additional terms](https://ai.google.dev/gemini-api/terms)                                                 |
| Mistral AI                     | [Mistral — Privacy and data controls](https://docs.mistral.ai/admin/monitor-comply/privacy-data-controls)             |

## Example

### Match a residency requirement

| Your requirement                                           | Recommended option                                                                                                  |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| EU-resident processing, no credential setup                | Mindflow-managed Amazon Bedrock on a European tenant. Leave OpenAI disabled                                         |
| A specific region, or your own provider contract and DPA   | Customer-managed Anthropic, Azure AI Foundry, OpenAI, Gemini, or Mistral—or Bedrock behind LiteLLM or Agent Gateway |
| Prompts must stay on infrastructure you operate            | Self-hosted model behind LiteLLM or Agent Gateway that Mindflow can reach over HTTPS                                |
| Only approved models may appear for builders               | Enable only those providers, and list only those models on the credential                                           |
| Minimize how long AI inputs and outputs remain in Mindflow | Reduce organization audit retention and flow **Retention period** (shortest unit: 1 day)                            |

## Keep in mind

- **Stored** versus **processed** are different: tenant data lives in your Mindflow region; inference follows the
  provider you enable (Bedrock EU path versus OpenAI API, and so on).
- Mindflow-managed **OpenAI** does not come with an EU processing guarantee; use Bedrock or customer-managed EU
  deployments when compliance requires it.
- Application history (runs, rooms) stays in your tenant until retention expires; shortening retention limits exposure
  in Mindflow, not at the provider.

## Related

- [Bring your own LLM](../bring-your-own-llm/) — create the credential and enable the provider
- [AI··Task: A simple guide](../../../build/use-ai-in-flows/ai-task-a-simple-guide/) — pick a model in a flow
- [AI··Rooms: Turning prompts into powerful actions](../../../operate/ai-rooms-turning-prompts-into-powerful-actions/)
- [Understand AI··Credits](../ai-credits/) — credit costs for Mindflow-managed models
- [Monitor quotas](../quotas-admin-only/) — plan limits and AI··Credits consumption
- [Manage permissions (RBAC)](../../manage-access/manage-permissions-rbac/)
- [Export audit logs](../exporting-logs/)
- [Create flows and agents](../../../../getting-started/flows-and-agents/) — flow retention and redaction
