GPT-5 API

Access GPT-5 from OpenAI using Puter.js AI API.

Get Started

Model Card

GPT-5 is OpenAI's unified reasoning system combining a fast model, a deeper thinking model, and an automatic router. It achieves 45% fewer factual errors than GPT-4o and sets state-of-the-art scores on math, coding, and health benchmarks.

Context Window

N/A

tokens

Max Output

128,000

tokens

Input Cost

$1.25

per million tokens

Output Cost

$10

per million tokens

API Usage Example

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

View full documentation →

Get started with Puter.js

Add GPT-5 to your app without worrying about API keys or setup.

Read the Docs View Tutorials