--- title: Quickstart slug: /get-started-quickstart --- import Icon from "@site/src/components/icon"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import PartialGlobalModelProviders from '@site/docs/_partial-global-model-providers.mdx'; Get started with Langflow by loading a template flow, running it, and then serving it at the `/run` API endpoint. ## Prerequisites - [Install and start Langflow](/get-started-installation) - Create an [OpenAI API key](https://platform.openai.com/api-keys) - Create a [Langflow API key](/api-keys-and-authentication)
Create a Langflow API key A Langflow API key is a user-specific token you can use with Langflow. To create a Langflow API key, do the following: 1. In Langflow, click your user icon, and then select **Settings**. 2. Click **Langflow API Keys**, and then click
:::tip If you encounter the error "An API key must be passed as query or header" when attempting to sign up, see [Troubleshooting](/troubleshoot#an-api-key-must-be-passed-as-query-or-header). ::: ## Run the Simple Agent template flow 1. In Langflow, click **New Flow**, and then select the **Simple Agent** template. ![Simple Agent template](/img/quickstart-simple-agent-flow.png) The **Simple Agent** template consists of an [**Agent** component](/agents) connected to [**Chat Input** and **Chat Output** components](/chat-input-and-output), a [**Calculator** component](/calculator), and a [**URL** component](/url). When you run this flow, you submit a query to the agent through the **Chat Input** component, the agent uses the **Calculator** and **URL** tools to generate a response, and then returns the response through the **Chat Output** component. Many components can be tools for agents, including [Model Context Protocol (MCP) servers](/mcp-server). The agent decides which tools to call based on the context of a given query. 2. In the **Agent** component, click **Setup Provider** to select your language model provider. 3. In the **Agent** component, select your configured model from the **Language Model** dropdown.
Access more models and providers There are two ways to access more models and providers: * Edit Langflow's global
4. To run the flow, click