Connect to OpenAI
Configure OpenAI models for Retool AI.
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. When you're ready to use Retool AI in production, configure one of the supported platforms with your own API credentials.
Set up your AI platform credentials
To configure an AI platform with your API key, navigate to the Resources tab and select Retool AI. Select the AI model below for configuration instructions.
Configuring your own OpenAI API key disables the Retool-managed OpenAI connection. All existing AI Action queries using OpenAI automatically start using your connection.
To configure OpenAI with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Set up for the OpenAI platform.
- Enter the required credentials.
- Click Enable.
- (Optional) Update the Default model setting to use this model for Ask AI, workflow generation, and new AI Actions.
You can retrieve your OpenAI API key from the API Keys page in your OpenAI account.
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.