GPT-5.4 Image 2 is OpenAI's multimodal flagship that pairs GPT-5.4 reasoning with GPT Image 2 generation, released 2026-04. It lets users move between reasoning, coding, and visual output in a single interaction.
This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.
Modalities
inImageinTextinFileoutImage
Price / 1M
$8.00 / $15.00
Context
272K
Knowledge cutoff
—
Capabilities
ReasoningVisionLong contextPrompt cachingStructured output
Quick Start
import os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="openai/gpt-5.4-image-2", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "openai/gpt-5.4-image-2", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-5.4-image-2", "messages": [{"role": "user", "content": "Hello"}] }'
Links
Wire GPT-5.4 Image 2 into your product
Start free1M free tokens to start · no card · OpenAI-compatible, one base_url change