Skip to main content
Follow this guide to deploy a model for dedicated inference, send it a request, and scale it down when you’re done.

Requirements

Before you begin, make sure you have:
The dedicated model inference commands require Together CLI version 2.24.0 or later. Check your version with tg --version.
In CI, agents, or other environments where the CLI cannot prompt for confirmation, select a project before deploying. Run tg whoami to find your project ID, then set TOGETHER_PROJECT_ID or pass --project <project_id> to the command.

Step 1: Deploy a model

Deploy google/gemma-4-E4B-it, one of the supported models Together hosts. The deployment provisions in the background: for a model this size, first-time provisioning usually takes about 5 to 10 minutes while the weights download and hardware is allocated, and larger models take longer.
The endpoints deploy command creates an endpoint, attaches a deployment on the model’s default hardware, and routes all traffic to it:
The command returns as soon as the resources are created and prints the endpoint’s details:
Note the endpoint string (your-project-slug/quickstart-endpoint): pass it as the model parameter when you send requests.Check the deployment’s status with the deployment ID from the output, and wait for DEPLOYMENT_STATE_READY:

Step 2: Send a request

Point the inference base URL at https://api-inference.together.ai/v1, pass the endpoint string as the model parameter, and use the same request shape as a serverless model:
You should see output similar to this:
Congrats! You deployed and called your first dedicated model on Together AI.

Step 3: Clean up resources

Dedicated model inference bills per minute per running replica, so tear down what you deployed once you’re done.
Pass the endpoint ID (ep_abc123) from the deploy output to rm with --force to delete the endpoint and its deployment in one step:
To stop charges without deleting anything (for example, to redeploy later), scale the deployment to zero instead, then re-run the status command above to confirm it reaches DEPLOYMENT_STATE_STOPPED.

Next steps

Concepts

Understand the resource model and development workflow.

Manage deployments

Create, scale, stop, and delete endpoints and deployments.

Configure autoscaling

Autoscale a deployment on the metric that fits your workload.

Upload a model

Deploy a model you fine-tuned from a supported base model.