---
title: "Create New Template"
method: POST
path: "/v1/admin/create-new-template"
tags: ["Admin Management"]
---

# Create New Template

`POST /v1/admin/create-new-template`

## Request

- Base URL: `https://api.oneinfer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oneinfer.ai/v1/admin/create-new-template`
- Auth: HTTP bearer

Create template on one or multiple GPU providers.

Args:
    request: Template configuration
    provider_name: Specific provider (if create_on_all_providers=False)
    admin_template_id: Optional admin template ID to use as defaults
    create_on_all_providers: If True, creates template on all supported providers

Returns:
    Template creation results from provider(s)

## Query parameters

- `provider_name` 'novita' | 'aws' | 'nebius_ai' | 'verda' | 'runpod' | 'vastai' | 'vultr' | 'azure' | 'e2e_networks'
- `admin_template_id` string, nullable
- `create_on_all_providers` boolean

## Request body

- CreateTemplateRequest
  - `name` string, required
  - `image_name` string, required
  - `disk_size` integer, required
  - `docker_start_cmd` string[], required
  - `readme` string, nullable
  - `ports` string[], nullable
  - `volumes` object[], nullable
  - `envs` object, nullable
  - `volume_in_gb` integer, nullable
  - `volume_mount_path` string, nullable
  - `is_serverless` boolean, nullable
  - `registry_auth_id` string, nullable
  - `rootfs_size` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oneinfer/apis/oneinfer-apis.md) · [All operations](https://skmtc.dev/oneinfer/apis/oneinfer-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/oneinfer/apis/oneinfer-apis/revisions/5479122617c3?raw)
