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
OpenRouter

Grok Code Fast 1 API

OpenRouter
About

Build advanced reasoning agents with Grok Code Fast 1, a specialized AI model optimized for complex logic and chain-of-thought tasks. This model delivers cost-effective pricing at $0.20/1M input and $1.50/1M output tokens, native tool calling support. Access Grok Code Fast 1 via the OpenRouter API with up to 10K output tokens.

Capabilities

Input Modalities

text

Output Modalities

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

Tokens

Input Limit
256K

Tokens

Max Output
10K

Tokens

Pricing

Standard (per 1M tokens)

Input
$0.20
Output
$1.50

Caching (per 1M tokens)

Read
$0.02
Frequently Asked Questions

Grok Code Fast 1 by OpenRouter costs $0.20 per 1M input tokens and $1.50 per 1M output tokens. Cached reads cost $0.02 per 1M tokens.

Model Details
ID
x-ai/grok-code-fast-1
Provider
OpenRouter
Family
grok
Release Date
Aug 26, 2025
Knowledge Cutoff
Aug 1, 2025
API Integration
NPM Package
@openrouter/ai-sdk-provider
Environment Variables
OPENROUTER_API_KEY
API Base URL
https://openrouter.ai/api/v1
Documentation