
grok-4.2Trillion-parameter model with 16-Agent cluster collaboration, real-time data processing and self-evolution capabilities.
Multi-agent collaboration
Live data stream processing
Weekly high-frequency updates
Business automation ready
View complete API reference with all parameters and examples.
View complete API reference with streaming, thinking, and more.
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
Grok-4.2 is a Large Language Model API provided by xAI. Trillion-parameter model with 16-Agent cluster collaboration, real-time data processing and self-evolution capabilities. Through API Models platform, you can access this model via a unified API at prices significantly lower than official rates. Current pricing: Input: $0.618, Output: $3.089 per 1M tokens.
Build intelligent conversational systems to automatically answer user queries and improve service efficiency.
Automatically write articles, emails, ad copy, and other text content to boost productivity.
Assist with code writing, debugging, and code review to accelerate software development.
Understand and analyze unstructured data, extract key insights, and generate summary reports.
Grok-4.2 is available through API Models at: Input: $0.618, Output: $3.089 per 1M tokens. This is up to 95% cheaper than official pricing.
Sign up at API Models, get your API key, and call our unified API endpoint. We provide detailed API documentation with code examples in cURL, Python, and Node.js.
API Models offers the same Grok-4.2 model at 60-95% lower cost through our aggregation platform. We provide a unified API interface so you do not need separate accounts for each provider - one API key to access all models.
xAI's trillion-parameter model built around a 16-agent collaborative cluster, real-time data processing, and self-evolution, with function calling supported. A strong pick when a task benefits from current/real-time information or agentic orchestration.
Yes — function calling works (verified). Call it via /api/v1/chat/completions in OpenAI-compatible shape, so it drops into existing agent frameworks.
On API Models, Grok-4.2 runs alongside 60+ models on one API key and one balance, so choosing is about fit, not lock-in. It supports 16-Agent Cluster, Real-time Data, Self-Evolution, and you can weigh it on price and capability against other Large Language Model models, then switch by changing a single model-name string — no new account or integration. Browse every Large Language Model option with live pricing at apimodels.app/models.
Grok-4.2 supports: 16-Agent Cluster, Real-time Data, Self-Evolution. See the API Models docs for full parameters and call examples.
Yes. API Models exposes Grok-4.2 through a single unified API and one key — no separate provider accounts, and no need to handle each provider's regional network access yourself.
We support Stripe (Visa, Mastercard, and other international cards) and Alipay. Credits are available instantly after payment.