RequestBeam Docs
OpenAI Multimodal Responses
OpenAI-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.