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

# Downloads the trained model.

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

Downloads the trained model as ZIP archive.

## Path parameters

- `model_id` string, string, required

## Query parameters

- `version` string

## Response `200`

Model definition

## Other responses

- `401` — Unauthorized
- `404` — The trained model cannot be found.
- `410` — If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.

## 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/trained_model/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-service-production.skmtc.workers.dev/v1/apis/webankfintech/prophecis-rest-service/revisions/41a1038b5854/schema)
