Description
GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard instruction evals, 35.8% on MultiChallenge, and 84.1% on IFEval. Mini also shows strong coding ability (e.g., 31.6% on Aider’s polyglot diff benchmark) and vision understanding, making it suitable for interactive applications with tight performance constraints.
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: OpenAI: GPT-4.1 Mini (openai/gpt-4.1-mini)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "openai/gpt-4.1-mini",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the OpenAI: GPT-4.1 Mini model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'
Supported Modalities
- Text
- Images
API Pricing
- Input: 0.4$ / 1M tokens
- Output: 1.6$ / 1M tokens
Token Limits
- Max Output: 32,768 tokens
- Max Context: 1,047,576 tokens
Subscription Tiers
- free
- pro
- ultimate