OpenAI o4-mini

OpenAI
Text & Chat

OpenAI's o4-mini reasoning model. A cost-efficient reasoning model that trades some depth for much lower price and latency, good for high-volume math and code tasks.

Try OpenAI o4-mini now
Send a single prompt and stream a response inline. Hit Cmd+Enter to submit.
Sign in to try this model with €5 free credits.
Sign in
Press Cmd+Enter to send
Response appears here.
TL;DR·Last updated June 24, 2026

OpenAI o4-mini is text & chat AI model from OpenAI, priced at €1.10 per 1M input tokens with a 200K tokens context window.

Try OpenAI o4-mini

0.7

Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generationFree

API Integration

Use our OpenAI-compatible API to integrate OpenAI o4-mini into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

// Simple — just pass a string
const reply = await rw.run("openai-o4-mini", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("openai-o4-mini", [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "Explain quantum computing simply." },
]);
console.log(reply2);

// Full response with usage info
const res = await rw.chat("openai-o4-mini", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Context window
200,000 tokens
Max output
100,000 tokens
Developer
OpenAI
Category
Text & Chat
Supported Formats
text
image
Tags
openai
o-series
reasoning
cost-efficient

Frequently asked questions

Start using OpenAI o4-mini today

Get started with free credits. No credit card required. Access OpenAI o4-mini and 100+ other models through a single API.