From aab0653025b4e2fe9c12f56f9069eb796654f550 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Mon, 10 Nov 2025 18:10:01 -0800 Subject: [PATCH] Add price for grok 4, grok 4 fast for cost estimatation --- src/khoj/utils/constants.py | 2 ++ 1 file changed, 2 insertions(+) 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},