API Documentation
OllamoMUI is a drop-in Ollama replacement — all standard Ollama endpoints work unmodified. Plus, we add custom endpoints for RAG, memory, settings, and provider management.
Ollama Compatible
/api/tagsList all available models. Returns model names, sizes, and metadata.
curl https://ollamomui-backend.onrender.com/api/tags/api/chatChat completion streaming endpoint. Drop-in replacement for Ollama's /api/chat.
curl -X POST https://ollamomui-backend.onrender.com/api/chat \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'/api/generateText generation endpoint. Drop-in replacement for Ollama's /api/generate.
curl -X POST https://ollamomui-backend.onrender.com/api/generate \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","prompt":"Hello"}'OpenAI Compatible
/v1/chat/completionsOpenAI-compatible chat completions. Use any OpenAI SDK/curl with the OllamoMUI base URL.
curl -X POST https://ollamomui-backend.onrender.com/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'/v1/modelsList models in OpenAI-compatible format.
curl https://ollamomui-backend.onrender.com/v1/modelsRAG
/api/rag/queryQuery the RAG knowledge base. Optionally specify a collection. Returns chunk matches with similarity scores.
curl -X POST https://ollamomui-backend.onrender.com/api/rag/query \
-H "Content-Type: application/json" \
-d '{"query":"What is RAG?","top_k":5}'/api/rag/uploadUpload a document (PDF, TXT, CSV, MD, JSON, DOCX) for ingestion into the RAG pipeline.
curl -X POST https://ollamomui-backend.onrender.com/api/rag/upload \
-F "file=@document.pdf"/api/rag/collectionsList all RAG collections with document counts.
curl https://ollamomui-backend.onrender.com/api/rag/collections/api/rag/collections/{id}Delete a RAG collection and all its documents.
curl -X DELETE https://ollamomui-backend.onrender.com/api/rag/collections/1Memory
/api/memoryRetrieve conversation memory history with pagination.
curl https://ollamomui-backend.onrender.com/api/memory?session_id=abc123/api/memory/clearClear memory for a session or all sessions.
curl -X POST https://ollamomui-backend.onrender.com/api/memory/clear \
-H "Content-Type: application/json" \
-d '{"session_id":"abc123"}'Settings
/api/providersList all configured LLM providers and their status.
curl https://ollamomui-backend.onrender.com/api/providers/api/providers/{name}Update an LLM provider's configuration (API key, model, endpoint).
curl -X PUT https://ollamomui-backend.onrender.com/api/providers/gpt-4o-mini \
-H "Content-Type: application/json" \
-d '{"api_key":"sk-...","model":"gpt-4o-mini"}'/api/settings/databaseGet current database URL configuration.
curl https://ollamomui-backend.onrender.com/api/settings/database/api/settings/databaseUpdate database connection URL and reconnect.
curl -X PUT https://ollamomui-backend.onrender.com/api/settings/database \
-H "Content-Type: application/json" \
-d '{"database_url":"postgresql://user:pass@host:5432/db"}'/api/settings/database/testTest database connectivity without applying changes.
curl https://ollamomui-backend.onrender.com/api/settings/database/test?url=postgresql://...