ollama serveOpen terminal, type or paste
curl http://localhost:11434/api/generate -d "{\"model\": \"llama3\",\"prompt\": \"why is the sky blue?\", \"stream\": false}"
curl is used to send data to server and the post
requestthe url is -d means your sending data (the object {}) with requestIn the request object{} you see the
model: llama3prompt: the question ... "Why is sky blue?"stream: false means it will output all at onceThis will return json payload (idk if thats what it's called)? with the response
This MATTERS, because the api allows other programs and software to talk to your ai model
type in the address and you should see
Ollama is running