Skip to main content

Together AI

Together AI is a cloud platform for building and running generative AI.

It makes it easy to fine-tune or run leading open-source models with a couple lines of code. We have integrated the world’s leading open-source models, including Llama-2, RedPajama, Falcon, Alpaca, Stable Diffusion XL, and more. Read mo

Installation and Setup

To use, you’ll need an API key which you can find here.

API key can be passed in as init param together_api_key or set as environment variable TOGETHER_API_KEY.

See details in the Together API reference

You will also need to install the langchain-together integration package:

%pip install --upgrade --quiet langchain-together

LLMs

See a usage example.

from langchain_together import Together

API Reference:

Embedding models

See a usage example.

from langchain_together.embeddings import TogetherEmbeddings

API Reference:


Help us out by providing feedback on this documentation page: