---
title: "Downloads the model definition."
method: GET
path: "/di/v1/models/{model_id}/definition"
tags: ["Models"]
---

# Downloads the model definition.

`GET /di/v1/models/{model_id}/definition`

Downloads the model definition that was initial used for training as ZIP archive.

## Path parameters

- `model_id` string, string, required

## Query parameters

- `version` string

## Response `200`

Model definition

## Other responses

- `401` — Unauthorized
- `404` — The model cannot be found.

## Changes

- **2022-04-06** `8d1177afef44` — 1 info
  - the `query` request parameter `version` became optional
- **2021-03-12** `c4815b4021b4` — 1 breaking
  - the `query` request parameter `version` became required

[Change history](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/changes/di/v1/models/:model_id/definition/get.md)

---

[API](https://skmtc.dev/webankfintech/apis/prophecis-rest-service.md) · [All operations](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/llms.txt) · [OpenAPI document](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/revisions/41a1038b5854?raw)
