diff --git a/README.md b/README.md index ec24fc2b..cf5c2f83 100644 --- a/README.md +++ b/README.md @@ -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?"}' +```