What stays the same
The inference API hasn’t changed. You still send requests toPOST /v1/chat/completions (and the other inference endpoints) with your endpoint name in the model field. Dedicated model inference is served at https://api-inference.together.ai:
model string. When you recreate an endpoint in v2, it gets a new endpoint string (<project_slug>/<endpoint_name>), so update your inference calls to use the new name.
What’s changed
v1 modeled a dedicated endpoint as a single model running on a hardware type. v2 splits that into a small resource model so one endpoint can host more than one model version and shift traffic between them:- Endpoint: A stable inference URL. It no longer carries the model or hardware itself.
- Deployment: Binds a model and a config to an endpoint with an autoscaling policy. A deployment is what runs replicas and serves traffic. One endpoint can host several deployments at once.
- Config: Describes how a model runs, including the hardware selectors and optimization profile. In v1 you passed a hardware ID and decoding flags. In v2 you select a published config instead.
- Traffic split: Routes requests across an endpoint’s deployments by weight. Even if it’s
READY, a deployment receives no traffic until you route traffic to it.
Feature mapping
API mapping
v1 used the top-leveltg endpoints CLI and SDK methods. v2 exposes these operations under the tg beta CLI and the /v2 management API under https://api.together.ai. A few operations (editing a traffic split, listing deployments) are available from the SDK and API rather than the CLI. The table below maps each v1 command to its v2 equivalent:
For the individual CLI commands and SDK methods behind these operations, see Manage deployments.
Migrate an endpoint
To move a v1 endpoint to v2, recreate it using the new resource model. Your v1 endpoint keeps serving while you stand up the v2 one, so you can cut over with no downtime. While both endpoints run during the cutover, you pay for the GPUs of both, so retire the v1 endpoint as soon as traffic is on v2.- Find the model and a config: List the supported models and the configs published for the model your v1 endpoint runs, and save a model ID (
ml_...) and config ID (cr_...). - Deploy the model: Run
tg beta endpoints deploy <model_id> --endpoint <name> --config <config_id>, matching the replica bounds to your v1 endpoint with--min-replicasand--max-replicas. This creates the endpoint, deployment, and traffic split, and returns while the deployment provisions in the background. Save the qualified endpoint name (your-project-slug/<name>); this is the new value for your inferencemodelfield. - Cut over: Update your application’s
modelfield to the new qualified endpoint name and send a test request. - Retire the v1 endpoint: Once traffic is on v2, stop the v1 endpoint with
tg endpoints stop <id>so it stops billing.
Migrate fine-tuned models
Uploaded models carry over, but you must re-upload them into the v2 model catalog and reference them by model ID in a deployment:- Fine-tuned models: See Upload a fine-tuned model.
- LoRA adapters: Not available at the initial launch.
v2 capabilities
Migrating your endpoint to v2 gives you access to several new capabilities:- Split traffic across deployments: Host several deployments behind one endpoint URL and route requests between them by weight.
- Run A/B tests: Compare a candidate deployment against a baseline on live traffic before you promote it.
- Run a shadow experiment: Test a new deployment in production without affecting live traffic.
- Autoscale on a metric: Scale each deployment on the metric that fits your workload, and stop it when you don’t need it to release the hardware.
- Monitor endpoints: Track latency, throughput, and utilization in built-in dashboards, and trace lifecycle changes through the events feed.
Timeline and support
Existing v1 endpoints will keep running through the end-of-2026, so you can migrate on your own schedule. New deployments should target v2.Next steps
Concepts
Learn the project, model, config, endpoint, and deployment model.
Quickstart
Recreate an endpoint end to end with the CLI or SDK.
Choose a deployment profile
Find the config that replaces your v1 hardware ID.
Manage deployments
Create, inspect, scale, stop, and delete endpoints and deployments.