Skip to main content
The Together AI API is OpenAI-compatible, so most third-party SDKs work by pointing them at https://api.together.ai/v1 and supplying your Together API key. The integrations below ship dedicated Together support, with first-class clients, helpers, or providers. For agent frameworks (CrewAI, LangGraph, DSPy, PydanticAI, AutoGen, Agno, Composio), see the dedicated pages under Framework integrations.

Hugging Face

Use Together AI as a provider for Hugging Face Inference clients:
See the Together AI Hugging Face guide for more details.

Vercel AI SDK

The Vercel AI SDK is a TypeScript library for building AI-powered applications. The @ai-sdk/togetherai provider gives you native access to Together AI models.
Shell
TypeScript
See the Together AI Vercel AI SDK guide for details on streaming, tool use, and structured outputs.

LangChain

LangChain is a framework for building context-aware, reasoning applications powered by LLMs. The langchain-together package provides chat models and embeddings.
Shell
Python
For more LangChain integration details, see the LangChain provider docs.

LlamaIndex

LlamaIndex is a data framework for connecting custom data sources to LLMs. Together AI works with LlamaIndex through the OpenAILike LLM and dedicated embedding classes.
Shell
Python
For more LlamaIndex integration details, see the LlamaIndex Together LLM docs.

LiteLLM

LiteLLM is an open-source gateway with a single OpenAI-format interface for over 100 LLM providers, available as a Python SDK and a proxy server. LiteLLM 1.100.0 and later ships official Together AI support, with a model registry that syncs against the serverless catalog daily.
Shell
Python
Streaming (stream=True), function calling (tools), JSON mode (response_format), and reasoning_effort all pass through in the OpenAI format. Reasoning models return their reasoning in a separate reasoning_content field, so content holds only the final answer. To run Claude Code on Together models through the LiteLLM proxy, see the LiteLLM + Claude Code guide.

Helicone

Helicone is an open-source LLM observability platform. Route Together requests through Helicone’s gateway by overriding base_url and adding the auth header.

Agent frameworks

Each framework below has a dedicated guide with installation, model selection, and runnable examples:
  • CrewAI: Open-source orchestration for multi-agent workflows.
  • LangGraph: Stateful, multi-actor applications built on LangChain.
  • DSPy: Modular AI systems written in code instead of prompt strings.
  • PydanticAI: Typed agent framework from the Pydantic team.
  • AutoGen (AG2): Conversational multi-agent systems.
  • Agno: Open-source library for multimodal agents.
  • Composio: Tool-use platform for connecting agents to external services.