Skip to main content

Configure AI platforms and models in Retool AI

Learn how to use your own API keys for AI providers.

Retool supports a number of AI platforms and their models:

You can get started with Retool AI without needing any API credentials using the Retool-managed OpenAI connection. This enables you to evaluate and test AI queries before using them in production.

To use Retool AI in production, configure one of the supported platforms with your own API credentials. Retool then interacts with an AI platform using its API with your credentials.

Configure AI platforms

Create separate API credentials for Retool

Where possible, create API credentials for each service you use to interact with your chosen AI platform. This allows you to best manage and revoke access without disruption. All API credentials used with Retool are encrypted and stored securely.

To configure AI platforms with your API credentials, navigate to the Resources tab and select Retool AI.

Configure AI platforms

You can retrieve your OpenAI API key from the API Keys page in your OpenAI account.

To set up OpenAI:

  1. Click Edit for OpenAI.
  2. Enter your API key.
  3. Click Enable.

After you add your API key for OpenAI, the Retool-managed OpenAI connection is disabled. All existing AI Action queries using OpenAI automatically start using your connection.

Specify the model in AI Actions

If your AI platform provides multiple models to use, or if you configure multiple platforms, you can select which model to use in the Model dropdown menu of AI Actions.