Get started
If you’re just getting started, follow the quickstart documentation to get up and running with Ollama’s API.Base URL
After installation, Ollama’s API is served by default at:http://localhost:11434/api
https://ollama.com/api
Example request
Once Ollama is running, its API is automatically available and can be accessed viacurl:
curl http://localhost:11434/api/generate -d '{
"model": "gemma4",
"prompt": "Why is the sky blue?"
}'