Description
Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality work flows.
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: xAI: Grok Code Fast 1 (x-ai/grok-code-fast-1)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "x-ai/grok-code-fast-1",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the xAI: Grok Code Fast 1 model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'
Supported Modalities
- Text
API Pricing
- Input: 0.2$ / 1M tokens
- Output: 1.5$ / 1M tokens
Token Limits
- Max Output: 10,000 tokens
- Max Context: 256,000 tokens
Subscription Tiers
- free
- pro
- ultimate