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
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.
- OpenAI
- Azure OpenAI
- Anthropic
- Cohere
You can retrieve your OpenAI API key from the API Keys page in your OpenAI account.
To set up OpenAI:
- Click Edit for OpenAI.
- Enter your API key.
- 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.
You can retrieve your Azure OpenAI credentials from the Azure Portal.
To set up Azure OpenAI:
- Click Edit for Azure OpenAI.
- Enter your API key, the Azure endpoint URL, and the deployment name (AI model).
- Click Enable.
When using Azure OpenAI, all AI Actions use the model specified in this configuration.
You can retrieve your Anthropic API key from your Account settings.
To set up Anthropic:
- Click Edit for OpenAI.
- Enter your API key.
- Click Enable.
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.