Grok 4.5 API Guide — xAI with Real-Time X Data
Grok 4.5 is xAI's flagship model, known for its real-time access to X (Twitter) data and uncensored responses. On Qubax, it's available at 81% off OpenRouter — $0.39/1M input tokens.
What Makes Grok Different?
- Real-time X data: Access to live tweets and trends (not available on GPT or Claude)
- Less censored: Grok is known for being more willing to answer controversial questions
- Strong reasoning: Competitive with GPT-5 on general benchmarks
- Context: 500K token context window
Quick Start
python
from openai import OpenAI
client = OpenAI(
base_url="https://api.qubax.ai/v1",
api_key="qbx_live_YOUR_KEY",
)
response = client.chat.completions.create(
model="grok-4.5",
messages=[
{"role": "user", "content": "What are people saying about AI regulation on X right now?"}
],
)
print(response.choices[0].message.content)Use Cases
1. Social Media Monitoring
code
"Summarize the top discussions about Elon Musk on X today"2. Uncensored Research
code
"Explain the controversial aspects of [topic] without holding back"3. Real-Time News Analysis
code
"What's the latest sentiment on Bitcoin on social media?"JavaScript Example
javascript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.qubax.ai/v1",
apiKey: "qbx_live_YOUR_KEY",
});
const response = await client.chat.completions.create({
model: "grok-4.5",
messages: [{ role: "user", content: "What's trending on X?" }],
});
console.log(response.choices[0].message.content);Price Comparison
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| OpenRouter | $2.00 | $6.00 |
| Qubax | $0.39 | $1.16 |
| Savings | 81% off |
Related
- Grok 4.5 API — full pricing and specs
- Claude Opus 5 API — compare with Anthropic
- GPT-5.6 Terra API — cheapest option
- All models
Try Grok 4.5 at 81% off — [get $1 free credits](https://qubax.ai/register).