Skip to content

Commit 3d4ce0a

Browse files
docs(ai-agents): add Cerebras (OpenAI-compatible) provider details
1 parent 196a418 commit 3d4ce0a

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

docs/ff-integrations/ai/ai-agents.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
slug: /integrations/ai-agents
33
title: AI Agents
44
description: Learn how to add an AI Agent in your FlutterFlow app.
5-
tags: [AI, Gemini, Integration]
5+
tags: [AI, Cerebras, Gemini, Integration]
66
sidebar_position: 1
7-
keywords: [FlutterFlow, AI, Gemini, Integration, OpenAI, Anthropic, Agent Builder]
7+
keywords: [FlutterFlow, AI, Cerebras, Gemini, Integration, OpenAI, Anthropic, Agent Builder]
88
---
99

1010
# AI Agents
1111

1212
AI Agents in FlutterFlow enable you to integrate AI-powered interactions using advanced LLMs (Large Language Models) directly into your app. An AI Agent is essentially a configurable chatbot or AI-powered service defined and managed within FlutterFlow.
1313

14-
By selecting a provider (Google, OpenAI, or Anthropic), choosing the model (e.g., GPT-4, Claude, Gemini), and specifying system instructions and preloaded messages, you can create an agent to handle user input in a context-aware way.
14+
By selecting a provider (Google, OpenAI, Anthropic, or an OpenAI-compatible provider like Cerebras), choosing the model (e.g., GPT-4, Claude, Gemini, Llama), and specifying system instructions and preloaded messages, you can create an agent to handle user input in a context-aware way.
1515

1616
Here are some examples of AI Agents:
1717

@@ -60,18 +60,29 @@ It is always recommended to include at least one sample conversation with both a
6060

6161
#### Model Settings
6262

63-
- **Provider**: Allows you to select the AI vendor for this agent. Currently, we support **OpenAI**, **Google,** and **Anthropic**.
64-
- **OpenAI & Anthropic**: If you choose OpenAI or Anthropic, FlutterFlow will create a [Cloud Function](https://firebase.google.com/docs/functions) in Firebase to relay requests to the AI API securely. Hence, your Firebase project must be on a [Blaze](https://firebase.google.com/pricing) plan (paid) to deploy the necessary cloud function. **Note that** the deployed cloud function will only be accessible to authenticated users.
63+
- **Provider**: Allows you to select the AI vendor for this agent. FlutterFlow supports **OpenAI**, **Google,** and **Anthropic**. You can also use **Cerebras** via the **OpenAI** provider because Cerebras offers an OpenAI-compatible API.
64+
- **OpenAI, Anthropic, and OpenAI-compatible providers (e.g., Cerebras)**: FlutterFlow will create a [Cloud Function](https://firebase.google.com/docs/functions) in Firebase to relay requests to the AI API securely. Hence, your Firebase project must be on a [Blaze](https://firebase.google.com/pricing) plan (paid) to deploy the necessary cloud function. **Note that** the deployed cloud function will only be accessible to authenticated users.
6565
- **Google**: When selecting Google as your provider, you need to enable the following in your Firebase project.
6666
- [**Firebase Authentication**](../authentication/firebase-auth/auth-initial-setup.md): This ensures secure interactions between users and your AI agents.
6767
- [**Vertex AI**](https://firebase.google.com/docs/vertex-ai): Vertex AI is Google's comprehensive AI platform used to manage and deploy machine learning models. FlutterFlow internally uses the [`firebase_vertexai`](https://pub.dev/packages/firebase_vertexai) package to integrate Google's AI models within your Firebase-connected project.
6868
- **Model**: Choose from the list of available models for the given provider. Models differ in capabilities, supported parameters, and cost structure.
69-
- **API Key:** Enter your provider’s API key here when using **OpenAI** or **Anthropic**. FlutterFlow securely stores this key within the deployed cloud function to ensure it remains hidden from end-users and network requests. If you're using **Google,** you won't see the API Key field, as authentication is managed through Vertex AI in your Firebase project.
69+
- **API Key:** Enter your provider’s API key here when using **OpenAI**, **Anthropic**, or an OpenAI-compatible provider like **Cerebras**. FlutterFlow securely stores this key within the deployed cloud function to ensure it remains hidden from end-users and network requests. If you're using **Google,** you won't see the API Key field, as authentication is managed through Vertex AI in your Firebase project.
70+
71+
**Using Cerebras (OpenAI-compatible)**
72+
73+
To use Cerebras inside FlutterFlow AI Agents:
74+
75+
- Set **Provider** to **OpenAI**.
76+
- Set **OpenAI base URL** to `https://api.cerebras.ai/v1`.
77+
- Set **API Key** to your Cerebras API key.
78+
- Choose a model that is available on Cerebras (see [Models](/models/overview)).
7079

7180
:::tip
7281

7382
You can obtain your OpenAI API key from [**OpenAI API Keys**](https://platform.openai.com/api-keys) page and your Anthropic API key from [**Anthropic Console**](https://console.anthropic.com/settings/keys).
7483

84+
You can obtain your Cerebras API key from [cloud.cerebras.ai](https://cloud.cerebras.ai/).
85+
7586
:::
7687

7788
#### Request Options
@@ -145,7 +156,7 @@ Once configured, click the **Publish** button to make it live.
145156

146157
:::info[For non Google Agents]
147158

148-
After you successfully deploy the agent, any changes made to its configuration—such as modifying the system message, model, or temperature will require you to redeploy the Agent. For Google agents, the configuration is stored at client-side, so redeployment isn't necessary.
159+
After you successfully deploy the agent, any changes made to its configuration—such as modifying the system message, model, or temperature will require you to redeploy the Agent for OpenAI, Anthropic, and OpenAI-compatible providers (including Cerebras). For Google agents, the configuration is stored at client-side, so redeployment isn't necessary.
149160
:::
150161

151162
Now you can use the AI agent in your FlutterFlow app logic using the following actions.

0 commit comments

Comments
 (0)