API

Pipe offers two APIs, i.e., Generate and Chat. Each Pipe’s API depends on its type. Every Pipe has its unique API key that can be found inside the API tab of the Pipe along with the API base URL. This key can be used to integrate the Pipe in your application.


Generate API

The generate endpoint allows easy integration of Large Language Models (LLM) like OpenAI or Claude into your app, enabling few-shot training and sending various prompts. It supports dynamic variables to send dynamic prompts.

Learn more Generate API reference.


Chat API

For chat-style LLM integration with OpenAI, Mistral, etc., use the chat endpoint with a chat pipe. It supports thread creation, history tracking, and seamless conversation continuation. Langbase can store all messages and threads if desired for easy chat app development.

Learn more about Chat API reference.