Compare models Compare image models AI Tools Models AI Image Models AI News Search Try it free
Grok 4 by xAI Realtime

Chat with Grok 4 for free

Grok 4 pairs realtime knowledge with a direct, witty tone and live web search, strong on current events and fresh information. Start typing, no sign-up needed.

Free in ChatdaySwitch models any timeCompare with other models
Live preview

See how Grok 4 thinks

Pick a task and watch a sample answer stream in. Open the same prompt in Chatday when you’re ready.

Why does this return undefined? const u = users.find(u => u.id = id)

The bug is in the arrow body: u.id = id assigns instead of compares, so the callback returns the assigned value and .find never matches the way you expect.

Fix it with a strict comparison:

const u = users.find(u => u.id === id);

Use === to compare. A single = is assignment, which is why you saw undefined.

Illustrative preview: your real answers run in Chatday. Continue in Chatday
Strengths

What makes Grok 4 stand out

Realtime knowledge and live search
Direct, witty tone
1M-token context window
At a glance

Grok 4 specifications

1M
Context window
1M
Max output
Text · Vision · Code
Modality
Balanced
Speed
Free & Pro
Available in Chatday
ProviderxAI
Model familyGrok 4 series
Context window1,000,000 tokens
Max output1,000,000 tokens
ModalityText · Vision · Code
Input price$0.2 / 1M tokens
Output price$0.5 / 1M tokens
Tool / function callingYes
VisionYes
StreamingYes
Available in ChatdayFree & Pro

Pricing shown for reference; usage is included in your Chatday plan.

Side by side

Grok 4 vs other top models

Compare
Model Context Best at Input price In Chatday
Grok 4 1M Realtime $0.2/M Free
Claude Opus 4.8 1M Frontier coding $5/M Free
GPT-5.5 1M Flagship reasoning $5/M Free
Gemini 3.1 Pro 1M Multimodal $2/M Free
FAQ

Grok 4 questions

Yes. Grok 4 is available on the free plan with daily limits. Pro raises the limits and adds priority access during peak times.
1M tokens: enough for very long documents, large codebases or extended conversations without losing earlier context.
Reach for Grok 4 on the tasks it’s built for, then switch models mid-chat in Chatday when another one fits better, no need to leave the conversation.
Yes. Grok 4 accepts image input, so you can share screenshots, diagrams and photos and ask it to reason over them.

Chat with Grok 4 and switch models any time.

One subscription, every leading model. Start free in the Chatday web app.