---
title: "Ollama-dialect model pull (NDJSON progress) — successor: POST /v1/models/download"
method: POST
path: "/legacy/ollama/api/pull"
tags: ["Legacy: Ollama-compatible API"]
deprecated: true
---

# Ollama-dialect model pull (NDJSON progress) — successor: POST /v1/models/download

`POST /legacy/ollama/api/pull`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/legacy/ollama/api/pull`
- Auth: HTTP bearer

> **Deprecated.**

Fronts the first-party download machinery (visible in the UI and /v1/models/downloads). Resolution order: already installed → hf.co/owner/repo[:quant] → curated Ollama name → fixture-pinned 500. Never speaks Ollama's registry blob protocol. Progress streams as one synthetic layer with real byte counts; `"stream": false` long-polls the terminal state. A client disconnect stops the stream, not the download.

## Request body

- object
  - `model` string
  - `name` string: Legacy request key
  - `stream` boolean

## Response `200`

NDJSON progress stream ending in a `success` status

## Other responses

- `500`: Unknown model (fixture-pinned manifest error envelope)

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
