# Templates

Source: https://docs.oiy.ai/docs/templates

Reuse container configurations without copying secret values.



## Starting points [#starting-points]

Built-in templates provide container image, command, port, resource, workspace, and idle-sleep defaults. Review these settings before creating a service. A template is a configuration starting point; it is not proof that matching capacity is currently available.

For a complete PyTorch/JupyterLab walkthrough, follow [Run a GPU notebook](/docs/gpu-notebook).

## Workspace templates [#workspace-templates]

Save configurations as account-isolated templates for repeatable service creation. Saved templates include the names of required environment variables, never their values. Supply actual secrets when creating a service.

Updates and deletion require the current revision. Deleting a template does not delete or change services that were created from it.

## Capture an existing service [#capture-an-existing-service]

Use **Save as template** on a service to capture its configuration at the current revision. Required environment names are retained; values and runtime-injected activity credentials are excluded. Files, process state and image-pull credentials are not copied. [Rename, duplicate settings and template capture](/docs/services/reuse).

`NVIDIA_*` environment names are reserved and cannot be required by a template.

## Private images [#private-images]

Services launched from a template select matching account-owned [private-image access](/docs/private-images) by exact repository. A template does not store the registry username or token.

## Portability [#portability]

Templates describe the workload, not a supplier account. Choose tier and geography when deploying. A portable template still needs a compatible image, a supported resource profile, enabled regional capacity, and appropriate pricing.

The API provides `GET /api/templates`, `POST /api/templates`, `PUT /api/templates/{id}`, and `DELETE /api/templates/{id}`. See the [template API](/docs/api/templates).
