Lewati ke konten utama
Logo OpenAI

API GPT 5.4

OpenAI

GPT 5.4 merupakan bagian dari keluarga model GPTLihat semua model GPT

Model unggulan OpenAI untuk obrolan serbaguna, alat, dan output terstruktur.

openai/gpt-5.4

Dokumentasi

Percakapan

Mulai percakapan

Model unggulan OpenAI untuk obrolan serbaguna, alat, dan output terstruktur.

Enter untuk kirim · Shift+Enter untuk baris baru

UnificAlly tidak menyimpan prompt dan balasan LLM Anda. Kami hanya menyimpan informasi penggunaan token untuk keperluan penagihan.

Menggunakan POST /v1/chat/completions dengan kunci API UnificAlly Anda. Mendukung system prompt dan user prompt, tools, streaming, dan mode berpikir bila tersedia.

Diperbarui

What is the GPT 5.4 API?

The GPT 5.4 API is live on UnificAlly as openai/gpt-5.4, from $0.375/1M tokens of input and $2.25/1M tokens of output. GPT 5.4 is OpenAI's March 5, 2026 model and the first general-purpose OpenAI model with computer use built in. It folds reasoning, coding, and agent work into one model, replaces GPT-5.2 Thinking, and runs on UnificAlly as openai/gpt-5.4. It accepts text and image input, outputs text, and takes up to 1M tokens of context with a 128k-token max output. The standout skill is operating software: it reads screens, clicks, types, and carries a plan across long tool chains, scoring 75.0% on OSWorld-Verified, above the 72.4% human baseline.

GPT 5.4 API specs

Model IDopenai/gpt-5.4
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other formatsPOST /v1/responses and POST /v1/messages
Request typesChat, streaming, tool calls
InputText and images
OutputText
Input rate$0.375/1M tokens
Output rate$2.25/1M tokens
Cache read rate$0.0375/1M tokens
Cache creation rate$0.46875/1M tokens

The GPT 5.4 API bills per token, with no subscription. The OpenAI API pricing guide covers the rates for every GPT model.

How to use the GPT 5.4 API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/chat/completions on https://direct-api.unifically.com with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "openai/gpt-5.4",
    "messages": [
      { "role": "user", "content": "Plan the steps to reproduce and fix this flaky integration test." }
    ]
  }'

The response comes back synchronously with the completion and the token usage:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "openai/gpt-5.4",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "1. Run the test in a loop to confirm the failure rate..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

Set "stream": true to receive tokens as they generate. The stream is sent as server-sent events. Send requests to direct-api.unifically.com so long replies are not cut short by a proxy timeout.

GPT 5.4 API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier, openai/gpt-5.4
messagesarrayrequiredNon-empty array of message objects with role and content (a string or an array of content parts). Roles: system, developer, user, assistant, tool, function
streambooleanfalseIf true, the response is streamed using server-sent events
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output
max_tokensintegernoneMaximum number of tokens to generate in the completion
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling parameter. Alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating further tokens
toolsarraynoneList of tools the model may call. Each tool needs a type and a function definition
tool_choicestring or objectnoneControls which tool, if any, is called: none, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } to enable JSON mode

The GPT 5.4 API documentation has the full reference, including the Responses and Messages formats.

Key features of GPT 5.4

Native computer use

It scores 75.0% on OSWorld-Verified, past the 72.4% human baseline and far ahead of GPT-5.2 at 47.3%. The model reads screenshots and issues mouse and keyboard actions itself, with no separate computer-use model.

Up to 1M tokens of context

Large codebases, long agent sessions, and multi-document research fit in one run, with a 128k-token max output for long answers and big diffs.

Tool search for big tool catalogs

The model pulls in tool definitions on demand instead of loading every definition upfront. Agents with hundreds of tools spend far fewer tokens per turn. On BrowseComp it scores 82.7%, up from 65.8% for GPT-5.2.

Stronger coding

It scores 57.7% on SWE-bench Pro, ahead of GPT-5.3-Codex at 56.8%, and 75.1% on Terminal-Bench 2.0, up from 62.2% for GPT-5.2.

Abstract reasoning gains

It reaches 93.7% on ARC-AGI-1 and 73.3% on ARC-AGI-2, up from 52.9% for GPT-5.2.

Fewer factual errors, fewer tokens

Individual claims are 33% less likely to be false than GPT-5.2, and full responses are 18% less likely to contain any error. On GDPval knowledge work it scores 83.0% versus 70.9% for GPT-5.2.

What GPT 5.4 is best for

  • Computer-use agents

    Browser and desktop workflows that read screens, click, and type, with clear action limits.

  • Agentic coding

    Multi-step fixes across a large repo with terminal and tool access.

  • Deep web research

    Long research runs that search, cross-check, and compile many sources.

  • Long-context work

    Contracts, filings, and codebases held together in one context.

  • Knowledge work

    Reports, spreadsheets, and financial models, with human review on the output.

  • Agents with many tools

    Tool search keeps token spend flat as the tool catalog grows.

GPT 5.4 use cases

Build an operations agent that runs a whole workflow inside internal web tools: open the app, fill the form, check the result, and report back. Use it for coding agents that trace a bug across a repo, run tests in a terminal, and open a fix. It also fits research assistants that browse, verify claims across sources, and write up findings with fewer false statements. For document-heavy teams, GPT 5.4 holds contracts, filings, or a full codebase in one context and answers questions that span all of it.

GPT 5.4 limitations

GPT-5.3-Codex still leads on Terminal-Bench 2.0 at 77.3% versus 75.1%. For pure terminal-driven coding, the specialist model remains slightly ahead.

SWE-bench Pro sits at 57.7%. That leads the line, but it also means hard repo tasks fail almost half the time. Review agent output before merging.

OSWorld is a controlled benchmark. Real apps change layouts, throw popups, and time out, so give computer-use agents narrow permissions and clear stop rules.

Blind preference boards place it mid-pack: Arena's Text board ranks gpt-5.4-high at #12 with a 1478±4 score, behind Claude Opus 4.6 at #4 with 1499±4.

GPT 5.4 vs GPT-5.2

GPT 5.4 is a wide step up from the GPT-5.2 Thinking model it replaces. OSWorld-Verified computer use jumps from 47.3% to 75.0%. BrowseComp web research rises from 65.8% to 82.7%. ARC-AGI-2 abstract reasoning climbs from 52.9% to 73.3%, and GDPval knowledge work moves from 70.9% to 83.0%. On top of the scores, its claims are 33% less likely to be false and it spends fewer reasoning tokens per problem, so long agent runs cost less and drift less.

When to use GPT 5.4

Use GPT 5.4 when the task is agentic: operating a browser or desktop, running long tool chains, or fixing code across a big repo. Pick it over GPT-5.2 in every case. Drop to GPT 5.4 Mini or Nano when the job is high-volume drafts, routing, or quick replies where cost per call matters more than depth.

FAQ

Pertanyaan yang sering diajukan tentang GPT 5.4

openai/gpt-5.4, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.

Open the API keys page after you register, create a key, and send it as Authorization: Bearer <key>. GPT 5.4 runs on https://direct-api.unifically.com/v1/chat/completions as openai/gpt-5.4, and the same key also works on the /v1/responses and /v1/messages formats.

A minimal call is model: openai/gpt-5.4 plus a messages array whose content can be a string or parts with images; add reasoning_effort, tools or response_format as needed. The completion comes back synchronously in choices[0].message.content along with token usage, and "stream": true sends it as server-sent events, best routed through direct-api.unifically.com so long replies are not cut by a proxy timeout.

Text and image input with text output. It reads screenshots, charts, and documents in the same request as code or prose.

Up to 1M tokens in the API, with a max output of 128k tokens. That fits large codebases, long agent sessions, or many documents in one run.

Yes. Computer use is built into the model itself. It scores 75.0% on OSWorld-Verified, above the 72.4% human baseline, by reading screens and issuing mouse and keyboard actions.

Yes. It scores 57.7% on SWE-bench Pro, ahead of GPT-5.3-Codex at 56.8%, and 75.1% on Terminal-Bench 2.0, a big jump from GPT-5.2 at 62.2%.

A way to handle large tool catalogs. The model loads tool definitions on demand instead of holding every definition in context, which cuts token overhead for agents with many tools.

Yes. Its individual claims are 33% less likely to be false, and full responses are 18% less likely to contain any error. It also solves problems with fewer reasoning tokens.

Set clear action limits for agents that operate real accounts or desktops. Hard repo tasks still fail often at 57.7% SWE-bench Pro, so review agent output before merging.

Panduan dan perbandingan GPT 5.4

Tinjau harga, batasan, dan hasil pengujian sebelum menjalankan model ini.