---
title: "Model Create"
method: POST
path: "/object/{entity}/{project}/models"
tags: ["Models"]
---

# Model Create

`POST /object/{entity}/{project}/models`

Create a model object.

## Path parameters

- `entity` string, required
- `project` string, required

## Request body

- ModelCreateBody
  - `name` string, required — The name of this model. Models with the same name will be versioned together.
  - `description` string, nullable — A description of this model
  - `source_code` string, required — Complete source code for the Model class including imports
  - `attributes` object, nullable — Additional attributes to be stored with the model

## Response `200`

Successful Response

- ModelCreateRes
  - `digest` string, required — The digest of the created model
  - `object_id` string, required — The ID of the created model
  - `version_index` integer, required — The version index of the created model
  - `model_ref` string, required — Full reference to the created model

## Other responses

- `422` — Validation Error

## Changes

- **2025-11-14** `b6cf2a1c4dac` — 1 info
  - endpoint added
- **2025-11-14** `b1962be94f75` — 1 breaking
  - api path removed without deprecation
- **2025-11-13** `b6cf2a1c4dac` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/wandb/apis/fastapi/changes/object/:entity/:project/models/post.md)

---

[API](https://skmtc.dev/wandb/apis/fastapi.md) · [All operations](https://skmtc.dev/wandb/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wandb/fastapi/revisions/b6cf2a1c4dac/schema)
