Legacy: Ollama-compatible API

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

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.

post/legacy/ollama/api/pull

Request

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

Request body

modelstring
namestring

Legacy request key

streamboolean

Response

NDJSON progress stream ending in a success status

Changes

No recorded changes to this operation across all 1 revision of this API.