---
title: "Create a Model."
method: POST
path: "/mf/v1/model/"
tags: ["modelStorage"]
---

# Create a Model.

`POST /mf/v1/model/`

Post Model.

## Request body

- PostModelRequest
  - `model_type` string, required — Type for the model
  - `root_path` string — File's root path
  - `child_path` string — File's child path
  - `file_name` string — File's name
  - `s3_path` string — S3Path
  - `training_id` string — The id of training
  - `training_flag` number — The flag that whether generated by model operator.
  - `group_id` integer, required
  - `model_name` string, required
  - `model_version` string — model version , eg v1, v2 ...
  - `filepath` string — directory of file storage

## Response `200`

OK

- PostModelResp
  - `model_id` integer
  - `model_version_id` integer
  - `model_version` string

## Other responses

- `401` — Unauthorized
- `404` — Model create failed

---

[API](https://skmtc.dev/webankfintech/apis/mf-server.md) · [All operations](https://skmtc.dev/webankfintech/apis/mf-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/mf-server/revisions/5ad7fc23d2c6/schema)
