Ana içeriğe atla
OpenAI logosu

GPT 5.4 Nano API

OpenAI

GPT 5.4 Nano, GPT model ailesinin bir parçasıdırTüm GPT modellerini görüntüle

Sınıflandırma, yönlendirme ve hızlı yanıtlar için en küçük GPT 5.4 varyantı.

openai/gpt-5.4-nano

Dokümantasyon

Sohbet

Bir sohbet başlatın

Sınıflandırma, yönlendirme ve hızlı yanıtlar için en küçük GPT 5.4 varyantı.

Göndermek için Enter · Yeni satır için Shift+Enter

UnificAlly, LLM istemlerinizi ve yanıtlarınızı saklamaz. Faturalandırma amacıyla yalnızca token kullanım bilgilerini tutarız.

UnificAlly API anahtarınızla POST /v1/chat/completions kullanır. Uygun olduğunda sistem ve kullanıcı istemlerini, araçları, akışı ve düşünme modunu destekler.

Güncellendi:

What is the GPT 5.4 Nano API?

The GPT 5.4 Nano API is live on UnificAlly as openai/gpt-5.4-nano, billed per token with no subscription. GPT 5.4 Nano is OpenAI's March 17, 2026 small model, the cheapest GPT-5.4-class model in the family. OpenAI built it for simple high-volume work: classification, data extraction, ranking, and coding sub-agents that carry the supporting tasks around a larger model. It accepts text and image input, and outputs text. The 400k-token context window and 128k-token max output match the bigger GPT-5.4 models, so a cheap call can still read a lot of input. Nano is API-only; there is no ChatGPT version.

GPT 5.4 Nano API specs

Model IDopenai/gpt-5.4-nano
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other formatsPOST /v1/responses, POST /v1/messages
Request typesChat completion, streaming, tool calls
InputText and images
OutputText
ResponseSynchronous JSON, or server-sent events with "stream": true

Billing is per token, with no subscription. The pricing page shows the live rates.

How to use the GPT 5.4 Nano API

The GPT 5.4 Nano API uses /v1/chat/completions, the OpenAI-compatible endpoint shared by every language model on UnificAlly.

  1. Create an API key on the API keys page.
  2. Send a POST request to https://direct-api.unifically.com/v1/chat/completions 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-nano",
    "messages": [
      { "role": "user", "content": "Classify this support ticket as billing, bug, or feature request: I was charged twice this month." }
    ]
  }'

The response comes back synchronously with the completion:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "openai/gpt-5.4-nano",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "billing"
      },
      "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
    }
  }
}

The usage object holds the token counts the request is billed on. Set "stream": true to receive tokens as they generate. The stream ends with data: [DONE].

GPT 5.4 Nano API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier. Use openai/gpt-5.4-nano
messagesarrayrequiredNon-empty array of message objects with role and content. Roles: system, developer, user, assistant, tool, function
streambooleanfalseStreams the response as 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
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling. An alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating
toolsarraynoneTools the model may call. Each needs a type and a function definition
tool_choicestring or objectnonenone, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } for JSON mode

The GPT 5.4 Nano API documentation lists every supported endpoint and request format for this model.

Key features of GPT 5.4 Nano

400k token context window

Long document sets, big extraction batches, or a large codebase slice fit in one request, with a callable max output of 128k tokens.

Benchmark gains over the GPT-5 small models

At xhigh effort it scores 52.4% on SWE-Bench Pro, 46.3% on Terminal-Bench 2.0, and 82.8% on GPQA Diamond, ahead of GPT-5 mini on all three.

Best accuracy per dollar in the family

On SWE-Bench Pro cost curves, Nano returns more accuracy per dollar than GPT 5.4 Mini or the full GPT-5.4 at the same spend.

Five reasoning effort settings

Effort runs from none (the default) through low, medium, and high to xhigh. Simple lookups stay fast; hard tasks get more thinking time.

Vision, tools, and structured outputs

Image input covers scanned documents, screenshots, and charts. Function calling, structured outputs, and streaming are all supported, so it slots into agent stacks and returns clean JSON.

What GPT 5.4 Nano is best for

  • Classification

    Ticket triage, moderation queues, and intent labeling at high volume.

  • Data extraction

    Pulling fields from invoices, forms, and scanned pages with image input.

  • Ranking and routing

    Search reranking and model routing where per-call cost decides the design.

  • Coding sub-agents

    File summaries, small patches, and checks inside a larger coding agent.

  • High-volume pipelines

    Batch jobs that run millions of calls and need predictable spend.

  • Low-latency features

    Autocomplete, quick replies, and interactive tools at effort none or low.

GPT 5.4 Nano use cases

Build an extraction pipeline that reads scanned invoices and returns structured JSON through function calling. Use it as the router in front of larger models: Nano classifies each request, answers the easy ones, and passes the hard ones up to GPT 5.4. It fits coding agents as a sub-agent that summarizes files, drafts small patches, and runs checks while a bigger model plans. For search products, it makes a cheap reranker that scores candidates against a query. And with 400k tokens of context, one call can label or summarize a document set that would need chunking elsewhere.

GPT 5.4 Nano limitations

Computer use is the clear weak spot. GPT 5.4 Nano scores 39.0% on OSWorld-Verified, below even GPT-5 mini at 42.0%. Hand browser and desktop agents to GPT 5.4 Mini at 72.1% or the full GPT-5.4.

Top scores take time. The headline numbers come from xhigh effort, and on SWE-Bench Pro latency curves Nano runs longer than GPT 5.4 Mini to reach similar accuracy. xhigh runs are also verbose, so output-token spend climbs on hard tasks.

Input is text and images only, with no audio or video, and fine-tuning is not supported.

The knowledge cutoff is August 31, 2025. Anything after that date needs retrieval or web search in your stack.

GPT 5.4 Nano vs GPT-5 mini

GPT 5.4 Nano beats GPT-5 mini, one size class above the old GPT-5 nano, on almost every published benchmark: 52.4% vs 45.7% on SWE-Bench Pro, 46.3% vs 38.2% on Terminal-Bench 2.0, 35.5% vs 26.9% on Toolathlon, and 82.8% vs 81.6% on GPQA Diamond. The one loss is OSWorld-Verified at 39.0% vs 42.0%. In short: the new nano replaces the old mini for text, reasoning, and tool work, but not for computer use.

When to use GPT 5.4 Nano

Use GPT 5.4 Nano when call volume and cost drive the design: classification, extraction, ranking, routing, and sub-agent work inside larger agent stacks. Start at effort none for speed and step up to xhigh only when a task earns it. Move to GPT 5.4 Mini for computer use or when accuracy on hard coding and terminal tasks matters more than price, and to the full GPT-5.4 when one model has to do it all.

SSS

GPT 5.4 Nano hakkında sık sorulan sorular

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

Nano needs a key from the API keys page, created after signup and sent as Authorization: Bearer <key>. Requests go to https://direct-api.unifically.com/v1/chat/completions with openai/gpt-5.4-nano; the endpoint is OpenAI-compatible, so an OpenAI client switches over by changing its base URL and key, and calls are paid per token from a prepaid balance.

Body fields are the OpenAI chat ones: model set to openai/gpt-5.4-nano, a messages array (text or images), plus optional reasoning_effort from none to xhigh, tools, tool_choice and max_tokens. The answer is synchronous at choices[0].message.content, with the billed token counts in usage; "stream": true returns server-sent events instead.

400k tokens, with a callable max output of 128k tokens. That fits long document sets or a large codebase slice in one request.

Text and image input with text output. Scanned pages, screenshots, and charts work as input. There is no audio or video support.

For sub-agent work, yes. It scores 52.4% on SWE-Bench Pro and 46.3% on Terminal-Bench 2.0 at xhigh effort. Use it for supporting tasks like file summaries and small patches, and keep a larger model on the plan.

Yes. Reasoning effort runs from none (the default) through low, medium, and high to xhigh, so you pick the speed-accuracy trade per request.

Not well. It scores 39.0% on OSWorld-Verified, below GPT-5 mini's 42.0%. Route browser and desktop tasks to GPT 5.4 Mini or the full GPT-5.4.

No. Fine-tuning is not supported. Prompting, function calling, and structured outputs cover most tuning needs in practice.

August 31, 2025. Add retrieval or web search to your stack for anything newer.