Haimaker.ai Logo
Xai logo

Grok Code Fast 1

xai/grok-code-fast-1
Chat
Xai|
Function CallingReasoning

Grok Code Fast 1 (xai/grok-code-fast-1) is an AI model from Xai with a 256,000-token context window and 256,000 max output tokens, priced at $0.20/1M input and $1.50/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

Context Window
256K
tokens
Max Output
256K
tokens
Input Price
$0.20
/1M tokens
Output Price
$1.50
/1M tokens

Overview

Grok Code Fast 1 is a chat model by Xai. It supports a 256K token context window. Supports function calling, reasoning.

Features & Capabilities

Modechat
Context Window256,000 tokens
Max Output256,000 tokens
Function CallingSupported
Vision-
ReasoningSupported
Web Search-
Url Context-

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="xai/grok-code-fast-1",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Frequently Asked Questions

What is the context window of Grok Code Fast 1?

Grok Code Fast 1 (xai/grok-code-fast-1) has a 256,000-token context window and supports up to 256,000 output tokens per request.

How much does Grok Code Fast 1 cost?

Grok Code Fast 1 is priced at $0.20 per 1M input tokens and $1.50 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does Grok Code Fast 1 support?

Grok Code Fast 1 supports function calling, reasoning.

How do I use Grok Code Fast 1 via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "xai/grok-code-fast-1" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Use Grok Code Fast 1 with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

More from Xai