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 for which you can use.
Platform | Models |
---|---|
OpenAI | GPT-4 GPT 3.5 Turbo DALL·E |
Anthropic | Claude 3 Claude 2.1 Claude 2 Claude Instant 1.2 |
AWS Bedrock | Amazon Bedrock is a managed service that can be configured for different AI models, such as Anthropic or Cohere models. The models available for use with Retool AI depend on the models you configure for Bedrock. |
Azure OpenAI | Rather than a predefined set of models from which you select, you create and deploy an Azure OpenAI service with a specific model. You then provide the endpoint and model name when configuring the API credentials. |
Gemini 1.5 Pro Gemini 1.0 Pro | |
Cohere | command command-light |
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.
- OpenAI
- Anthropic
- AWS Bedrock
- Azure OpenAI
- Cohere
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 Edit for the OpenAI platform.
- Enter the required credentials.
- Click Enable.
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.
To configure Anthropic with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Edit for the Anthropic platform.
- Enter the required credentials.
- Click Enable.
You can retrieve your Anthropic API key from your Account settings.
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.
AWS Bedrock requires the following credentials:
- AWS IAM access key ID.
- AWS IAM secret access key.
- AWS Region.
You can also provide an optional AWS IAM Session Token, if required.
To configure AWS Bedrock with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Edit for the AWS Bedrock platform.
- Enter the required credentials.
- Click Enable.
You can retrieve your AWS Bedrock credentials from the AWS IAM dashboard.
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.
Azure OpenAI requires the following credentials:
- API key.
- Azure endpoint URL.
- Deployment name (AI model).
To configure Azure OpenAI with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Edit for the Azure OpenAI platform.
- Enter the required credentials.
- Click Enable.
You can retrieve your Azure OpenAI credentials from the Azure Portal.
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.
When using Azure OpenAI, all AI Actions use the model specified in this configuration.
To configure Google with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Edit for the Google platform.
- Enter the required credentials.
- Click Enable.
You can retrieve your Google API key from either the Google AI Studio dashboard.
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 Cohere with your API credentials:
- Navigate to the Resources tab and select Retool AI.
- Click Edit for the Cohere platform.
- Enter the required credentials.
- Click Enable.
You can retrieve your Cohere API key from either the Cohere dashboard or CLI tool.
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.