Skip to main content
This guide walks you through deploying a sample inference worker to Together’s managed GPU infrastructure.

Prerequisites

  • Together API Key – Required for all operations. Get one from together.ai.
  • Dedicated Containers access – Contact your account representative or [email protected] to enable Dedicated Containers for your organization.
  • Docker – For building and pushing container images. Get it here.
  • uv (optional) – For Python/package management. Install from astral-sh/uv.

Step 1: Install the Together CLI

Set your API key:

Step 2: Clone the Sprocket Examples

The hello-world worker, included in sprocket/examples/hello_world, is a minimal Sprocket that returns a greeting:

Step 3: Build and Deploy

Deployments can be configured with a pyproject.toml file. The deployment name, set by the configuration, must be globally unique. The example worker uses this pyproject.toml configuration:
Change the project name in pyproject.toml and use this name for the rest of the tutorial.
Navigate to the example worker and deploy:
This command:
  1. Builds the Docker image from the example
  2. Pushes it to Together’s private registry
  3. Creates a deployment on Together’s GPU infrastructure

Step 4: Watch Deployment Status

Wait until the deployment shows running and replicas are ready. Press Ctrl+C to stop watching. Note that watch is not installed by default on MacOS, use brew install watch or your package manager of choice.
You can also view the status of your deployments from the Together AI web console.

Step 5: Test the Health Endpoint

Expected response:

Step 6: Submit a Job

Response:
Copy the request_id for the next step.

Step 7: Get the Job Result

Real request IDs use UUIDv7 format (e.g., 019ba379-92da-71e4-ac40-d98059fd67c7). Replace req_abc123 with your actual request ID from the submit response.
Response (when complete):

Step 8: View Logs

Stream logs from your deployment:

Step 9: Clean Up

When you’re done, delete the deployment:

Next Steps

Now that you’ve deployed your first container, explore the full platform:

Example Guides