---
title: "Trains a new deep learning model."
method: POST
path: "/di/v1/models"
tags: ["Models"]
---

# Trains a new deep learning model.

`POST /di/v1/models`

Trains a deep neural network written in a DL framework supported by the DLaaS platform (such as Caffe, Tensorflow, etc.). The model code has to be uploaded and configuration parameters have to be provided.

## Query parameters

- `version` string

## Response `201`

Deep learning model successfully accepted.

- BasicNewModel
  - `model_id` string — A unique id of the deep learning model.
  - `location` string — Location of the model to retrieve it.

## Other responses

- `400` — Error in the the model_definition or manifest.
- `401` — Unauthorized

---

[API](https://skmtc.net/webankfintech/apis/prophecis-rest-service.md) · [All operations](https://skmtc.net/webankfintech/apis/prophecis-rest-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webankfintech/prophecis-rest-service/versions/41a1038b5854/schema)
