
The Grok Series represents xAI's family of state-of-the-art large language models. These models, developed by xAI, leverage cutting-edge technology to deliver exceptional performance in natural language processing, instruction-following tasks, and multimodal interactions. Grok is known for its real-time knowledge capabilities through X platform integration and its unique personality that combines intelligence with wit. The models are available through APIpie's routing system.
For technical details and performance metrics, see the Grok technical report.
When choosing between Grok models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
| Model Name | Max Tokens | Response Tokens | Provider | Subtype | Type |
|---|---|---|---|---|---|
| grok-beta | 131,072 | 131,072 | openrouter | chatx | llm |
| grok-vision-beta | 8,192 | 8,192 | openrouter | multimodal | vision |
| grok-2-1212 | 131,072 | 131,072 | openrouter | chatx | llm |
| grok-2-vision-1212 | 32,768 | 32,768 | openrouter | multimodal | vision |
Below is an example of how to use the Chat Completions API to interact with a model from the Grok Series, such as grok-beta.
curl -L -X POST 'https://apipie.ai/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
"provider": "openrouter",
"model": "grok-beta",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "Can you explain how photosynthesis works?"
}
]
}'
The expected response structure for the Grok model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "grok-beta",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy into chemical energy. Here's how it works:\n\n1. **Light Absorption**: Plants capture light energy using a pigment called chlorophyll, which is found in chloroplasts.\n\n2. **Water and Carbon Dioxide**: They absorb water through their roots and carbon dioxide from the air.\n\n3. **Glucose Production**: The light energy is used to convert water and carbon dioxide into glucose (a sugar) and oxygen. The equation is:\n \n 6CO2 + 6H2O + light energy → C6H12O6 + 6O2\n\nThis process provides energy for the plant and releases oxygen into the atmosphere."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 125,
"total_tokens": 140,
"prompt_characters": 45,
"response_characters": 520,
"cost": 0.00225,
"latency_ms": 3100
},
"system_fingerprint": "fp_123abc456def"
}
grok-beta or grok-vision-beta. See Models Guide.This example demonstrates how to seamlessly query models from the Grok Series for conversational or instructional tasks.
grok-vision-beta and grok-2-vision-1212 for image understanding and multimodal applications. Learn more about vision capabilities.The Grok models are powerful tools that should be used responsibly. Users should implement appropriate safeguards and consider potential biases in model outputs. For guidance on responsible AI usage, refer to AI Safety Approach and Ethical AI Guidelines. The development team maintains transparency through their open science initiative and regular safety assessments.
For detailed licensing information and usage terms, consult xAI terms.
Explore Google's AI: Gemini & Gemma Series Overview
Explore Google's advanced AI models, including Gemini and Gemma. Compare features, pricing, and integration options for transformative applications.
AI21 Labs: Powerful AI & API Integration Guide
Discover AI21's powerful language models like Jurassic-2 and Jamba. Compare features, explore applications, and learn about integration options!