Ollama · REST API

Chat with message history

Send a list of messages, including earlier turns.

curl http://localhost:11434/api/chat -d '{"model": "llama3.2", "messages": [{"role": "user", "content": "Hello"}], "stream": false}'

Official Ollama documentation

More rest api commands

All rest api commands · Ollama cheatsheet

Was this page helpful?