LLM API
GuidesAI App Builders

Retool Integration

Connect Retool to LLM API for AI-powered capabilities

Retool is a low-code platform for building internal tools, dashboards, and admin panels. It supports connecting to hundreds of data sources and APIs, with built-in AI capabilities that can be powered by custom LLM providers.

Retool's resource configuration supports custom API authentication, allowing you to connect LLM API as an AI data source.

Prerequisites

  • An LLM API account with an API key
  • Retool installed or accessible

Setup

Get Your LLM API Key

  1. Log in to your LLM API dashboard
  2. Click Create Key to Start
  3. Copy your new API key immediately — it will only be shown once
  4. Store the key securely (e.g., in a password manager or .env file)

LLM API is an OpenAI-compatible gateway that gives you access to dozens of AI models through a single API key and endpoint.

Configure LLM API as a Resource in Retool

  1. Log in to your Retool instance.
  2. Navigate to Resources → "Create New" → "REST API".
  3. Configure the resource with the following details:
  4. Name the resource (e.g., "LLM API") and click "Save".
  5. In your Retool app, add a query using the LLM API resource.
  6. Use POST requests to /chat/completions with your desired model and messages.

Test the Integration

Verify that Retool can successfully communicate with LLM API by sending a test request. All requests will now be routed through LLM API.

Retool's query builder makes it easy to create reusable AI-powered components across all your internal tools.

Benefits of Using LLM API with Retool

  • Multi-Provider Access: Use models from OpenAI, Anthropic, Google, and more through a single API
  • Cost Control: Track and limit your AI spending with detailed usage analytics
  • Unified Billing: One account for all providers instead of managing multiple API keys
  • Caching: Reduce costs with response caching for repeated requests

View all available models on the models page.

How is this guide?