diff --git a/src/khoj/utils/constants.py b/src/khoj/utils/constants.py index d00b657b..354e9bcf 100644 --- a/src/khoj/utils/constants.py +++ b/src/khoj/utils/constants.py @@ -76,6 +76,8 @@ model_to_cost: Dict[str, Dict[str, float]] = { "grok-3-latest": {"input": 3.0, "output": 15.0}, "grok-3-mini": {"input": 0.30, "output": 0.50}, "grok-3-mini-latest": {"input": 0.30, "output": 0.50}, + "grok-4": {"input": 3.0, "cache_read": 0.75, "output": 15.0}, + "grok-4-fast": {"input": 0.20, "cache_read": 0.05, "output": 0.50}, # Groq pricing "moonshotai/kimi-k2-instruct": {"input": 1.00, "output": 3.00}, "openai/gpt-oss-120b": {"input": 0.15, "output": 0.75},