OpenAI o4 Mini API

Access OpenAI o4 Mini from OpenAI using Puter.js AI API.

Get Started

Model Card

OpenAI o4 Mini is a fast, cost-efficient reasoning model optimized for coding and visual tasks. It achieves remarkable performance for its size with full tool access in ChatGPT, succeeded by GPT-5 Mini.

Context Window

N/A

tokens

Max Output

100,000

tokens

Input Cost

$1.1

per million tokens

Output Cost

$4.4

per million tokens

API Usage Example

Add OpenAI o4 Mini to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "openai/o4-mini"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add OpenAI o4 Mini to your app without worrying about API keys or setup.

Read the Docs View Tutorials