xai/grok-4 🔢📝 → 📝

⭐ Official ▶️ 69 runs 📅 Oct 2025 ⚙️ Cog 0.16.8
code-generation question-answering text-generation

About

Grok 4 is xAI’s most advanced reasoning model. Excels at logical thinking and in-depth analysis. Ideal for insightful discussions and complex problem-solving.

Example Output

Prompt:

"Shawn has 3 apples and gives 1 to John. How many apples does Shawn have left?"

Output

Shawn has 2 apples left.

Performance Metrics

4.06s Prediction Time
4.08s Total Time
All Input Parameters
{
  "top_p": 1,
  "prompt": "Shawn has 3 apples and gives 1 to John. How many apples does Shawn have left?",
  "max_tokens": 2048,
  "temperature": 0.1,
  "presence_penalty": 0,
  "frequency_penalty": 0
}
Input Parameters
top_p Type: numberDefault: 1
Top-p (nucleus) sampling
prompt Type: stringDefault:
Prompt
max_tokens Type: integerDefault: 2048
The maximum number of tokens the model should generate as output.
temperature Type: numberDefault: 0.1
The value used to modulate the next token probabilities.
presence_penalty Type: numberDefault: 0
Presence penalty
frequency_penalty Type: numberDefault: 0
Frequency penalty
Output Schema

Output

Type: arrayItems Type: string

Version Details
Version ID
6bfe0a6cdf638ad70ec8eb8856223c345729fb5de90027d61192b3f8d500328a
Version Created
October 24, 2025
Run on Replicate →