Skip to main content
When updating older template examples to the current SDK shape, use the Novita client as the main entry point and follow the current template build flow:
  • Start a template builder with novita.template.new().
  • Build the template with novita.template.build(...) before creating a sandbox.
  • Pass the returned template ID into novita.sandbox.create(...).
  • Move startup logic into setStartCmd(...) / set_start_cmd(...) so the environment is ready before runtime requests arrive.
  • Move repeated package installation and file-copy steps into the template build instead of running them after sandbox launch.
  • Use tags for release promotion instead of changing template names for every rollout.
For JavaScript and TypeScript, use the standard ESM import path when working with the template API in a Node ESM project:
JavaScript & TypeScript
For Python, the same flow uses snake_case methods:
Python
This is the currently validated path for the template API in this documentation set.
Last modified on August 5, 2026