Skip to content

Pull Ollama Model

POST
/api/ai-configs/ollama-pull
curl --request POST \
--url http://localhost:8080/api/ai-configs/ollama-pull \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "model": "example", "base_url": "example" }'

Download a model into the user’s Ollama instance, streaming progress.

Proxies Ollama’s /api/pull and forwards its NDJSON progress lines to the browser so the UI can show a live download bar. Models must still support tool calling to be usable for tests (verified separately via Test connection).

Media typeapplication/json
OllamaPullRequest
object
model
required
Model
string
base_url
Any of:
string
Examplegenerated
{
"model": "example",
"base_url": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}