Skip to main content
GET

Query Parameters

string
Optional Ollama server URL to check (defaults to http://localhost:11434)
string
Optional API key for authentication (if Ollama server requires it)

Response

boolean
Indicates if the connection check was successful
boolean
Whether connection to Ollama was successful
string
Ollama version if connected

Notes

Use this endpoint to verify Ollama is running before attempting other operations.
  • Returns connected: true only if Ollama is running and reachable
  • The version field shows the Ollama server version
  • Useful for health checks and setup validation
  • Default Ollama URL is http://localhost:11434

Usage Example