O

OpenAI: GPT-4.1 Mini (April 2025)

OpenAI
Tools Streaming Vision
128K
Context
$3.00
Input /1M
$12.00
Output /1M
2K
Max Output

OpenAI: GPT-4.1 Mini (April 2025)

Model Overview

Property Value
Model ID openai/gpt-4.1-mini-2025-04-14
Name GPT-4.1 Mini (April 2025)
Released April 14, 2025
Provider OpenAI

Description

Latest mini variant with efficient performance. This model supports multimodal capabilities including vision and image understanding. It features advanced reasoning capabilities for complex problem-solving tasks.

Description

Model Overview

Property Value
Model ID `openai/gpt-4. Name

Description

Model Overview

Property Value
Model ID `openai/gpt-4. Name

Specifications

Spec Value
Context Window 128,000 tokens
Max Completion 2,048 tokens
Knowledge Cutoff January 2025
Modalities Text only

Pricing

Type Price
Input $3.00 per 1M tokens
Output $12.00 per 1M tokens
Cache Input $0.75 per 1M tokens
Training $25.00 per 1M tokens

Capabilities

  • Vision: No
  • Tool Use: Yes
  • JSON Mode: Yes
  • Reasoning: No
  • Streaming: Yes
  • Function Calling: Yes

Use Cases

Fast applications, budget-conscious deployments

Best For

  • Text-based applications
  • General language tasks
  • Production systems requiring tool integration
  • Real-time applications requiring low latency
  • Systems where cost is the primary concern

Integration with LangMart

Gateway Support: Type 2 (Cloud), Type 3 (Self-hosted)

API Usage:

curl -X POST https://api.langmart.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini-2025-04-14",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 2048
  }'

Testing in LangMart

# Test chat completion
curl -X POST https://api.langmart.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini-2025-04-14",
    "messages": [
      {"role": "user", "content": "Explain quantum computing"}
    ]
  }'

# Test with structured output
curl -X POST https://api.langmart.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini-2025-04-14",
    "messages": [{"role": "user", "content": "Extract data"}],
    "response_format": {"type": "json_object"}
  }'

From OpenAI:

  • GPT-4 Family - Advanced reasoning
  • GPT-3.5 Turbo - Fast and affordable
  • GPT-4o - Optimized multimodal
  • o1 - Extended reasoning

References


Last Updated: December 28, 2025 Generator: OpenAI Markdown Documentation Generator