Recommended models
Generate embeddings
Use/api/embed
with a single string.
- cURL
- Python
- JavaScript
The
/api/embed
endpoint returns L2‑normalized (unit‑length) vectors.Generate a batch of embeddings
Pass an array of strings toinput
.
- cURL
- Python
- JavaScript
Tips
- Use cosine similarity for most semantic search use cases.
- Use the same embedding model for both indexing and querying.