AI21 Labs#

This page covers how to use the AI21 ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific AI21 wrappers.

Installation and Setup#

  • Get an AI21 api key and set it as an environment variable (AI21_API_KEY)



There exists an AI21 LLM wrapper, which you can access with

from langchain.llms import AI21