Requirements
- Dedicated containers access: Contact your account representative or [email protected] to enable dedicated containers for your organization.
- Docker: For building and pushing container images. See the Docker installation guide.
- uv: For installing the Together CLI. See uv’s installation guide.
Step 1: Install the Together CLI
Step 2: Clone the Sprocket examples
sprocket/examples/hello_world, is a minimal Sprocket that returns a greeting:
Step 3: Build and deploy
Deployments can be configured with apyproject.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.- Builds the Docker image from the example.
- Pushes it to Together’s private registry.
- Creates a deployment on Together’s GPU infrastructure.
Step 4: Watch deployment status
running and replicas are ready. Press Ctrl+C to stop watching. watch is not installed by default on macOS. Install it with 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
Step 6: Submit a job
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.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:Dedicated container inference overview
Read the architecture and core concepts.
Jig CLI
Build, push, and deploy containers, and manage secrets and volumes.
Sprocket SDK
Build queue-integrated inference workers.
API reference
Call the REST API for deployments, secrets, and queues.
Tutorials
Image generation with FLUX.2
Run single-GPU inference with 4-bit quantization.
Video generation with Wan 2.1
Run multi-GPU inference with torchrun.
Serve an OpenAI-compatible endpoint
Run in HTTP server mode behind the OpenAI Images API.