Reasoning
o4-mini
Fast reasoning model balancing speed and logical depth. Great for structured astrological analysis where reasoning matters but latency is a concern.
Parameters
~200B
Context
200K
Input Price
$0.03/1M tok
Output Price
$0.12/1M tok
Latency
~800ms
Key Strengths
- ✓ Fast reasoning
- ✓ Good logic chains
- ✓ Cost-efficient
- ✓ 200K context
- ✓ Reliable
Use Cases
Structured chart analysis
Quick reasoning tasks
Kundali scoring
Compatibility analysis
Quick Start
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.xalen.io/v1',
apiKey: 'your-xalen-api-key'
});
const response = await client.chat.completions.create({
model: 'o4-mini',
messages: [
{ role: 'system', content: 'You are a Vedic astrology expert.' },
{ role: 'user', content: 'Analyze the effects of Jupiter in the 7th house.' }
],
max_tokens: 1024
});
console.log(response.choices[0].message.content);
Frequently Asked Questions
What is o4-mini?
Fast reasoning model balancing speed and logical depth. Great for structured astrological analysis where reasoning matters but latency is a concern.
How much does o4-mini cost?
Pricing starts at $0.03 per 1M input tokens and $0.12 per 1M output tokens. Batch processing gets a 50% discount. No monthly minimums.
What languages does o4-mini support?
14 Indian languages including Hindi, Tamil, Telugu, Kannada, Malayalam, Bengali, Marathi, Gujarati, Odia, Punjabi, Assamese, Sinhala, Nepali, and Sanskrit. Plus English.
How do I access o4-mini?
Use any OpenAI-compatible SDK. Set base URL to api.xalen.io/v1 and use your XALEN API key. Python, JavaScript, and Go SDKs also available.