Together AI has released Python SDK v2.0, a new, type-safe, OpenAPI-driven client. This version offers improved architecture, better type safety and developer experience, future-proofing for new features, and compatibility with modern tools like `uv`. It utilizes `httpx` for better performance and includes enhanced error handling, a modern parameter system with keyword-only arguments, and new capabilities like raw response access, streaming helpers, and code interpreter session management. The SDK also introduces beta APIs for Instant Clusters and a more precise error model.
All Together AI trails