OpenAI: GPT-5.4 Image 2

Not supportedQuick start

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.

MirAPI doesn’t offer this model. The prices shown are the official list prices.

Modalities
inImageinTextinFileoutImage
Price / 1M
$8.00 / $15.00
Context
272K
Released
Apr 21, 2026

Capabilities

ReasoningVisionLong contextPrompt cachingStructured output

Parameters

Request parameters this model accepts through the API.

include_reasoninglogprobsmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstop_logprobsverbosity

Quick start

POST /v1/images/generations/
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

img = client.images.generate(
    model="",
    prompt="A red bicycle leaning on a white wall",
    n=1,
    size="1024x1024",
)
# img.data[0].b64_json — or .url, depending on the model
Wire GPT-5.4 Image 2 into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free