AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Providers
xAI

xAI

25 models available

Documentation

Models

Browse all models from xAI

Grok 4 Fast (Non-Reasoning)

xai

Tool UseVision

Input

$0.20/1M

Output

$0.50/1M

Context

2.0M

Max Output

30K

Grok 3 Fast

xai

Tool Use

Input

$5.00/1M

Output

$25.00/1M

Context

131K

Max Output

8K

Grok 4

xai

ReasoningTool Use

Input

$3.00/1M

Output

$15.00/1M

Context

256K

Max Output

64K

Grok 2 Vision

xai

Tool UseVision

Input

$2.00/1M

Output

$10.00/1M

Context

8K

Max Output

4K

Grok Code Fast 1

xai

ReasoningTool Use

Input

$0.20/1M

Output

$1.50/1M

Context

256K

Max Output

10K

Grok 2

xai

Tool Use

Input

$2.00/1M

Output

$10.00/1M

Context

131K

Max Output

8K

Grok 3 Mini Fast Latest

xai

ReasoningTool Use

Input

$0.60/1M

Output

$4.00/1M

Context

131K

Max Output

8K

Grok 2 Vision (1212)

xai

Tool UseVision

Input

$2.00/1M

Output

$10.00/1M

Context

8K

Max Output

4K

Grok 3

xai

Tool Use

Input

$3.00/1M

Output

$15.00/1M

Context

131K

Max Output

8K

Grok 4 Fast

xai

ReasoningTool UseVision

Input

$0.20/1M

Output

$0.50/1M

Context

2.0M

Max Output

30K

Grok 2 Latest

xai

Tool Use

Input

$2.00/1M

Output

$10.00/1M

Context

131K

Max Output

8K

Grok 4.1 Fast

xai

ReasoningTool UseVision

Input

$0.20/1M

Output

$0.50/1M

Context

2.0M

Max Output

30K

  • Previous
  • 1
  • 2
  • 3
  • Next
API Integration
NPM Package
@ai-sdk/xai
Environment Variables
XAI_API_KEY
Documentation