GPT-4o Mini API

Access GPT-4o Mini from OpenAI using Puter.js AI API.

Get Started

Model Card

GPT-4o Mini is a fast, affordable small model that scores 82% on MMLU and accepts text and image inputs. It's over 60% cheaper than GPT-3.5 Turbo while offering superior reasoning and coding capabilities.

Context Window

N/A

tokens

Max Output

16,384

tokens

Input Cost

$0.15

per million tokens

Output Cost

$0.6

per million tokens

API Usage Example

Add GPT-4o 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/gpt-4o-mini"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add GPT-4o Mini to your app without worrying about API keys or setup.

Read the Docs View Tutorials