langchain-together
An integration package connecting Together AI and LangChain
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and integrates seamlessly with LangChain's ecosystem. It is worth installing if you need Together AI as your LLM provider and want to work within LangChain's abstractions. No known security vulnerabilities as of 2026-08-14.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Together AI API key set in the TOGETHER_API_KEY environment variable or passed to the constructor.
- Low friction installation with a wheel distribution.
- Actively maintained as of 2026-08-05 with recent releases.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you must retain the license notice in distributions.
last release 2026-03-24 (143 days) · last repo commit 2026-08-05 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 95,965 downloads/mo, #13,241 on PyPI
Alternatives
Verify before relying
pip install langchain-together
from langchain_together import ChatTogether
import os
os.environ["TOGETHER_API_KEY"] = "your-key"
llm = ChatTogether(model="Qwen/Qwen2.5-7B-Instruct-Turbo")
response = llm.invoke("Hello")- Whether all Together AI model variants listed in their docs are supported by this integration version.
- Performance characteristics and rate-limit behavior when used with high-volume LangChain chains.
- Compatibility guarantees with specific langchain-core versions beyond the stated Python version range.
What it is and what it does
langchain-together is a LangChain integration package that exposes Together AI's language models and embeddings through LangChain's standard interfaces. It provides ChatTogether for chat-based interactions and TogetherEmbeddings for vector representations, supporting models like Qwen/Qwen2.5-7B-Instruct-Turbo and multilingual-e5-large-instruct.
The package enables structured outputs via Pydantic models, JSON schemas, and function calling—allowing you to extract reliable, typed responses from Together AI models within LangChain workflows. It handles authentication via environment variable or constructor parameter and supports configuration options like temperature, max_tokens, timeout, and retry behavior.
Use it for
- Build LangChain agents and chains that call Together AI models instead of OpenAI or other providers.
- Extract structured data (e.g., parsed JSON, function calls) from Together AI models using Pydantic schemas.
- Generate embeddings for semantic search or similarity tasks using Together's multilingual embedding models.
- Prototype or deploy cost-effective LLM applications by swapping Together AI as the backend provider.
- Combine Together AI models with LangChain's tools, memory, and retrieval systems in a single application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and integrates seamlessly with LangChain's ecosystem. It is worth installing if you need Together AI as your LLM provider and want to work within LangChain's abstractions. No known security vulnerabilities as of 2026-08-14.
Install
langchain-together on PyPI
Before you install
Low friction installation with a wheel distribution. Actively maintained as of 2026-08-05 with recent releases. Depends on established packages (langchain-core, langchain-openai, requests, aiohttp) that are widely used.
Requires a valid Together AI API key set in the TOGETHER_API_KEY environment variable or passed to the constructor.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must retain the license notice in distributions.
Quickstart
pip install langchain-together
from langchain_together import ChatTogether
import os
os.environ["TOGETHER_API_KEY"] = "your-key"
llm = ChatTogether(model="Qwen/Qwen2.5-7B-Instruct-Turbo")
response = llm.invoke("Hello")
Verify before relying
- Whether all Together AI model variants listed in their docs are supported by this integration version.
- Performance characteristics and rate-limit behavior when used with high-volume LangChain chains.
- Compatibility guarantees with specific langchain-core versions beyond the stated Python version range.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesaiohttph11langchain-corelangchain-openailangsmithrequestsurllib3 |
| Maintenance | Actively maintained 143 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 95,965 / month, #13,241 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: langchain_together-0.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langchain together ai integration”
- langchain-togetherConnects LangChain applications to Together AI's language models and…
- langchain-google-vertexaiConnects LangChain applications to Google Cloud's Vertex AI…
- langchain-perplexityIntegrates Perplexity AI models into LangChain applications, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also langchain-oci · langchain-sambanova · langchain-baseten · pyjokes · langchain-openai · langchain-groq · langchain-cohere · langchain-cli · langchain-community · langchainplus-sdk