OpenAI
Online
New

o4-mini

Compact reasoning model at a fraction of o3's cost.

Model ID: o4-mini

Specifications

Context Window

200K tokens

Max Output

100K tokens

Input Price

$0.99 / 1M

Output Price

$3.96 / 1M

Capabilities

Chat
Code
Functions
JSON Mode

Price Comparison

See how much you save compared to official pricing.

MetricOfficial PriceOur PriceSavings
Input (per 1M tokens)$1.10$0.9910% off
Output (per 1M tokens)$4.40$3.9610% off

Quick Start

Use this model via our OpenAI-compatible API endpoint.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.yourdomain.com/v1",
  apiKey: "sk-your-api-key",
});

const response = await client.chat.completions.create({
  model: "o4-mini",
  messages: [
    { role: "user", content: "Hello! What can you help me with?" },
  ],
  max_tokens: 1024,
});

console.log(response.choices[0].message.content);

Pricing Summary

Input$0.99 / 1M
Output$3.96 / 1M
Start for Free

$2 free credit on signup

Provider

OpenAI

OpenAI

Creators of GPT and DALL-E, pioneering AI research.

Visit website