Using the Ollama REST API with curl
Ollama exposes a simple REST API on http://localhost:11434 . The two endpoints you will use most are /api/generate for single prompts and /api/chat for conversations. Both accept JSON and can be tested straight from curl, with no SDK needed. /api/generate: one...