add basic REST api documentation

This commit is contained in:
Jeffrey Morgan 2023-07-21 00:47:17 -07:00
parent e7a393de54
commit 91cd54016c

View file

@ -125,3 +125,13 @@ Finally, run a model!
```
./ollama run llama2
```
## REST API
### `POST /api/generate`
Generate text from a model.
```
curl -X POST http://localhost:11434/api/generate -d '{"model": "llama2", "prompt":"Why is the sky blue?"}'
```