You can explore and manage Templates directly from the Tensor One Web Interface or by using the GraphQL API.
Exploring Templates
Official & Community Templates
- Navigate to the Explore section in the Web UI
- Browse Templates maintained by Tensor One and contributions from the community
Private & Team Templates
- Visit the Templates section under your dashboard
- View and manage Templates created by you or your team
Creating a Template
Templates define how an image is launched as a Cluster, including:- Container disk size
- Volume size and mount path
- Ports to expose
- Environment variables
Example: Create Template via GraphQL (using curl
)
Environment Variables in Templates
Environment variables are key-value pairs that are injected into your Cluster at runtime. They are useful for:- Storing API keys
- Defining file paths
- Providing service credentials
Example Use Cases
OPENAI_API_KEY=sk-xxx
MODEL_PATH=/workspace/models/my-model
DB_PASSWORD=secure1234
Predefined Variables (by Tensor One)
These are automatically injected into every Cluster:Variable | Description |
---|---|
TENSORONE_CLUSTER_ID | Unique identifier of your Cluster |
TENSORONE_API_KEY | API key for making authenticated calls |
TENSORONE_CLUSTER_HOSTNAME | Hostname of the Cluster instance |