---
title: "Connect AI Provider"
description: "Connect Google Gemini, OpenAI, or Anthropic Claude through WordPress Connectors and choose a model for MazeGraph."
image: "https://mazegraph.com/docs/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://mazegraph.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect AI Provider

A provider supplies the model that writes MazeGraph’s replies. WordPress’s **Settings → Connectors** screen features Google, OpenAI, and Anthropic. Each has its own WordPress.org connector plugin. Install one to get started, or install all three if you want to use models from each provider. Add each API key once in WordPress, then choose which model MazeGraph should use by default. Open the screen from **Settings → Connectors** or visit `/wp-admin/options-connectors.php` on your site.

All three connector plugins are free to install from WordPress.org. Provider API access is separate: providers may offer free quotas, set usage limits, or charge for use. Check the provider’s current terms and billing before sending requests.

## Where credentials and requests go

WordPress manages provider credentials in **Settings → Connectors**. If you enter a key there, WordPress saves it as a setting in your site’s database and masks it in the screen, but does not encrypt it. WordPress can also read a key from a server environment variable or PHP constant. MazeGraph never reads, stores, or displays the provider key; the WordPress connector uses it to authenticate requests to that provider.

When you send a message, WordPress’s AI Client sends the message and the context needed for that reply, which may include conversation history, instructions, tool descriptions, and tool results, to the selected provider. The provider’s response returns through WordPress. A connector may also contact the provider to check which models are available. MazeGraph sends no chat data or usage analytics to MazeWP servers. Your conversations and Content Studio documents are stored on your WordPress site and follow its retention settings. See [what a provider request may contain](/docs/data-and-privacy/provider-requests/).

The credentials in Connectors are site-wide, so other compatible WordPress plugins may also use a connected provider. Only install plugins you trust. For more about how WordPress stores API keys, see its [Connectors documentation](https://wordpress.org/documentation/article/settings-connectors-screen/).

## Connect Google Gemini

WordPress.org’s [AI Provider for Google](https://wordpress.org/plugins/ai-provider-for-google/) connector registers Gemini text models with the WordPress AI Client that MazeGraph uses. Google supplies the available model list, which can change over time.

1. In WordPress, open **Settings → Connectors**. Find **Google** and select **Install**.
2. Create a Gemini API key in [Google AI Studio](https://aistudio.google.com/apikey).
3. Return to the Google connector, enter the key, and select **Save**.
4. In **MazeGraph → Settings**, confirm Google appears under **Connected providers**.

## Connect OpenAI

WordPress.org’s [AI Provider for OpenAI](https://wordpress.org/plugins/ai-provider-for-openai/) connector registers OpenAI text models with the WordPress AI Client that MazeGraph uses. The available model list can change as OpenAI updates its API.

1. In **Settings → Connectors**, find **OpenAI** and select **Install**.
2. Create an API key in your [OpenAI Platform account](https://platform.openai.com/api-keys).
3. Return to the OpenAI connector, enter the key, and select **Save**.
4. In **MazeGraph → Settings**, confirm OpenAI appears under **Connected providers**.

OpenAI API usage is billed separately from a ChatGPT subscription. Check your [API billing settings](https://help.openai.com/en/articles/9039756-managing-billing-for-chatgpt-and-the-api-platform) before using it.

## Connect Anthropic Claude

WordPress.org’s [AI Provider for Anthropic](https://wordpress.org/plugins/ai-provider-for-anthropic/) connector registers Claude models with the WordPress AI Client that MazeGraph uses. Anthropic supplies the available model list, which can change over time.

1. In **Settings → Connectors**, find **Anthropic** and select **Install**.
2. Create an API key in the [Claude Console](https://platform.claude.com/settings/keys).
3. Return to the Anthropic connector, enter the key, and select **Save**.
4. In **MazeGraph → Settings**, confirm Anthropic appears under **Connected providers**.

## Choose a default model

After connecting a provider, open **MazeGraph → Settings** and select a text model under **Default model**. New sessions use this model unless you choose another one for a session. You can leave the setting at **Let WordPress choose** if you do not need to pin a model. See [assistants and models](/docs/workspace/assistants-and-models/).

Source: https://mazegraph.com/docs/get-started/connect-ai-provider/index.mdx
