x-ai/grok-4-fast:freexAI's Grok, a large language model with real-time knowledge, reasoning, and function calling capabilities.
| Mode | chat |
| Context Window | 2M tokens |
| Max Output | 30K tokens |
| Function Calling | Supported |
| Vision | - |
| Reasoning | Supported |
| Web Search | - |
| Url Context | - |
from openai import OpenAI
client = OpenAI(
base_url="https://api.haimaker.ai/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="x-ai/grok-4-fast:free",
messages=[
{"role": "user", "content": "Hello, how are you?"}
],
)
print(response.choices[0].message.content)OpenAI-compatible endpoint. Start building in minutes.