Python SDK
Announcing Together Python SDK v2.0

Announcing Together Python SDK v2.0

12/12/2025

What this post added

This post announces the release of Python SDK v2.0, a significant overhaul of the SDK. Key technical contributions include: generation from an OpenAPI specification using Stainless for closer API mapping, implementation of TypeScript-like typing in Python for improved developer experience and maintainability, adoption of `httpx` for performance gains (approx. 20ms faster per request), a redesigned error handling hierarchy with specific HTTP status error classes and new transport/timeout errors, a modern parameter system enforcing keyword-only arguments and using a `NOT_GIVEN` sentinel for optional parameters, and the introduction of raw response access and streaming helpers via `with_raw_response` and `with_streaming_response` contexts. It also details updates to specific API integrations like Files, Batches, Endpoints, Evals, Audio Speech, and Code Interpreter, and introduces new beta APIs for Instant Clusters.

Read the original post ↗