---
title: "Get Model Script"
method: GET
path: "/v1/models/{model}/script"
tags: ["Models"]
---

# Get Model Script

`GET /v1/models/{model}/script`

## Request

- Base URL: `https://api.ensemble.markets` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ensemble.markets/v1/models/{model}/script`
- Auth: HTTP bearer

Download the model's standalone Python (public by slug, or owner).

The file inlines the runtime harness so it runs outside the platform. The model's `script_url` points here.

## Path parameters

- `model` string, required: Model ID (model_... or legacy m-...), slug, symbol or exact name

## Response `200`

Standalone Python implementation

## Other responses

- `4XX`: The request was refused; `error.type` says why
- `5XX`: The server failed; quote `X-Request-Id` when reporting it

---

[API](https://skmtc.dev/ensemble/apis/ensemble-api.md) · [All operations](https://skmtc.dev/ensemble/apis/ensemble-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ensemble/apis/ensemble-api/revisions/4c0fbd80c197?raw)
