← All Models

Grok 4.2

xAI Text

xAI's latest general-purpose model. Broad knowledge and strong all-around capabilities.

Web Search X Search

Specifications

ProviderxAI
CategoryText

Pricing (Starter tier)

260.00 credits / 1M input tokens
780.00 credits / 1M output tokens

Higher tiers get volume discounts. See tiers

Quick Start

curl -X POST https://query.genx.sh/api/v1/generate \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.2", "params": { "prompt": "Explain the difference between TCP and UDP" } }'

Example Request Body

// POST /api/v1/generate { "model": "grok-4.2", "params": { "prompt": "Explain the difference between TCP and UDP" } }

Try Grok 4.2 on GenX Router

500 free credits on signup. No credit card required.