---
updatedAt: 2025-09-22T20:35:00.000Z
agentTools:
  projectIndex: https://docs.v7labs.com/llms.txt
---

# Create ModelTemplate

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "wind",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://darwin.v7labs.com/ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/model_templates": {
      "post": {
        "summary": "Create ModelTemplate",
        "description": "",
        "operationId": "create-modeltemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the ModelTemplate"
                  },
                  "type": {
                    "type": "string",
                    "description": "The ModelTemplate type. Wind currently supports \"instance_segmentation\", \"object_detection\", \"classification\" and \"auto_annotation\""
                  },
                  "docker_image": {
                    "type": "string",
                    "description": "The Docker image URI of the ModelTemplate Integration"
                  },
                  "devices": {
                    "type": "string",
                    "description": "A list of supported devices for the ModelTemplate, among \"cpu\" and \"gpu\"",
                    "format": "json"
                  },
                  "load_params": {
                    "type": "string",
                    "description": "List of optional parameters needed by the Model Template Integration to successfully load the model before inference",
                    "default": "[]",
                    "format": "json"
                  },
                  "infer_params": {
                    "type": "string",
                    "description": "List of optional parameters needed by the Model Template Integration to successfully run inference",
                    "default": "[]",
                    "format": "json"
                  },
                  "train_params": {
                    "type": "string",
                    "description": "List of optional parameters needed by the Model Template Integration to successfully start a TrainingSession",
                    "default": "[]",
                    "format": "json"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "My Model Template",
                    "type": "instance_segmentation",
                    "docker_image": "1234567890.dkr.ecr.eu-west-1.amazonaws.com/models/my-model:latest",
                    "devices": [
                      "cpu",
                      "gpu"
                    ],
                    "train_params": {
                      "config_file": "/path/to/config.yaml"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"name\": \"My Model Template\",\n\t\"type\": \"instance_segmentation\",\n\t\"docker_image\": \"1234567890.dkr.ecr.eu-west-1.amazonaws.com/models/my-model:latest\",\n\t\"devices\": [\"cpu\", \"gpu\"],\n\t\"train_params\": {\n\t\t\"config_file\": \"/path/to/config.yaml\"\n\t}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "example": "My Model Template"
                    },
                    "type": {
                      "type": "string",
                      "example": "instance_segmentation"
                    },
                    "docker_image": {
                      "type": "string",
                      "example": "1234567890.dkr.ecr.eu-west-1.amazonaws.com/models/my-model:latest"
                    },
                    "devices": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "cpu"
                      }
                    },
                    "train_params": {
                      "type": "object",
                      "properties": {
                        "config_file": {
                          "type": "string",
                          "example": "/path/to/config.yaml"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```