---
title: "Create TrainedModel"
method: POST
path: "/trained_models"
---

# Create TrainedModel

`POST /trained_models`

## Request

- Base URL: `https://darwin.v7labs.com/ai`
- URL: `https://darwin.v7labs.com/ai/trained_models`
- Auth: API key in header `Authorization`

A TrainedModel is a record that holds a set of weights that can be loaded by a model when starting a RunningSession

## Request body

- object
  - `model_template_id` string: The ID of the associated ModelTemplate
  - `name` string: The name to be given to the newly created TrainedModel
  - `weights_key` string: The S3 key in which the weights file is stored
  - `classes` string, json: The list of annotation classes the model was trained on

## Response `200`

200

- object
  - `classes` object[]
    - `display_name` string
    - `name` string
    - `type` string
  - `id` string
  - `inserted_at` string
  - `name` string
  - `team_id` integer
  - `weights_key` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/v7labs/apis/wind.md) - [All operations](https://skmtc.dev/v7labs/apis/wind/llms.txt) - [OpenAPI document](https://skmtc.dev/v7labs/apis/wind/revisions/4035e136c087?raw)
