Plan a relaxed Saturday using these options: a park open 9am-6pm, a museum open 10am-5pm, and a cafe open 8am-8pm. Start at 10am, include a lunch break, and allow 30 minutes between stops. Return a timetable without inventing prices or opening hours.
GPT 5.4 API: Online text generation, tutorials and integration guide
Connect to GPT 5.4 in one click on RequestBeam. One API key connects AI and multiple data services, so you can focus on your business and explore new ideas.
GPT 5.4 API pricing and billing
0-272K input tokens
Official price
- Input
-
$2.5000/M - Output
-
$15.0000/M - Cache input
-
$0.2500/M
Our price Save 70%
- Input
- $0.7500 /M
- Output
- $4.5000 /M
- Cache input
- $0.0750 /M
- Cache write
- $0.7500 /M
272.001K-922K input tokens
Official price
- Input
-
$5.0000/M - Output
-
$22.5000/M - Cache input
-
$0.5000/M
Our price Save 70%
- Input
- $1.5000 /M
- Output
- $6.7500 /M
- Cache input
- $0.1500 /M
- Cache write
- $1.5000 /M
GPT 5.4 online chat tool
Model settings
It includes completed, reusable turns from this conversation in your next request, so you can ask follow-up questions without repeating the context.
What happens when it is off?Only your new message and any system prompt are sent. Existing messages stay visible; turning memory back on includes eligible earlier turns again.
Is this long-term memory?No. This is conversation context, not memory across separate conversations. Failed, stopped, truncated, or non-reusable replies are excluded. More history can use more input tokens and increase cost.
Advanced parameters
Conversation

How can I help you today?
No response data yet GPT 5.4 prompt examples
Draft a polite customer email for this situation: an order will arrive two days late, the revised delivery date is October 15, and tracking will be sent tomorrow. Apologize without inventing compensation. Include a subject line and keep the email under 120 words.
Turn these meeting notes into an action list: Maya will revise the proposal by Friday; Leo will confirm the venue next Monday; the budget needs approval, with no owner assigned. Use columns for task, owner, deadline, and open questions. Mark missing details as unknown.
What is GPT 5.4?
GPT 5.4 model focus and core capabilities
GPT 5.4 is an OpenAI model for coding and professional work, combining text reasoning with image understanding and a native 1,050,000-token context window. It is a candidate for workflows that move between technical analysis, document synthesis, and software development rather than a model restricted to writing short summaries.
GPT 5.4 online tools and API on RequestBeam
RequestBeam provides an online text Playground, unified Chat Completions, and OpenAI-compatible Responses access for gpt-5.4. Test supplied text here before integrating your application. The text tool does not upload files, browse websites, or execute code; multimodal requests and tools require the appropriate documented interface and supported configuration.
GPT 5.4 capabilities and domain strengths
GPT 5.4 can help connect project requirements, technical material, and a proposed deliverable. Make the task checkable: define what must remain unchanged, what evidence is available, and what a useful answer should contain.
Coding assistance across requirements and implementation
Supply related modules, an observed failure, and acceptance tests to ask for a diagnosis and a focused change proposal. GPT 5.4 can assist with code review, interface design, and explaining how a change affects callers, rather than only completing a function in isolation.
Ask it to separate verified observations from hypotheses and include tests for the suspected failure. Your development environment must compile and run any proposed patch; this Playground cannot inspect a repository or establish that generated code works.
Long context for traceable document synthesis
A native 1,050,000-token context window creates room for extensive source material. For a project brief, provide numbered passages and ask for confirmed decisions, unresolved approvals, owners, and risks with references to the supplied text.
A large window is not a guarantee of complete recall. Select relevant material, preserve document versions, and audit omissions as well as invented additions. Actual request size and allowance depend on RequestBeam and the upstream channel, not only the model specification.
Image understanding with a distinct API input path
GPT 5.4 supports image input at the model level. Visual analysis can support reviewing a chart, interpreting an interface layout, or relating a diagram to accompanying technical notes when the image is sent through a supported multimodal interface.
This text Playground has no image or PDF upload control. RequestBeam Responses documents public image URLs in input_image and PDF content in input_file; follow those formats instead of assuming a pasted link is analyzed. Audio and video are not native input modalities for this model.
Adjustable reasoning and structured deliverables
GPT 5.4 supports configurable reasoning effort and structured outputs at the model level. A decision brief can request a recommendation, the constraints supporting it, and conditions that would reverse it; an extraction task can define fields, types, and missing-value behavior.
Parameter support must be checked on the chosen interface. A natural-language JSON request is not schema enforcement, and schema-valid data can still be incorrect. Validate source alignment and business rules, especially before using financial, legal, or other consequential material.
GPT 5.4 benchmarks and performance
Published model evaluations and your application results answer different questions. Treat coding, document, and tool benchmarks as candidate-selection signals, not a promise of RequestBeam response time, availability, or success on your own workload.
Evaluate coding against executable acceptance tests
For software work, measure whether a patch resolves the reported issue, preserves existing behavior, and passes relevant tests. Include cases requiring more than one file and track invented APIs, missed dependencies, and unnecessary changes.
A tool-enabled benchmark includes a harness that supplies files and execution feedback. A single text reply does not have that environment. Compare models using the same repository context and validation process rather than converting a benchmark score into a predicted repair rate.
Evaluate document accuracy beyond fluent prose
Use briefs with tentative dates, conflicting versions, missing owners, and numerical exceptions. Check that GPT 5.4 retains uncertainty, cites supplied passages correctly, and distinguishes a proposed action from an existing commitment.
For structured extraction, count correct fields and unsupported inferences separately from JSON parsing success. For visual work, evaluate the actual image input path; a text-only description cannot validate image perception or PDF understanding.
Measure quality, latency, and usage together
Keep prompts, protocol, history, and output requirements comparable. Record source accuracy, rework, time to first visible text, total duration, and actual usage. Compare reasoning configurations only when the selected channel supports them.
Long inputs and repeated history can increase cost, while reasoning may delay visible text and consume output allowance. Choose settings from a small representative sample; no local production latency or benchmark score is claimed here.
GPT 5.4 compared with GPT and Claude models
Use GPT 5.4 as one candidate for a defined workload, then compare related catalog models with identical acceptance criteria. The table describes evaluation tasks rather than an unverified performance ranking.
| Dimension | GPT 5.4 | Related candidates | Validation method |
|---|---|---|---|
| Code changes | Review requirements and propose patches | GPT 5.5, Claude Sonnet 4 6 | Run tests and inspect change scope |
| Document synthesis | Create source-aligned briefs | GPT 5.5, Kimi K3 | Check facts, omissions, and uncertainty |
| Structured extraction | Define fields and missing values | GPT 5.6 Terra | Validate schema and every source field |
| API integration | Chat Completions and Responses | Protocol varies by candidate | Check catalog, request body, and output parsing |
When to prioritize testing GPT 5.4
Start with GPT 5.4 when one workflow combines technical reasoning, source-backed writing, and coding assistance, or when you need to evaluate both Chat Completions and Responses integration. A useful sample is a project brief that also asks for a change plan and associated regression tests.
Do not infer that another version is always better, or that a familiar SDK makes every feature portable. Compare the answer quality and current account price under the protocol your application will actually use.
Choose models by task on RequestBeam
Compare GPT 5.5 for the same difficult brief, Claude Sonnet 4 6 for code review, Kimi K3 for source-heavy synthesis, and GPT 5.6 Terra for structured extraction. These are evaluation candidates, not claims that one necessarily wins its assigned task.
The common text interface helps reuse authentication and message structure. Responses and Messages use different contracts, and model-specific parameters can differ even within a family. Preserve a common rubric while checking each candidate page and documentation.
Why use GPT 5.4 through RequestBeam?
Usage-based billing and model cost optimization
Reliable service at prices lower than official rates. Top up on demand and use what you pay for.
Unified AI models and data APIs, with multi-model access in one place
One API key connects multiple AI models and data services, reducing integration costs and letting you switch with one click. Business applications need both AI and data.
Call logs and application access controls, with clarity on every call
Every API call is recorded in your dashboard. Create separate API keys for different applications.
Model capabilities without compromise
We do not water down our models. We cannot offer you the cheapest, but we are committed to offering you the best.
How to use GPT 5.4 on RequestBeam
After creating an API key in the console, follow the documentation to get started with GPT 5.4.
Prepare your account and test online
Sign in, confirm your balance, and create an API key.
Try it in the Playground
Explore the model's capabilities in the Playground to find the best way to use it.
Integrate GPT 5.4 into your business
Follow our developer documentation to integrate GPT 5.4 into your business.
Future model upgrades
When a new model is released, simply replace the model name with the new one to upgrade.
GPT 5.4 API FAQ
Can the GPT 5.4 Playground accept images, PDFs, or video?
This Playground accepts text and has no file upload control. GPT 5.4 supports image understanding, while RequestBeam Responses documents public image URLs through input_image and PDF Data URLs through input_file with filename. These are separate API inputs, not links pasted into chat. Audio and video are not native model inputs here.
Why might GPT 5.4 produce no final text or an incomplete answer?
A small explicit output budget can be consumed by reasoning or truncate final text. Check Chat finish_reason or Responses completion status and any incomplete details before treating the result as complete. Narrow the task or adjust the optional allowance. Do not assume that GPT 5.4 exposes raw internal reasoning or always returns reasoning_content.
Is conversation memory permanent, and why does usage grow?
Memory here is current conversation context, not persistent memory across sessions. Enabling it includes reusable completed turns, which can increase input usage. Disabling it leaves history visible but excludes it from new requests. Failed, stopped, truncated, or non-reusable replies are not appended as normal history. A Responses response ID alone does not guarantee stateful continuation on every channel.
How should I troubleshoot 401, 402, 403, or 429 errors?
For 401, check the key and Bearer authentication; for 402, check balance; for 403, check gpt-5.4 permissions; for 429, check request rate or allowance. Confirm availability through the catalog for your key. The numeric platform code is separate from the HTTP status; inspect full error details for upstream failures and in-stream SSE errors rather than treating every failure as an invalid key.
Can I call GPT 5.4 using OpenAI Responses or Claude Messages?
RequestBeam lists gpt-5.4 for Chat Completions and OpenAI-compatible Responses, not Claude Messages. Responses uses input and output items; Chat uses messages and choices. Select the matching endpoint and parser rather than only changing the model name. Ordinary Responses support does not imply Compact or stateful continuation is available on your channel.
Can one request return multiple alternatives or guarantee valid JSON?
Ask for several alternatives within one reply instead of assuming every protocol accepts n. Responses does not document n in its request contract. GPT 5.4 supports structured outputs at the model level, and Responses documents text.format; confirm your schema configuration on the selected channel. A JSON prompt alone is not enforcement, and schema-valid output still needs factual and business validation.
Can GPT 5.4 execute code, use tools, or perform business actions here?
The text Playground does not execute code, control a browser, change files, or make payments. Responses documents tool definitions, but actual tool availability depends on the channel. Your application must execute custom functions, return results, enforce permissions, and approve sensitive actions. A function call or generated plan is not proof of a completed operation.
Should I immediately retry a slow response, interrupted stream, or stopped request?
Check existing results, request records, and usage first. Long input and reasoning can affect response time. Stopping browser waiting or losing an SSE connection does not prove the upstream request was unprocessed. Avoid parallel duplicate retries; classify the error, check for outstanding results, and use bounded backoff when retrying is appropriate.
Related text APIs
GPT 5.4 API specification and requests
GPT 5.4 API quickstart
gpt-5.4Chat CompletionsPOST /v1/chat-completions
curl -X POST "https://api.requestbeam.com/v1/chat-completions" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.4","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}],"stream":false}'ResponsesPOST /openai/responses
curl -X POST "https://api.requestbeam.com/openai/responses" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.4","input":"Hello, reply with one short sentence.","stream":false}'Family and protocol reference
OpenAI Multimodal Responses
Full API documentationOpenAI-compatible Responses API. This endpoint uses OpenAI-style `input`, supports text, public image URLs, PDF file input, tool calls, reasoning options, and streaming parameters.
https://api.requestbeam.com/openai/responsesOpenAI-compatible Responses API. This endpoint uses OpenAI-style input, supports text, public image URLs, PDF file input, tool calls, reasoning options, and streaming parameters.
POST https://api.requestbeam.com/openai/responsesAuthentication
All requests require Bearer Token authentication.
Authorization: Bearer YOUR_API_KEYBody
modelstringrequiredDefault: gpt-5.4Current active models with Responses support:
gpt-5.4gpt-5.5gpt-5.6-solgpt-5.6-terragpt-6-astra
See the Model Catalog for the models visible to the current API Key.
inputstring | object[]Input content. Required unless a non-empty previous_response_id is provided. Omitting both fields or using an invalid input type returns 400 before billing.
Supported forms:
- A string, equivalent to one
usertext input. - An array of input items for conversation history, multimodal input, and tool call results.
Each object in the input array may contain the following fields:
typestringInput item type.
Common values:
message: a message input.function_call_output: the result of a function tool call.
rolestringRole when type=message.
Common values:
developersystemuserassistant
contentstring | object[]Message content.
Use a content-block array for multimodal requests. Content blocks support:
typestringContent block type.
Currently supported:
input_textinput_imageinput_file
textstringText content when type=input_text.
image_urlstringPublic image URL when type=input_image.
Only publicly accessible http:// or https:// image URLs are supported. Base64 Data URLs such as data:image/...;base64,... are not supported.
detailstringDefault: autoImage detail level when type=input_image.
Common values:
autolowhigh
file_datastringFile content Data URL when type=input_file. PDFs may use data:application/pdf;base64,....
filenamestringFile name when type=input_file.
instructionsstringSystem or developer instructions inserted into the model context.
max_output_tokensintegerOptional maximum output tokens, as a positive integer. Omit this field to use the upstream default for the selected model. Depending on the model, the budget may include reasoning tokens as well as final text. A small budget can truncate the answer or be exhausted before final text; increasing it may increase cost.
streambooleanDefault: falseWhether to stream the response.
false: return one complete responsetrue: return OpenAI Responses-style SSE events
temperaturenumberDefault: 1.0Sampling temperature, usually from 0 to 2.
top_pnumberDefault: 1.0Nucleus sampling parameter, usually from 0 to 1.
textobjectText output configuration.
text.formatobjectText format configuration, such as { "type": "text" } or a JSON schema.
text.verbositystringOutput verbosity, such as low, medium, or high. Support depends on the selected model.
toolsobject[]Tool definitions. Availability depends on the selected model and available features.
tool_choicestring | objectTool selection policy.
parallel_tool_callsbooleanWhether parallel tool calls are allowed.
reasoningobjectReasoning-related options.
includestring[]Extra fields to include in the response.
prompt_cache_keystringPrompt cache key for prompt cache reuse.
prompt_cache_retentionstringPrompt cache retention policy. Supported values depend on the selected model and available features.
safety_identifierstringStable end-user identifier for safety controls.
storebooleanWhether response state may be stored.
Model Parameter Differences
- Native OpenAI-compatible Responses forwarding preserves
top_pin the upstream request; validation and sampling behavior depend on the selected model and upstream. The checks on 2026-09-26 acceptedtop_p: 0.9forgpt-5.5,gpt-5.6-sol, andgpt-5.6-terra. Acceptance and forwarding do not prove a sampling effect or guarantee support for other values, models, or later requests. Start with a minimal request. - Support on this page applies only to the regular
/openai/responsesendpoint. It does not imply that the same model supports/openai/responses/compact, WebSocket, or statefulprevious_response_id. - The five GPT models listed above currently have no verified Compact channel. Compact requests are rejected before billing when no explicitly enabled channel is available. Ordinary Responses and Responses WebSocket remain available.
Request Examples
The examples below provide input. A continuation may omit input when it provides a valid previous_response_id and the selected channel supports stateful continuation. A response ID does not enable that capability on an unsupported channel. Tool results remain valid input items, including function_call_output.
Text
{
"model": "gpt-5.4",
"input": "Hello, introduce yourself in one sentence."
}Codex CLI-Style Parameters
{
"model": "gpt-5.5",
"input": "Reply with READY only.",
"reasoning": {
"effort": "xhigh"
},
"store": false,
"text": {
"verbosity": "low"
},
"stream": true
}Image Understanding
{
"model": "gpt-5.4",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "What is in this image?"
},
{
"type": "input_image",
"image_url": "https://example.com/cat.png",
"detail": "high"
}
]
}
]
}File Input
Use file_data plus filename to submit PDF content. file_data must be a complete Data URL.
{
"model": "gpt-5.4",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Summarize the key points in this PDF."
},
{
"type": "input_file",
"file_data": "data:application/pdf;base64,JVBERi0xLjQKJc...",
"filename": "report.pdf"
}
]
}
]
}Image and File Input
{
"model": "gpt-5.4",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Give three conclusions based on the image and attachment."
},
{
"type": "input_image",
"image_url": "https://example.com/chart.png",
"detail": "high"
},
{
"type": "input_file",
"file_data": "data:application/pdf;base64,JVBERi0xLjQKJc...",
"filename": "notes.pdf"
}
]
}
]
}Streaming Output
{
"model": "gpt-5.4",
"stream": true,
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Explain this diagram step by step."
},
{
"type": "input_image",
"image_url": "https://example.com/diagram.png"
}
]
}
]
}Response
Non-streaming responses follow OpenAI Responses style. Actual fields may vary with selected model capabilities.
idstringUnique response identifier.
objectstringResponse object type, usually response.
created_atintegerCreation timestamp.
modelstringActual model used.
outputobject[]Output item list. Common items include message, function_call, and tool-related output.
usageobjectToken usage statistics, such as input_tokens, output_tokens, and total_tokens.
Success Example
{
"id": "resp_123",
"object": "response",
"created_at": 1766534400,
"model": "gpt-5.4",
"output": [
{
"type": "message",
"role": "assistant",
"content": [
{
"text": "The image shows a cat, and the attachment is a document about pet care."
}
]
}
],
"usage": {
"input_tokens": 128,
"output_tokens": 42,
"total_tokens": 170
}
}Streaming Response
When stream=true, the endpoint returns Server-Sent Events.
event: response.output_text.delta
data: {"type":"response.output_text.delta","delta":"The image"}
event: response.completed
data: {"type":"response.completed","response":{"id":"resp_123"}}Read events until response.completed or the connection closes.
Error Response
See Error Codes and Troubleshooting for the full code reference, protocol differences, and diagnostic steps.
Platform-generated HTTP errors use the flat fields below instead of an error wrapper. Some upstream errors may retain their original structure; errors inside an already-started SSE stream do not follow this HTTP response example.
{
"code": 40000,
"message": "Insufficient credit. Required: 30000, Available: 20000",
"type": "api_error"
}Notes
- The
Responsesendpoint usesinput, notmessages. If your client only sendsmessages, use/openai/v1/chat/completions. - Image input uses
input_image;image_urlmust be a publichttp://orhttps://URL. Base64 Data URLs are not supported for images. - File input uses
input_file. For PDFs, usefile_dataplusfilename;file_datashould be a completedata:application/pdf;base64,...URL. - Audio input/output, image generation tools, file search, and other advanced capabilities depend on the selected model and available features.
- The fields listed on this page form the current public Responses request contract; do not assume unlisted fields are available.
/openai/responsesis the recommended public path./v1/responsesfollows the same public request and response contract./compat/v1/responsesfollows the same public request and response contract./openai/v1/responsesfollows the same public request and response contract.