Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

add basic REST api documentation

Jeffrey Morgan91cd54016c47
diff --git a/README.md b/README.md
index ec24fc2b6..cf5c2f838 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?"}'
+```