Ollama · REST API

Create embeddings

Turn text into a vector, using an embedding model such as nomic-embed-text.

curl http://localhost:11434/api/embed -d '{"model": "nomic-embed-text", "input": "hello world"}'

Official Ollama documentation

More rest api commands

All rest api commands · Ollama cheatsheet

Was this page helpful?