Start with the installed version
Together released TypeScript 1.0.0 on October 22, 2026, removing the version prefix from the client base URL and introducing a separate chat-completions host. The release also replaced older endpoint and model APIs as beta resources moved into stable namespaces. For applications behind custom gateways, the upgrade changes routing and API contracts as well as source code. A successful build should be followed by inspection of what the client sends. Sources: Together AI
Record the installed package version, target version, runtime, and configured gateway base before changing dependencies. The tagged TypeScript 1.0 client and chat resource define the routing behavior described here. For Python, check the repository too: together-python identifies itself as deprecated V1 software in maintenance mode and redirects development to together-py. Keep the old package pinned so both versions can be checked against the same intended contract. Sources: Together AI
Audit stable namespaces and older migrations
The release moved beta.endpoints, beta.models, and beta.organization into the endpoints, models, and organization namespaces. It also removed the previous endpoint and model methods and their command-line interface commands. Existing calls through client.endpoints therefore deserve the same scrutiny as calls through client.beta.endpoints. Searching only for beta references would miss code whose resource name stays familiar while its contract changes. Sources: Together AI
An upgrade spanning earlier releases needs a wider inventory. The changelog records moves from images.create to images.generate, from audio.create to audio.speech.create, and to rerank.create in version 0.31.0. Version 0.30.0 reduced default retries from five to two and stopped automatically retrying HTTP 500 while retaining retries for 501 and higher. Review retry behavior if a gateway translates upstream failures into HTTP 500. TypeScript 1.0 also removed deprecated parameters, Code Interpreter APIs, and the temporary beta-clusters import shim. Sources: Together AI
The TypeScript migration guide replaces node-fetch with built-in Web Fetch and introduces named arguments for methods with multiple path parameters. It documents automatic path-parameter encoding and removes overloads that accepted request options in the parameter position. Error headers use Web Headers, and response bodies use ReadableStream. Audit wrappers for pre-encoded identifiers, argument placement, and assumptions about those interfaces. The guide lists minimum versions of Node.js 20 Long Term Support, TypeScript 4.9, and Jest 28, and offers a migration tool with a dry-run option. Sources: Together AI
Decide which layer supplies the version prefix
The tagged TypeScript client defaults to https://api.together.ai, reads the base URL environment setting, and joins the base with resource paths. Chat creation supplies /v1/chat/completions and the endpoint-specific host https://api-inference.together.ai. That host applies only when the client base exactly equals the default string; a custom gateway base takes precedence. Explicitly supplying the default string still permits endpoint-specific routing, while adding a trailing slash changes the equality check. Sources: Together AI
The table below shows expected chat destinations derived from the tagged implementations. Treat these as assertions to check against the deployed package. Preserve intentional gateway mount paths, and inspect forwarding rules before removing an inherited version prefix. Review other clients before changing a gateway address they share. Sources: Together AI
Table
Expected TypeScript 1.0 chat destinations
| Client base configuration | Expected chat URL |
|---|---|
| Default, with no environment override | https://api-inference.together.ai/v1/chat/completions |
| https://gateway.example | https://gateway.example/v1/chat/completions |
| https://gateway.example/together | https://gateway.example/together/v1/chat/completions |
| https://gateway.example/v1 | https://gateway.example/v1/v1/chat/completions |
Capture the effective URL under constructor, environment, and default configuration. Include a trailing slash and a gateway mount path to expose small configuration differences. The tagged chat streaming helper delegates through the same resource implementation, so include streaming in the routing checks. Together describes the inference host as faster but provides no latency figure or benchmark methodology to support an upgrade performance target. Sources: Together AI
Verify endpoint management separately
The TypeScript 1.0 endpoint implementation uses project-scoped version 2 routes for creation, retrieval, updates, listing, and deletion. Its projectId parameter falls back to the client’s projectID. A gateway that accepts chat traffic therefore needs a separate management-route review. The table below identifies the paths to capture for each operation. Sources: Together AI
Table
TypeScript 1.0 endpoint management paths
| Operation | Path |
|---|---|
| Create | /v2/projects/{projectId}/endpoints |
| Retrieve | /v2/projects/{projectId}/endpoints/{id} |
| Update | /v2/projects/{projectId}/endpoints/{id} |
| List | /v2/projects/{projectId}/endpoints |
| Delete | /v2/projects/{projectId}/endpoints/{id} |
Parameter placement is part of the contract. Updates send updateMask in the query and remaining fields in the body; the implementation’s documentation describes a body etag for optimistic concurrency. Deletion places etag in the query and requires deployments to be deleted first. Listing uses cursor pagination. Test a second page for preserved routing, authorization, and project scope. Sources: Together AI
Successful endpoint creation is an incomplete readiness check. Creation establishes a stable inference address, but deployments and a traffic split must be configured before inference uses the endpoint’s name. Exercise creation, retrieval, updates, deployment, traffic configuration, inference, and cleanup as one staged workflow. This connects management checks to the application’s ability to serve requests. Sources: Together AI
Keep the Python audit distinct
Python’s V2 migration guide describes a generated SDK using httpx in place of requests. It replaces supplied_headers with default_headers and supports an optional http_client. Additional fields go through extra_body, extra_headers, and extra_query. Map gateway headers and transport customization explicitly before checking responses. Audit integration wrappers even when their application-facing methods remain unchanged. Sources: Together AI
The guide documents wrapped list results, binary downloads instead of automatic file writes, and batch creation results accessed through response.job. Error handling changes from TogetherException to TogetherError and from http_status to status_code. Although the guide broadly describes API arguments as keyword-only, its evaluation retrieval and status instructions specify positional workflow IDs. Follow each operation’s documented signature. For Python 3.0, follow the separate migration guide linked from that page rather than applying TypeScript’s host-selection rules to Python. Sources: Together AI
Capture requests, then exercise the gateway
The TypeScript repository documentation supports a custom fetch implementation and documents two default retries and a one-minute timeout. Start with a capture transport that records requests and returns a synthetic response. Disable retries to make routing assertions deterministic, then test retries separately. Assert the exact origin, path, method, query, authorization header, and required gateway headers. Sources: Together AI
Run the same scenarios against pinned old and new packages, reviewing each difference against an explicit intended contract. Use test-runner assertions so failures stop the suite. Inspect serialized models, messages, tools, custom fields, and absent versus null values. Then move the scenarios to a local HTTP server or staging gateway to exercise authentication, rewriting, header filtering, buffering, and timeouts. Use synthetic credentials in captured artifacts.
- Capture constructor settings, environment overrides, trailing slashes, and gateway mount paths.
- Check authentication and gateway headers across chat and management operations.
- Assert query parameters, request bodies, project scope, and pagination behavior.
- Exercise multiple server-sent events, stream termination, and cancellation.
- Test client errors, server errors, and timeouts, evaluating retries separately.
- Complete the endpoint lifecycle through inference and cleanup before rollout.
Keep performance comparisons separate from routing acceptance. Hold the model, prompt lengths, output limits, concurrency, region, connection reuse, and retry policy constant. Compare both SDK versions through the same gateway before evaluating direct-host changes. Record time to first token, total latency, latency percentiles, errors, sample count, and warm-up policy. Those controls help distinguish an SDK effect from a change in the network path.