Langflow 1.10 just released!
gradient
  1. Home  /

  2. Blog  /

  3. How to run OpenAI’s gpt-oss and GPT-5 models on Langflow

How to run OpenAI’s gpt-oss and GPT-5 models on Langflow

Phil Nash

Written by Phil Nash

August 12, 2025

There’s nothing that gets the generative AI world as excited as a model launch, and last week OpenAI not only launched the open-source, Apache 2.0 licensed, gpt-oss model family but also the long awaited GPT-5. As developers, that actually gives us five new models: gpt-oss-20b, gpt-oss-120b, gpt-5, gpt-5-mini, and gpt-5-nano. If you want to experiment with these new models in Langflow, read on, or check out Melissa's video on using GPT-5 or gpt-oss-20b in Langflow on YouTube, to find out how.

gpt-oss on your machine

There are options for running the open-source models locally. If you happen to have an 80 GB GPU to hand, you should be able to run gpt-oss-120b. If that’s not available, as long as you have 16 GB of RAM you can run gpt-oss-20b.

Within Langflow, you can run local models via the Ollama and LM Studio components and either of them can run the gpt-oss models for you. For Ollama, you can install the model with the command line instruction ollama pull oss-gpt-20b. In LM Studio, you can search for “gpt-oss" in the model search, or hit up the LM Studio model page for gpt-oss-20b, and install from there. Then make sure your service is running, drag an Ollama or LM Studio component onto the Langflow canvas and enter the base URL. The components will populate their model lists and you should see the new gpt-oss-20b ready to use.

The Ollama and LM Studio components on a Langflow canvas, they both have their API Base URL set, and the model name gpt-oss-20b selected.
The Ollama and LM Studio components on a Langflow canvas, they both have their API Base URL set, and the model name gpt-oss-20b selected.

gpt-oss as a service

There are plenty of services out there that run models for you, and many have jumped on the opportunity to make the gpt-oss models available. These are the services that are running the gpt-oss models and have Langflow components that you can use:

For most of these services you can find the component, drag it onto the canvas, and add your API key. This will trigger the model list to load, and you will find the new open models. Some services, like Azure AI Foundry require a bit more work, but once you’ve deployed the model you can use it through Langflow like any other.

GPT-5 in Langflow

You can also access OpenAI’s brand new GPT-5 models through Langflow. Though, as I write this, you will need to do a little editing to the OpenAI component (that is, until this pull request is merged and released).

To use GPT-5 in Langflow today you need to:

  • Drag an OpenAI component onto the canvas
  • Open the component’s code editor
    The OpenAI component on the Langflow canvas. When you select the element, four buttons appear above the component, the first one is the one for the Code editor.
    The OpenAI component on the Langflow canvas. When you select the element, four buttons appear above the component, the first one is the one for the Code editor.
  • Add the following line after the imports and before the class definition:
OPENAI_REASONING_MODEL_NAMES = OPENAI_REASONING_MODEL_NAMES + ["gpt-5", "gpt-5-mini", "gpt-5-nano"]

The new model names will appear at the bottom of the model drop down ready for you to use.

Other GPT-5 services

You also can access GPT-5 through Azure AI Foundry, AI/ML API or OpenRouter and there are Langflow components for each.

Using the models as agents

The announcements for both gpt-oss and GPT-5 praised the models for their excellent tool calling performance. This means that they should work well as agents. To use the models with the Langflow agent component you can set up the agent component to use a custom model. Then with whichever model component you use, set the output to Language model and connect the output to the agent component’s Language Model input. Then you can hook up your tools and MCP servers and try out the GPT-5 or gpt-oss models in your agentic workflows.

The Langflow canvas with an Ollama component using gpt-oss-20b, with the output set to Language Model. It is connected to an agent component with the language model set to custom.
The Langflow canvas with an Ollama component using gpt-oss-20b, with the output set to Language Model. It is connected to an agent component with the language model set to custom.

Build with the latest models in Langflow

Whatever you’re building with Langflow you can use the latest OpenAI models. From open-source models running on your own machine to GPT-5 in the cloud, you can plug them into your flows and start experimenting or evaluating.


Similar Posts

Langflow 1.10 Desktop is now available

Langflow 1.10 Desktop is now available

Langflow Dev Team

Written by Langflow Dev Team

June 18, 2026

Langflow 1.10 Desktop is now available. For the full list of new features and platform updates in 1.10, see the OSS release announcement.

Langflow 1.10 released: Assistant flow building, Memory bases, DB Providers, internationalization, and more

Langflow 1.10 released: Assistant flow building, Memory bases, DB Providers, internationalization, and more

Langflow Dev Team

Written by Langflow Dev Team

June 9, 2026

Langflow 1.10 expands Langflow Assistant to build entire flows, introduces Memory bases for long-term semantic memory, adds configurable vector database backends, brings the interface to seven languages, and more.

Scaling Langflow: Unlocking Massive Memory Savings and Bulletproof Reliability

Scaling Langflow: Unlocking Massive Memory Savings and Bulletproof Reliability

Langflow Dev Team

Written by Langflow Dev Team

June 9, 2026

The Langflow engineering team breaks down a comprehensive package of memory and stability enhancements spanning v1.9.0 through v1.10.0—achieving an ~89% reduction in memory consumption through dependency pruning, worker lifecycle management, and advanced Linux Copy-on-Write techniques.

Langflow Policies: Turning Natural-Language Rules into Guarded Tools

Langflow Policies: Turning Natural-Language Rules into Guarded Tools

Langflow Dev Team

Written by Langflow Dev Team

May 20, 2026

Langflow's new Policies feature compiles natural-language business rules into deterministic guards around agent tools—so policy violations are caught before they happen, not after.