Skip to content
Dashboard

Grok 4.5 now available on AI Gateway

Grok 4.5 from SpaceXAI is now available on AI Gateway.

Built for coding, knowledge work, and STEM, the model accepts text and image inputs.

Grok 4.5 supports low, medium, and high reasoning levels and defaults to high. Set the level with reasoning to balance speed against depth.

To use Grok 4.5, set model to xai/grok-4.5 in the AI SDK:

import { streamText } from 'ai';
const result = streamText({
model: 'xai/grok-4.5',
reasoning: 'high',
prompt: 'Analyze this dataset and summarize the key trends.',
});

You can also set routing rules to switch to Grok 4.5 from other gateway models without touching your code.

vercel ai-gateway rules add \
--type rewrite \
--source xai/grok-4.3 \
--destination xai/grok-4.5

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.

Try Grok 4.5 in the model playground.

AI Gateway: Track top AI models by usage

The AI Gateway model leaderboard tracks the most popular models over time, ranking them by the total volume of tokens processed across all Gateway traffic.

View the leaderboard


Reference Architecture

Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.

  • Agent stack: Build and operate agents with models, tools, and durable workflows.
  • Web applications: Choose rendering, data, authentication, and caching approaches.
  • Backends: Choose a runtime, connect services, and run background work.

Browse all stacks

Build with prompts

Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.