Skip to main content

How to connect your own AI model with your own API key (BYOK) in Formaloo

Learn how to connect your own AI provider and API key to Formaloo AI, then add, test, edit and remove models from your workspace settings in a few clicks.

What you'll set up

By the end of this guide, you'll have your own AI model connected to your Formaloo workspace: a provider you choose, a model you pick, and an API key that stays encrypted. You'll also know how to test it, edit it and remove it.

Formaloo AI has always worked out of the box on Formaloo-managed models, with nothing to set up. What's new is Bring your own keys (BYOK): you can add a model from your own provider account to your workspace.

When to use this

Connect your own model when:

  • Your security or compliance team has approved specific AI providers, and you want Formaloo AI to use one of them.

  • Your company already has an account with OpenAI, Gemini, Anthropic, Mistral, Google Vertex AI, AWS Bedrock or Azure OpenAI.

  • You want to pick the exact model your workspace uses.

  • You need to rotate a key and want to replace it without rebuilding anything.

  • You want to confirm a connection works with a quick test prompt before you rely on it.

The sections below follow that order: find the card, add a model, test it, edit it, and remove it.

When to use your own model vs Formaloo AI

  • Stay on Formaloo AI when you want zero setup. It's ready as soon as your workspace is.

  • Add your own model when your team needs a specific provider or model behind Formaloo AI.

Where it works

BYOK lives in your workspace settings, so it belongs to the whole workspace, not to a single form or project. Add a model once and it's set up in one place.

Find the BYOK card

Start here to see where your models live and what each row shows.

Open your workspace settings and stay on the General tab. Scroll to the Bring your own keys (BYOK) card. It sits below the AI features card and above Workspace plan.

💡 Keep Allow AI features in this workspace turned on. When it's off, the Form Creation Agent, the Import Agent, the AI menu in the form editor, Agent Fields, AI Content and the Analyst Agent are removed for every member, and existing Agent Fields and AI Content stop running.

Your saved models appear under Your models. Each row shows the name you gave it, the model, a Configured label, and Test, Edit and delete buttons. Select Add model to start.

The card is the only place you manage BYOK, so you'll come back here for every step that follows.

Add a model

Use this when you're connecting a provider for the first time, or adding another model.

1. Open the panel: Select Add model. A side panel opens.

2. Name your model: Enter a Model name you'll recognize later, such as "Support assistant".

3. Choose a provider: Open Provider and pick one of the eight options: OpenAI, Gemini, Anthropic, Mistral, Vertex AI, AWS Bedrock, Azure OpenAI or Custom.

4. Choose the model: Open Model and pick one from the list for that provider. You can also type to search it. For Azure OpenAI, enter your Model / deployment name. For Custom, enter your Model ID.

5. Add your credentials: The fields depend on the provider you picked:

  • OpenAI, Gemini, Anthropic and Mistral: your API key.

  • Vertex AI: your service account JSON and your location.

  • AWS Bedrock: your AWS access key ID, your AWS secret access key and your AWS region.

  • Azure OpenAI: your API key and your Azure endpoint.

  • Custom: your API key and your base URL.

Your credentials are encrypted and stored securely, and they are never shown again after you save.

6. Save: Select Save model. The model appears under Your models with a Configured label.

Saving adds the model to your list. Next, run a quick test to confirm the connection works.

Test a model

Test a model whenever you add one or change one.

1. Open the test: On the model's row, select Test. The Test model window opens.

2. Write a prompt: Under Prompt, type a simple prompt. You can use up to 2,000 characters.

3. Run it: Select Test model. The reply shows under Response.

A short prompt, like a greeting, is enough. You're checking that the connection works, not judging the answer. If you don't get a reply, check the provider, the model and your credentials, then edit the model to correct them.

Edit a model

Use this to rename a model, switch to another model, or replace a key.

1. Open the editor: On the model's row, select Edit.

2. Change what you need: You can update the Model name, the Provider and the Model.

3. Handle the key: The API key field says "Leave blank to keep the existing key". Leave it empty to keep the saved key, or enter a new key to replace it.

4. Save: Select Save model.

Rotating a key takes one edit, and the name and model can stay exactly as they are.

Remove a model

Use this when you no longer need a model, or when a provider account is closed.

1. Open the delete window: On the model's row, select the trash icon.

2. Read the message: The Delete LLM model? window explains that this removes the model and its stored credentials from your workspace, and that Formaloo AI features that used this model may stop working.

3. Confirm: Select Delete model. Select Cancel if you'd rather keep it.

Removing a model deletes its saved key, so if you add the same model again later, you'll enter the key again.

What you now have

Your own AI provider is now connected in your workspace settings, with a name, a model and an encrypted key. You can test it with a prompt, replace the key in one edit, and remove it whenever you want, all from the same card.

What's next

Ready-to-use templates

Don't build this from scratch. We've already put it together for you.

Don't have a form yet? Create one in seconds with the Form Creation Agent. Describe what you need and Formaloo builds the form for you.

Learn more how-tos

Did this answer your question?