---
title: How to Create an Instance Template From an Instance
url: https://docs.vultr.com/products/compute/clusters/instance-templates/create-from-instance
description: Create a Vultr instance template from an existing instance with the API, capturing its configuration and startup script.
publish_date: 2026-10-27T21:32:39.632809Z
last_updated: 2026-10-28T17:02:33.414805Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Creating an instance template from an existing instance captures that instance's plan, OS, and configuration, including its marketplace app, SSH keys, startup script, and user data. For a Cloud Compute instance, it also captures the ISO. This is the only way to get a template with a startup script attached, since creating a template from scratch does not accept one.

This guide explains how to create an instance template from an existing instance using the Vultr API.

> [!NOTE]
> This endpoint ignores any `label` you send. It names the template `Template: INSTANCE_LABEL`, using the source instance's own label.

1. Send a `GET` request to the [**List Instances** endpoint](https://www.vultr.com/api/#tag/instances/operation/list-instances) to retrieve all instances.

    ```console
    $ curl "https://api.vultr.com/v2/instances" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    Note the `id` of the instance you want to create a template from.

1. Send a `POST` request to the [**Create Instance Template From Instance** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/create-instance-template-from-instance). Replace `{instance-id}` with the instance's ID.

    ```console
    $ curl "https://api.vultr.com/v2/instances/templates/from-instance/{instance-id}" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    A successful request returns an HTTP `200 OK` response with an array containing the new template's details, the same response shape as [**Create Instance Template**](https://docs.vultr.com/products/compute/clusters/instance-templates/create). The new template is permanent, not ephemeral.
