x

grok-4-fast-non-reasoning

4k ContextTextPopular

xAI's grok-4-fast-non-reasoning with extremely cost-effective pricing. focused AI solutions.

Pricing / 1M
USD
Input$0.16
Output$0.4
Context Window
4ktokens
Avg Latency
450ms

Capability Radar

Compare with Claude 3

About grok-4-fast-non-reasoning

"Specialized capabilities"

grok-4-fast-non-reasoning is xAI's extremely cost-effective model featuring focused context window (4K). Specialized capabilities, this model delivers purpose-built for specific tasks.

Key Strengths

  • Specialized capabilities
  • Exceptional cost-effectiveness for high-volume use
  • Optimized for low-latency responses
  • OpenAI SDK compatible
  • Production-ready reliability

🎯 Best Use Cases

  • Real-time chatbots and customer support
  • High-volume content moderation
  • Quick classification and tagging
  • High-volume API processing
  • Cost-sensitive production applications

Technical Specifications

Context Window
4K
Max Output
4,096 tokens
Knowledge Domain
Chat, Text
Provider
xAI

Quick Start Guide

example.tsTypeScript
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.okrouter.com/v1",
  apiKey: "<YOUR_OKROUTER_KEY>",
});

async function main() {
  const completion = await openai.chat.completions.create({
    model: "grok-4-fast-non-reasoning",
    messages: [
      { role: "user", content: "Hello! What can you do?" }
    ],
  });

  console.log(completion.choices[0].message);
}

main();

Getting started with grok-4-fast-non-reasoning is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. grok-4-fast-non-reasoning is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Text support.

Interactive Playground

Parameters Setup

0.7

Controls randomness: Lowering results in less random completions.

Return data chunks as they arrive

request.js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.okrouter.com/v1",
  apiKey: process.env.OKROUTER_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "grok-4-fast-non-reasoning",
  messages: [{ role: "user", content: "Hello world!" }],
  temperature: 0.7,
  stream: true,
});

Frequently Asked Questions

?How much does grok-4-fast-non-reasoning cost?

grok-4-fast-non-reasoning costs $0.16 per 1M input tokens and $0.40 per 1M output tokens via OkRouter. This is 20% cheaper than OpenRouter with the same great performance.

?Is grok-4-fast-non-reasoning compatible with OpenAI SDK?

Yes! grok-4-fast-non-reasoning works seamlessly with all OpenAI SDKs (Python, JavaScript, Go, etc.). Simply change your base_url to api.okrouter.com and use your OkRouter API key. No code changes needed.

?What is grok-4-fast-non-reasoning best used for?

grok-4-fast-non-reasoning excels at real-time chatbots and customer support, high-volume content moderation, quick classification and tagging. It's extremely cost-effective and perfect for high-volume production workloads.