
Grok 4.5 (xAI) API
grok-4.5Grok 4.5 is xAI's earlier flagship, now followed by Grok 4.6, with reasoning and non-reasoning modes and 500K context for coding, tool calling and instruction following. It runs only on the OpenAI-compatible /v1/chat/completions, not the Anthropic /v1/messages format. Call grok-4.5 at $1.275 / $4.25 per 1M tokens.
API Documentation
View complete API reference with all parameters and examples.
Full API Documentation
View complete API reference with streaming, thinking, and more.
Pricing
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
Industry-Leading Flagship
Leads on coding, non-hallucination rate, agentic tool calling and instruction following
Reasoning + Non-Reasoning
Supports both modes; 500K-token context window
Below Official Price
$1.275 input / $4.25 output per 1M vs xAI official $2.00 / $6.00 (36% / ~29% off)
OpenAI-Compatible
Call via /v1/chat/completions (model = grok-4.5), streaming + tool calling
About Grok 4.5
Grok 4.5 is a Large Language Model API provided by xAI. Grok 4.5 is xAI's previous flagship model (Grok 4.6 is newer); at launch xAI said it led the industry in coding, non-hallucination rate, agentic tool calling, and instruction following. It supports both non-reasoning and reasoning modes and a 500K-token context window. Served via the OpenAI-compatible /v1/chat/completions endpoint (call the grok- model there; the Anthropic /v1/messages format is not used on our side). Priced below xAI official: $1.275 input / $4.25 output per 1M tokens vs official $2.00 / $6.00 (36% off input, ~29% off output). Failed requests are not billed. Through APIMODELS platform, you can access this model via a unified API with transparent pay-as-you-go pricing. Current pricing: Input: $1.275, Output: $4.25 per 1M tokens.
Key Features
- Industry-Leading Flagship -- Leads on coding, non-hallucination rate, agentic tool calling and instruction following
- Reasoning + Non-Reasoning -- Supports both modes; 500K-token context window
- Below Official Price -- $1.275 input / $4.25 output per 1M vs xAI official $2.00 / $6.00 (36% / ~29% off)
- OpenAI-Compatible -- Call via /v1/chat/completions (model = grok-4.5), streaming + tool calling
Use Cases
Chatbot & Customer Support
Build intelligent conversational systems to automatically answer user queries and improve service efficiency.
Content Generation
Automatically write articles, emails, ad copy, and other text content to boost productivity.
Code Assistant
Assist with code writing, debugging, and code review to accelerate software development.
Data Analysis
Understand and analyze unstructured data, extract key insights, and generate summary reports.
Why APIMODELS
- Unified API -- One API key to access all models, no need to register on multiple platforms
- Transparent Pricing -- Pay-as-you-go with per-call pricing published on every model page, ideal for indie developers and startups
- Instant Access -- Start right after signup; pay by card, PayPal, Alipay or USDT
- Full Documentation -- Detailed API docs with code examples in cURL, Python, and Node.js
Frequently Asked Questions
How to use Grok 4.5 API?
Sign up at APIMODELS, get your API key, and call our unified API endpoint. We provide detailed API documentation with code examples in cURL, Python, and Node.js.
What is the difference between APIMODELS and the official xAI API?
APIMODELS offers the same Grok 4.5 model 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.
What is Grok 4.5 and what's it best at?
Grok 4.5 is xAI's newest flagship model, leading the industry in coding, non-hallucination rate, agentic tool calling, and instruction following. It supports both non-reasoning and reasoning modes with a 500K-token context window. On APIMODELS you call it via the OpenAI-compatible /v1/chat/completions endpoint (model = "grok-4.5") — point your existing OpenAI SDK at our base_url and it works as-is.
How much does Grok 4.5 cost — and how much more affordable than official?
$1.275 input / $4.25 output per 1M tokens — below xAI official ($2.0 input / $6.0 output): 36% off input, ~29% off output. Pay-as-you-go with only successful requests billed, one API key for every model (Grok, Claude, Gemini, GPT…), reachable from China with no verification.
Does Grok 4.5 support function calling / tools?
Yes — verified live. Pass the standard OpenAI tools / tool_choice fields and the model returns a standard tool_calls response; tool_choice supports auto / required / a named function. This is its headline agentic tool-calling capability, so existing OpenAI function-calling code works unchanged.
How does Grok 4.5 compare with other models in the Large Language Model category?
On APIMODELS, Grok 4.5 runs alongside 60+ models on one API key and one balance, so choosing is about fit, not lock-in. It supports Flagship, Coding SOTA, Agentic Tool Calling, 500K Context, and you can weigh it on price and capability against other models in the Large Language Model category, then switch by changing a single model-name string — no new account or integration. Browse every model in that category with live pricing at apimodels.app/models.
What can Grok 4.5 do?
Grok 4.5 supports: Flagship, Coding SOTA, Agentic Tool Calling, 500K Context. See the APIMODELS docs for full parameters and call examples.
Can I use the Grok 4.5 API from any country, including mainland China?
Yes. APIMODELS does not restrict access by country: the site and the API answer requests from anywhere, and apimodels.app and api.apimodels.app are reachable directly from mainland China without a proxy. You call Grok 4.5 with one APIMODELS key, so you do not need a separate account with the model's developer.
What payment methods are supported? Can I pay with PayPal or crypto?
Yes to both. You can top up with a card (Visa, Mastercard and others, through Stripe), PayPal, Alipay, or USDT on TRON (TRC20) or BNB Smart Chain (BEP20). Card, PayPal and Alipay top-ups are credited immediately; USDT is credited once the transfer confirms on-chain. Auto top-up is optional, and a $50 top-up adds a $1 bonus ($3 on a $100 top-up). The balance is in USD and billed per use, with no subscription.
Related models
Related reading
How to get access, regional availability, and how this model compares with its alternatives.