---
title: "Create Model"
method: POST
path: "/v1/preview/models"
tags: ["models"]
---

# Create Model

`POST /v1/preview/models`

Create a new model.

## Request body

- ModelCreate — Schema for creating a new Model.
  - `entity` string, nullable — Team or username of the developer whose W&B API key is being used
  - `project` string, required — Project name in W&B where the model will be stored
  - `name` string, required — Unique name for the model within the project
  - `base_model` string, required — Base model identifier or HuggingFace model path to fine-tune from
  - `return_existing` boolean — If true, return existing model if one with the same name already exists instead of creating a new one

## Response `200`

Successful Response

- ModelResponse — Schema for Model response.
  - `id` string, uuid, required
  - `entity` string, required
  - `project` string, required
  - `name` string, required
  - `base_model` string, required
  - `run_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/wandb/apis/serverless-training.md) · [All operations](https://skmtc.net/wandb/apis/serverless-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/serverless-training/revisions/8d8d96fc0fd3/schema)
