Inference
Llama Stack Inference API for generating completions, chat completions, and embeddings.
This API provides the raw interface to the underlying models. Three kinds of models are supported:
- LLM models: these models generate "raw" and "chat" (conversational) completions.
- Embedding models: these models generate embeddings to be used for semantic search.
- Rerank models: these models reorder the documents based on their relevance to a query.
📄️ List chat completions.
List chat completions.
📄️ Create chat completions.
Generate an OpenAI-compatible chat completion for the given messages using the specified model.
📄️ Get chat completion.
Describe a chat completion by its ID.
📄️ Create completion.
Generate an OpenAI-compatible completion for the given prompt using the specified model.
📄️ Create embeddings.
Generate OpenAI-compatible embeddings for the given input using the specified model.