Pull Ollama Model
POST
/api/ai-configs/ollama-pull
const url = 'http://localhost:8080/api/ai-configs/ollama-pull';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model":"example","base_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}