Roboflow
OpenAI

OpenAI: GPT-5.4 Mini

GPT-5.4 Mini Overview

GPT-5.4 mini is a fast, cost-efficient model developed by OpenAI and released on March 17, 2026, optimized for high-throughput workloads and subagent orchestration. It supports text and image inputs within a 400,000-token context window, making it ideal for processing extensive visual datasets and large codebases in a single request. Designed for low-latency production environments, the model integrates with key API features including function calling, web search, and tool-based computer use, allowing it to assist in automated workflows that require navigating digital interfaces.

Compared to the previous GPT-5 mini, this version runs more than twice as fast while approaching the performance levels of the flagship GPT-5.4 on reasoning and coding benchmarks. While the larger GPT-5.4 introduces native, state-of-the-art computer-use capabilities, GPT-5.4 mini provides a scalable alternative for interpreting screenshots and reasoning over dense UI layouts. For vision tasks on Playground, it excels at extracting structured information from visual documents and assisting in agentic tasks that involve real-time interpretation of software interfaces alongside text.

GPT-5.4 Mini Interactive Demo

Model settings

Thinking level

Max output tokens

Default 65,536 · max 65,536

Sign in to adjust thinking and output length per run.

Results appear here. Add an image or pick an example to run GPT-5.4 Mini.

GPT-5.4 Mini Details & Performance

Details

Resources

—

Vision Tasks

CaptioningChart Question AnsweringClassificationDocument Question AnsweringImage TaggingMulti-Label ClassificationOCRObject DetectionVision LanguageVisual Question Answering

Features

Foundation VisionLLMs with Vision CapabilitiesMultimodal Vision

Usage

Past 30 Days

Performance

Avg. Latency

GPT-5.4 Mini Vision Evals

Vision Evals is Roboflow's ground-truth benchmark: every model runs the same real-world samples across six vision tasks, and answers are scored against ground truth.

Evals updated October 7, 2026Pricing updated October 7, 2026

Overall score#45 of 60
64.7%
Avg cost / sample#30 of 60
$0.0030
Avg speed / sample#9 of 60
5.25s
Avg tokens / sample
1.9K

Strengths and weaknesses

GPT-5.4 Mini averages 64.7% across the six Vision Evals tasks, ranking #45 of 60 models overall.

Its weakest relative showing is Object Detection, ranking #58 of 60 at 15.8%.

At $0.0030 per sample it is the 30th cheapest of the 60 benchmarked models, and its average inference time of 5.3s per sample makes it the 9th fastest.

Performance profile

Field medianGPT-5.4 Mini

Field medians: Object Detection 53.6%, Counting 62.2%, Identification 84.4%, OCR 89.3%, Data Extraction 84.5%, Reasoning 57.3%.

Results by task

TaskScoreField (0 to 100)RankCost / sampleSpeed
Object Detection (low)
15.8%
±0.4, Mean of 3 runs, range 15.3 to 16.1
#58 of 60$0.00447.32s
Object Detection (high)
16.6%
±0.8, Mean of 3 runs, range 15.8 to 17.4
#28 of 28$0.03042.45s
Counting (low)
58.6%
±2.0, Mean of 3 runs, range 56.8 to 60.8
#33 of 60$0.00193.84s
Counting (high)
64.9%
±2.0, Mean of 3 runs, range 63.5 to 67.6
#21 of 28$0.007311.15s
Identification (low)
83.3%
±1.6, Mean of 3 runs, range 81.3 to 84.4
#36 of 60$0.00132.61s
Identification (high)
82.3%
±3.1, Mean of 3 runs, range 78.1 to 84.4
#25 of 28$0.00559.04s
OCR (low)
89.5%
±1.3, Mean of 3 runs, range 88.1 to 90.6
#29 of 60$0.00426.66s
OCR (high)
89.0%
±1.8, Mean of 3 runs, range 87.7 to 91.2
#21 of 28$0.03034.24s
Data Extraction (low)
84.2%
±2.1, Mean of 3 runs, range 82.5 to 86.6
#32 of 60$0.00143.02s
Data Extraction (high)
82.1%
±2.1, Mean of 3 runs, range 80.4 to 84.5
#23 of 28$0.00365.13s
Reasoning (low)
57.0%
±3.3, Mean of 3 runs, range 54.3 to 60.9
#31 of 60$0.00224.18s
Reasoning (high)
64.0%
±1.3, Mean of 3 runs, range 62.9 to 65.6
#30 of 47$0.009613.47s
  • Thinking longer helps: 0.8 points higher on object detection at high effort for 6.8x the cost and 5.8x the latency.
  • Thinking longer helps: 6.3 points higher on counting at high effort for 3.8x the cost and 2.9x the latency.
  • Thinking longer does not help: 1 points lower on identification at high effort for 4.1x the cost and 3.5x the latency.
  • Thinking longer does not help: 0.6 points lower on ocr at high effort for 7x the cost and 5.1x the latency.
  • Thinking longer does not help: 2.1 points lower on data extraction at high effort for 2.5x the cost and 1.7x the latency.
  • Thinking longer helps: 7.1 points higher on reasoning at high effort for 4.3x the cost and 3.2x the latency.

Price vs. performance

Score vs. cost

Overall benchmark score against estimated cost per sample, on a log scale. Upper-left is the sweet spot: high quality at low cost.

59 models on the current benchmark · scores and efficiency pooled across all six tasks at low effort · GPT-5.4 mini highlighted

GPT-5.4 Mini scores are the mean of 3 runs per task at both low and high effort · Methodology

View all Vision Evals →

GPT-5.4 Mini Pricing

GPT-5.4 Mini costs $0.750 per 1M input tokens and $4.50 per 1M output tokens.

Input$0.750 / 1M tokens
Output$4.50 / 1M tokens
Cached input$0.075 / 1M tokens

Pricing updated Oct 7, 2026

Alternatives to GPT-5.4 Mini

Other models worth comparing for similar use cases.

Google
Gemini 3.6 Flash
Gemini 3.6 Flash is a multimodal language model from Google DeepMind, positioned as the workhorse tier in the Gemini 3.x family. It accepts text, image, video, audio, and PDF inputs with a 1 million token context window and produces up to 64,000 output tokens. The model builds directly on Gemini 3.5 Flash, incorporating developer and customer feedback to improve token efficiency, coding quality, and knowledge work performance. According to the Artificial Analysis Index, it consumes 17% fewer output tokens than its predecessor, and on some benchmarks such as DeepSWE, token reduction reaches up to 65%. It supports function calling, structured output, search as a tool, and code execution, and includes computer use as a built-in capability in the Gemini API and Gemini Enterprise.On coding benchmarks, Gemini 3.6 Flash scores 49% on DeepSWE versus 37% for 3.5 Flash, and 63.9% on MLE Bench versus 49.7%. Computer use performance on OSWorld-Verified improves from 78.4% to 83%, and knowledge work scores on GDPval-AA v2 rise from 1349 to 1421. The model carries a knowledge cutoff of March 2026 and ships with enhanced Frontier Safety safeguards covering chemical, biological, radiological, nuclear, and cyber offense domains, with training to minimize refusals for beneficial uses. It is a proprietary, closed-weights model available in preview through the Gemini API via Google AI Studio, Android Studio, Google Antigravity, Gemini Enterprise, and the Gemini app.
Anthropic
Claude Sonnet 5
Claude Sonnet 5 is a mid-tier large language model from Anthropic, released on June 30, 2026, as the latest model in the Sonnet series and a direct successor to Claude Sonnet 4.6. It is a hybrid reasoning model designed primarily for agentic workflows, software coding, and professional tasks. The model features a 1 million token context window, a 128k maximum output token limit, and runs adaptive thinking by default, giving API users fine-grained control over reasoning effort across five levels (low, medium, high, max, and extra-high). It uses an updated tokenizer shared with Opus 4.7 and later models, which produces approximately 30% more tokens for equivalent text compared to earlier Claude models. On benchmarks, Sonnet 5 scores 63.2% on agentic coding and 81.2% on OSWorld, narrowing the gap with Opus 4.8 while remaining at Sonnet-tier pricing.The model supports text and image input with text output, and accepts tools including browsers and terminals for autonomous multi-step task execution. Anthropic's safety evaluations report that Sonnet 5 shows a lower rate of undesirable behaviors than Sonnet 4.6 and is generally safer in agentic contexts, with improved resistance to prompt injection and reduced sycophancy. Cybersecurity safeguards equivalent to those on Opus 4.7 and 4.8 are active, though Anthropic notes the model was not deliberately trained on cybersecurity tasks. The model is proprietary and API-only, with no open weights.
Qwen
Qwen3.7 Flash
Qwen3.7 Flash is the low-latency, cost-oriented tier of Alibaba's Qwen3.7 series, a vision-language reasoning model that accepts interleaved text and image input and returns text. It is built as a hybrid thinking model: like the rest of the Qwen3.7, Qwen3.6, and Qwen3.5 families served through Alibaba Cloud Model Studio, it can either emit an explicit reasoning trace before answering or respond directly, with thinking behavior controlled by an enable_thinking switch that defaults to on for the Qwen3.7 generation. The model exposes a context window of roughly one million tokens and a maximum generation length of 65,536 tokens, which allows long multi-image sequences, long documents, and extended agent trajectories to be held in a single request.Functionally, Qwen3.7 Flash targets multimodal agent workloads rather than pure chat. Reported strengths include object recognition, spatial understanding, and perception of real-world scenes, alongside visual coding, search, and computer-use style interaction where the model reads screen content and reasons over interface state. Weights are not published; the model is a proprietary endpoint positioned below Qwen3.7 Plus and Qwen3.7 Max in the same series, and it supports function calling and tool use for agentic pipelines.
Z.ai
GLM 5.3 Flash
GLM-5.3-Flash is the first natively multimodal model in Z.ai's GLM-5 series, a mixture-of-experts transformer with roughly 320 billion total parameters and 18 billion activated per token. It routes each token through 8 of 288 experts across 45 language layers that interleave KDA linear attention with sparse multi-head latent attention, and pairs them with a 24-layer vision encoder that handles image and video input. The checkpoint declares a maximum context length of 1,048,576 tokens, ships in native FP8, and includes a multi-token prediction draft layer for speculative decoding. Z.ai reports that the hybrid attention design reduces attention computation by 3.01x and KV cache size by 4.44x relative to GLM-5.3.The model starts from a newly trained base built on a 30 trillion token multimodal pre-training corpus and adopts Manifold-Constrained Hyper-Connections to improve scaling efficiency. Vision is integrated into the coding and agent loop, so the model can inspect interfaces, rendered output, and images while operating across code, browsers, and graphical user interfaces. Z.ai reports scores of 84.3 on Terminal-Bench 2.1, 63.4 on DeepSWE 1.1, 55.3 on Humanity's Last Exam with tools, and 48.8 on AutomationBench, and the model exposes low, high, and max thinking modes.
Google
Gemini 3.8 Flash
Gemini 3.8 Flash is a natively multimodal reasoning model in Google's Gemini 3 series, positioned as the speed and cost oriented Flash tier while targeting long-horizon software engineering, autonomous agents, and enterprise workflows. It accepts text, images, video, audio, and PDF documents in a single request and returns text, with an input limit of 1,048,576 tokens and an output limit of 65,536 tokens. Thinking is configurable at low, medium, and high levels, and the model supports function calling, code execution, structured outputs, context caching, search and Maps grounding, file search, and computer use in preview. Image generation, audio generation, and the Live API are not supported.On vision oriented evaluations the model reports 86.2% on CharXiv Reasoning for chart and figure synthesis and 87.8% on LVBench for long video understanding in agentic mode, alongside 90.8% on Terminal-Bench 2.1 and 61.6% on SWE-Bench Pro for coding. Following Gemini API conventions, it can localize objects by emitting bounding boxes as [ymin, xmin, ymax, xmax] integers normalized to a 0 to 1000 range, which supports prompt driven detection and grounding in addition to captioning, document parsing, and visual question answering. The knowledge cutoff is March 2026, though coverage in some domains reflects the January 2025 cutoff shared across the Gemini 3 family.

Other OpenAI GPT Mini models

Other versions in the same family as GPT-5.4 Mini.

Deploy GPT-5.4 Mini with an API

GPT-5.4 Mini runs as a hosted REST endpoint through Roboflow Workflows. Pick a task, then hand the prompt to your coding agent or copy the code. Deploying the workflow into a free Roboflow workspace replaces the your-workspace and YOUR_API_KEY placeholders with your own.

Connect your agent to Roboflow (once)

Add the Roboflow MCP server

claude mcp add --transport http roboflow https://mcp.roboflow.com/mcp

Run /mcp and authorize Roboflow in your browser when the OAuth flow opens.

Start a new Claude Code session so the MCP loads, then paste the prompt below (it works the same in any agent).

Deploy this workflow to your Roboflow workspace to use it.

Integrate the Roboflow "GPT-5.4 Mini" workflow into my app.

- Endpoint: POST https://serverless.roboflow.com/<your-workspace>/workflows/gpt-5-4-mini-open-prompt
- Auth: send my Roboflow API key as `api_key` in the request body, read from the ROBOFLOW_API_KEY env var (never hardcode).
- Body: { "api_key": ..., "inputs": { `image`: { type: "url" | "base64", value }, `prompt`: text } }.
- Billing: this workflow needs no provider API key — inference runs on my Roboflow credits. A BYO provider key can be added to the model step in the Roboflow workflow editor later.

With the Roboflow MCP connected, call `workflows_get` on "gpt-5-4-mini-open-prompt" to read the exact input schema (the source of truth), then `workflows_run` on a sample image to confirm the output shape before writing code (the MCP is authenticated, so this needs no key). Without the MCP, use the contract above.

Before running the app, set up these keys so it does not error at runtime:
- `ROBOFLOW_API_KEY` (sent as `api_key`) from https://app.roboflow.com/settings/api
Create a .gitignore'd .env with these variables, using placeholder values for any I haven't given you. Then pause and tell me directly, in your reply: the full path to the .env file, exactly which keys I need to paste in, and the link to get each one. Wait for me to confirm I've added them before you run anything. Do not run the app until I confirm.

Then add the integration to my codebase: match my project's language, framework, and conventions; read every key from environment variables (never hardcode); add basic error handling; and include a small runnable example. If you can't tell what language my project uses, ask me.
Installpip install inference-sdk

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workflow
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="YOUR_API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="your-workspace",
  workflow_id="gpt-5-4-mini-open-prompt",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  parameters={
    "prompt": "Describe what you see in the image"
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Deploy this workflow to your Roboflow workspace to use it.

// Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
const response = await fetch('https://serverless.roboflow.com/your-workspace/workflows/gpt-5-4-mini-open-prompt', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    api_key: 'YOUR_API_KEY',
    inputs: {
      "image": {"type": "url", "value": "IMAGE_URL"},
      "prompt": "Describe what you see in the image"
    }
  })
});

const result = await response.json();
console.log(result);

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
curl --location 'https://serverless.roboflow.com/your-workspace/workflows/gpt-5-4-mini-open-prompt' \
--header 'Content-Type: application/json' \
--data '{
  "api_key": "YOUR_API_KEY",
  "inputs": {
    "image": {"type": "url", "value": "IMAGE_URL"},
    "prompt": "Describe what you see in the image"
  }
}'

GPT-5.4 Mini License

Proprietary

GPT-5.4 Mini is proprietary: the weights are not distributed, and the GPT-5.4 Mini license is the vendor's commercial terms of service that you accept when you call the API.

Commercial use
Permitted under the vendor terms, typically metered per token or per request, with the vendor usage policy applying to your inputs and outputs.
Modification
Not available. GPT-5.4 Mini weights are closed, so you can configure prompts and use vendor-hosted fine-tuning where it is offered, but you cannot modify the model itself.
Redistribution
Not permitted. You cannot self-host or resell the model; you build on the hosted API instead.

Vendor terms govern data retention, whether your inputs can be trained on, rate limits, and regional availability, and they can change with notice. Review them if you handle regulated or customer data.

Do I need a commercial license for GPT-5.4 Mini?

Proprietary terms are set by the vendor rather than negotiated per project, and no open-source obligation attaches to your code. If you would rather deploy a model whose commercial license is included in your plan — on Roboflow Managed Cloud or a Self-Hosted Inference Server — Roboflow's licensing page lists the supported alternatives to GPT-5.4 Mini.

Do not hesitate to reach out with questions for your commercial project — our team will help you start solving business problems on the first call. See Roboflow commercial licensing for the models included in each plan.

Talk to sales

This model is proprietary. The author retains all rights, and use of the model is governed by their specific terms of service or license agreement.

Commercial use depends on the terms set by the model author. Most proprietary commercial models require a paid subscription, API key, or per-call billing. Check the provider’s pricing and terms-of-service for details.

License information is provided as a guide and is not legal advice.

Frequently Asked Questions About GPT-5.4 Mini Vision

Yes. GPT-5.4 Mini accepts image input and handles OCR, data extraction, object counting, identification, visual reasoning, and object detection. On Roboflow's Vision Evals its strongest task is OCR at 89.6% (#29 of 60 at low effort). You can test it on your own image in the demo above.

Yes. its transcriptions match the ground truth 89.6% on average (#29 of 60 at low effort) on Vision Evals OCR. Pulling specific fields out of documents (data extraction) scores 84.2%.

Not its strength. On Vision Evals, GPT-5.4 Mini scores 15.8% mAP@50 on object detection (#58 of 60 at low effort) and 58.6% judge-graded accuracy on object counting. For production counting or precise localization, pairing it with a specialized detector like RF-DETR or your own trained model in a Roboflow Workflow is usually more reliable: detect the objects, then count the detections.

On our benchmark's task mix, GPT-5.4 Mini averages $0.0030 per sample at $0.75 per 1M input and $4.50 per 1M output tokens (#30 of 60 on cost), with an average speed of 5.3s per sample across the benchmark. Actual cost depends on your images and prompts.

On the overall Vision Evals ranking, GPT-5.4 Mini sits #45 of 60 at 64.7%, just behind GLM 5V Turbo (65.3%) and just ahead of Qwen3.5 9B (64.4%). See the full side-by-side: GPT-5.4 Mini vs GLM 5V Turbo.