OpenAI o1-mini API

Cost-efficient OpenAI reasoning model excelling in math and coding tasks.
Output

Overview

OpenAI o1-mini Description

OpenAI o1-mini is a highly efficient STEM-focused reasoning model tailored for mathematics, coding, and scientific problem-solving. Designed as a cost-effective alternative to larger counterparts, it delivers robust chain-of-thought reasoning with faster response times and significantly reduced operational costs. o1-mini excels in complex code generation, advanced mathematical reasoning, and specialized STEM tasks, addressing the needs of research, education, and technical workflows.

Technical Specifications

  • Transformer-based architecture optimized for large-scale STEM reasoning
  • Reinforcement learning enhancements to support chain-of-thought problem solving
  • Knowledge cutoff: October 2023
  • Trained on diverse datasets up to October 2023
  • 128K token context window with up to 65K tokens max output

Performance Benchmarks

  • Scored 70.0% on the American Invitational Mathematics Examination (AIME)
  • Attained 1650 Elo rating on Codeforces (86th percentile)
  • Outperforms GPT-4o on GPQA and MATH-500 STEM reasoning benchmarks
  • Demonstrates strong results in HumanEval coding and cybersecurity challenges

API Pricing

  • Input tokens: $0.00315 per 1,000 tokens
  • Output tokens: $0.0126 per 1,000 tokens
  • Approximately 80% cheaper than the larger o1-preview model

Key Capabilities

  • STEM Reasoning: High precision in math, coding, and scientific analysis through chain-of-thought methods
  • Cost Efficiency: Delivers advanced reasoning power with significantly reduced compute expenses
  • Speed: 3 to 5 times faster in complex reasoning tasks compared to GPT-4o, with 73.9 tokens/sec output speed
  • Coding Expertise: Generates, analyzes, and debugs advanced code reliably across multiple languages
  • Robustness: Demonstrates improved jailbreak resistance on strong adversarial datasets

Optimal Use Cases

  • Complex software development and technical code debugging
  • Advanced STEM education tools and learning platforms
  • Scientific data analysis and mathematical research
  • Cost-sensitive deployments requiring focused reasoning accuracy without broad world knowledge

Code Sample

Comparison with Other Models

  • vs OpenAI o1-preview: Matches core STEM reasoning accuracy while being 80% more cost-effective and faster
  • vs GPT-4o: Outperforms in specialized STEM reasoning and speed but less effective in broad language tasks
API Documentation

For detailed API documentation, visit: https://docs.aimlapi.com/quickstart/setting-up

Reasoning models https://platform.openai.com/docs/guides/reasoning

Ethical Guidelines
  • Trained using the same alignment and safety techniques as o1-preview
  • Undergone comprehensive testing, red-teaming, and collaboration with U.S. and U.K. AI Safety Institutes
  • Designed to adhere to ethical guidelines and safety protocols embedded in its reasoning process

Price

OpenAI o1-mini is available through AI/ML API services. Pricing is set at $0.0031500 per 1K input tokens and $0.0126 per 1K output tokens, making it 80% cheaper than o1-preview.

Use cases

  • Instruction Following: Clear, structured answers to complex prompts
  • Lightweight Coding Tasks: Script generation, bug fixing, basic transforms
  • Chatbots: Efficient conversational models with fast response
  • Education: Explanations of math, logic, and reasoning tasks
  • Document Analysis: Short-to-mid context comprehension tasks

‍

How to use OpenAI o1-mini API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

OpenAI o1-mini API Pricing

TypePrice
Input
Output

OpenAI o1-mini Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
9.8
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 22, 2026

OpenAI o1-mini vs other models

ModelInputOutputContextBest for
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Yes, OpenAI o1-mini can stream responses as they are generated.

Yes, OpenAI o1-mini supports both function calling and structured outputs.

OpenAI o1-mini was built by OpenAI.

No. The listed capabilities are function calling, streaming, structured outputs, and reasoning; vision is not included.

Fine-tuning is not among its listed capabilities, which are function calling, streaming, structured outputs, and reasoning.

Yes, reasoning is listed as one of its core capabilities.

Start building with OpenAI o1-mini

Get API Key
1000+ models, one API.