GPT Image

GPT Image API

GPT Image is OpenAI's latest image-generation model. Generate and edit images through Puter.js — no API keys, no org verification, no backend.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
    model: "openai/gpt-image-2"
}).then(image => {
    document.body.appendChild(image);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
            model: "openai/gpt-image-2"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

The GPT Image API for OpenAI Image Generation

Generate & Edit

GPT Image handles both text-to-image and image editing with masks and reference images.

Best-in-Class Text Rendering

GPT Image excels at rendering legible text in images — logos, posters, UI mockups, and more.

Full & Mini Variants

Use the full models for quality or the Mini variants for fast, cheap, high-volume generation.

Strong Instruction Following

GPT Image follows detailed prompts closely, making it reliable for precise, structured images.

No Org Verification

Skip the API key and government-ID org verification the official gpt-image API requires.

No Keys, User-Pays

No API key or per-image billing — your users cover their own usage, free for you to ship.

GPT Image Models Compared

Every GPT Image model available through Puter.js, with per-image cost and output resolution. Click a model for full specs and examples.

ModelCost / ImageResolutionReleased
GPT Image 2 openai/gpt-image-2 $0.0059 Apr 2026
GPT Image 1.5 openai/gpt-image-1.5 $0.009 Dec 2025
GPT Image 1 Mini openai/gpt-image-1-mini $0.005 Oct 2025
GPT Image 1 openai/gpt-image-1 $0.011 Apr 2025

Use GPT Image in Seconds

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

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
    model: "openai/gpt-image-2"
}).then(image => {
    document.body.appendChild(image);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
            model: "openai/gpt-image-2"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

View full documentation →

Frequently Asked Questions

What is the GPT Image API?

The GPT Image API lets you generate images from text prompts using OpenAI's GPT Image models — the successor to DALL·E, with strong text rendering and instruction following — including GPT Image 2 — through Puter.js, with no API keys and no backend.

Is the GPT Image API free?

Yes, it is free for you as the developer when you use it through Puter.js. With the User-Pays model, each of your users covers their own usage through their Puter account, so you can ship GPT Image-powered apps at no cost to you.

Which GPT Image model should I use?

Start with GPT Image 2 as your default. Lighter or faster variants trade some quality for speed and cost — compare them in the table above and pick the one that fits your use case.

Can I edit images or do image-to-image?

Many GPT Image models support image editing and image-to-image generation alongside text-to-image. See the Puter.js documentation for what each model supports.

How much does GPT Image cost?

GPT Image 2 costs about $0.0059 per image at the API level. Through Puter.js it is free for you as the developer — your users cover their own usage under the User-Pays model, with no per-image billing or keys to manage.

Do I need an API key?

No. Puter.js handles authentication and infrastructure for you, so you can use the GPT Image API without any API key, an OpenAI account, a server, or any configuration.

Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the GPT Image API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building.