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 Models
Kilo Gateway

xAI: Grok 4 API

Kilo Gateway
About

Build advanced reasoning agents with xAI: Grok 4, a specialized AI model optimized for complex logic and chain-of-thought tasks. This model delivers cost-effective pricing at $3.00/1M input and $15.00/1M output tokens, native tool calling support. Access xAI: Grok 4 via the Kilo Gateway API with up to 51K output tokens.

Capabilities

Input Modalities

imagetext

Output Modalities

text
Reasoning
Yes
Structured Output
No
Tool Use
Yes
WeightsClosed
Temperature
Adjustable
Attachment
Supported
Limits
Context Window
256K

Tokens

Input Limit
256K

Tokens

Max Output
51K

Tokens

Pricing

Standard (per 1M tokens)

Input
$3.00
Output
$15.00

Caching (per 1M tokens)

Read
$0.75
Frequently Asked Questions

xAI: Grok 4 by Kilo Gateway costs $3.00 per 1M input tokens and $15.00 per 1M output tokens. Cached reads cost $0.75 per 1M tokens.

Model Details
ID
x-ai/grok-4
Provider
Kilo Gateway
Family
Release Date
Jul 9, 2025
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
KILO_API_KEY
API Base URL
https://api.kilo.ai/api/gateway
Documentation