Ollama provides an OpenAI-compatible REST API that n8n can call through its HTTP Request node or native OpenAI credentials, enabling local LLM workflows without cloud API costs.