AI & Ingredient Parsing
When scraping recipes from the web, multiple strategies are available to map ingredients to household items.
Scraping returns a list of raw ingredient strings (like 3 cloves garlic, 1/2 teaspoon salt, 2 carrots chopped) from which KitchenOwl extracts the ingredient name and description, then maps the names to existing household items.
The default method uses a local natural language processing (NLP) model trained on English ingredients. To use only this method, leave LLM_MODEL empty.
Alternatively, you can configure a Large Language Model (LLM) via LiteLLM. Using an LLM requires more resources or an API key, but provides better results—especially for languages other than English—and can automatically translate ingredient names into your household language.
The same LLM configuration also enables the AI recipe generator ("AI" button when adding recipes), which can be turned off with LLM_RECIPE_GENERATION: "false". If you want to keep using the fast local NLP parser for English recipes while using the LLM for other languages, set NLP_IF_EN: "true".
OpenAI
environment:
LLM_MODEL: gpt-4o-mini
OPENAI_API_KEY: your-api-key
Ollama
Ollama is a locally hosted LLM. You can also run it on a remote host (e.g. your desktop), and when the host is unreachable KitchenOwl automatically falls back to the local NLP method. Prefix the model name with ollama/:
environment:
LLM_MODEL: ollama/llama3.1
LLM_API_URL: http://localhost:11434
OpenRouter
Prefix the model name with openrouter/:
environment:
LLM_MODEL: openrouter/mistralai/mistral-large
LLM_API_URL: https://openrouter.ai/api/v1
OPENROUTER_API_KEY: your-api-key
OpenAI-Compatible API
You can connect to any OpenAI-compatible server (such as vLLM, llama.cpp, LM Studio, LocalAI, or a LiteLLM proxy) by prefixing LLM_MODEL with openai/ and pointing LLM_API_URL at your endpoint:
environment:
LLM_MODEL: openai/my-model-name
LLM_API_URL: http://localhost:8000/v1
OPENAI_API_KEY: your-api-key # Use a placeholder like "not-needed" if auth is disabled
Other Providers
KitchenOwl uses LiteLLM, so any provider supported by LiteLLM (such as Anthropic, Google Gemini, Mistral, Groq, Azure, AWS Bedrock, and more) can be configured by setting LLM_MODEL and the provider's corresponding API key environment variable.
See the LiteLLM Providers documentation for model prefixes and required environment variables.