LocalAI supports generating embeddings for text or list of tokens. For the API documentation you can refer to the OpenAI docs: https://platform.openai.com/docs/api-reference/embeddings Model compatibility linkThe embedding endpoint is compatible with llama.cpp models, bert.cpp models and sentence-transformers models available in huggingface.