together
The official Python library for the together API
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (release 2 days old), has no known vulnerabilities, low install friction, and provides a well-typed, production-ready interface to the Together API. The permissive Apache-2.0 license and support for modern Python versions (3.10+) make it suitable for most projects. Install it if you need to call the Together API from Python; the synchronous and asynchronous clients cover both simple and high-concurrency scenarios.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid TOGETHER_API_KEY environment variable or explicit api_key parameter to authenticate with the Together service.
- Low friction installation with a pure Python wheel.
- Active maintenance with a release 2 days old.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production applications.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 11 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,725,341 downloads/mo, #2,920 on PyPI
Alternatives
Verify before relying
pip install together
import os
from together import Together
client = Together(api_key=os.environ.get("TOGETHER_API_KEY"))
chat_completion = client.chat.completions.create(
messages=[{"role": "user", "content": "Say this is a test!"}],
model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
)
print(chat_completion.choices)- Whether the 14 runtime dependencies are all required for basic usage or if some are optional for specific features.
- Performance characteristics and rate-limit handling of the synchronous vs. asynchronous clients under load.
- Stability guarantees for the realtime transcription feature and automatic reconnection behavior in production.
What it is and what it does
Together is the official Python SDK for accessing the Together API, a service that provides inference endpoints for language models and other AI services. It wraps the REST API with type-safe Python clients (both sync and async) generated by Stainless, handling authentication, request serialization, and response parsing automatically. The library supports chat completions, streaming responses via Server-Sent Events, and realtime audio transcription with automatic reconnection and speech buffering.
The package is designed for developers integrating language model inference into Python applications. It provides both a synchronous `Together` client for simple scripts and an `AsyncTogether` client for high-concurrency workloads. Optional extras like `aiohttp` backend and `realtime` transcription support allow customization for specific use cases. All request and response types are defined as TypedDicts with full type hints, enabling IDE autocomplete and static type checking.
Use it for
- Build a chatbot or conversational AI application using the chat completions API with streaming support for real-time token delivery.
- Transcribe live audio from microphones or phone calls using the realtime transcription endpoint with automatic reconnection on network failures.
- Integrate language model inference into an async web service or background job queue for high-throughput inference requests.
- Prototype or deploy multi-turn dialogue systems that leverage typed request/response structures for validation and IDE support.
- Stream model outputs directly to end users with Server-Sent Events while maintaining connection resilience.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (release 2 days old), has no known vulnerabilities, low install friction, and provides a well-typed, production-ready interface to the Together API. The permissive Apache-2.0 license and support for modern Python versions (3.10+) make it suitable for most projects. Install it if you need to call the Together API from Python; the synchronous and asynchronous clients cover both simple and high-concurrency scenarios.
Install
together on PyPI
Before you install
Low friction installation with a pure Python wheel. Active maintenance with a release 2 days old. Requires Python 3.10 or later and depends on 14 runtime packages including httpx for HTTP and pydantic for type validation.
Requires a valid TOGETHER_API_KEY environment variable or explicit api_key parameter to authenticate with the Together service.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production applications.
Quickstart
pip install together
import os
from together import Together
client = Together(api_key=os.environ.get("TOGETHER_API_KEY"))
chat_completion = client.chat.completions.create(
messages=[{"role": "user", "content": "Say this is a test!"}],
model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
)
print(chat_completion.choices)
Verify before relying
- Whether the 14 runtime dependencies are all required for basic usage or if some are optional for specific features.
- Performance characteristics and rate-limit handling of the synchronous vs. asynchronous clients under load.
- Stability guarantees for the realtime transcription feature and automatic reconnection behavior in production.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 14 packagesanyiocycloptsdetect-agentdistrofilelockhttpxpydanticrichsniffiotomlitqdmtypes-pyyamltypes-tqdmtyping-extensions |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,725,341 / month, #2,920 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: together-2.31.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 › “together api python client”
- togetherA Python client library for the Together REST API, providing…
- reka-apiProvides a Python client library for accessing the Reka API, with…
- opentelemetry-instrumentation-togetherAutomatically traces calls to Together AI's API endpoints by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also groq · writer-sdk · llama-api-client · sambanova · openai · cerebras-cloud-sdk · llama-stack-client · perplexityai · rev-ai · composio-client