Responses
https://api.tokenbay.com/v1/responsesOpenAI Responses API and Responses compact entry
Responses Routes
TokenBay provides the standard Responses path and the Responses compact path.
/v1/responses/v1/responses/compactRequest
schemamodelstringRequiredAn available model ID shown on the live Models page or in the console.
inputstring | array | objectRequired
Responses API input, including plain text, conversation input, or multimodal input.
input[].rolestringOptionalInput message role, such as user, assistant, or system.
input[].contentstring | array<object>OptionalText or multimodal content blocks.
content[].typestringOptionalContent block type, such as input_text, input_image, or input_file.
content[].textstringOptionalText content.
content[].image_urlstringOptionalImage URL or data URL.
content[].file_id / filenamestringOptionalFile input identifier. Support depends on the upstream.
instructionsstringOptionalSystem-level or developer-level instructions.
streambooleanOptionalSet true to receive Responses SSE events.
max_output_tokensintegerOptionalMaximum output tokens.
temperature / top_pnumberOptionalSampling parameters.
text / reasoningobjectOptional
Structured text output and reasoning configuration.
text.format.typestringOptionalText format, such as text or json_schema.
text.format.schemaobjectOptionalStructured output schema.
reasoning.effortstringOptionalReasoning effort.
reasoning.summarystringOptionalWhether to request a reasoning summary. Support depends on the model.
tools / tool_choicearray<object> | object | stringOptional
Tool calling configuration.
tools[].typestringOptionalTool type, such as function, web_search, file_search, computer_use, and similar tools.
tools[].namestringOptionalTool name.
tools[].parametersobjectOptionalFunction tool parameter schema.
tool_choicestring | objectOptionalauto, none, required, or a specific tool.
parallel_tool_callsbooleanOptionalWhether parallel tool calls are allowed.
previous_response_idstringOptionalContinue from a previous Responses context.
includearray<string>OptionalAsk the upstream to include extra output fragments.
store / metadata / userboolean | object | stringOptionalStorage and client-side tracing fields. Do not include sensitive data.
Response
schemaResponses keep the Responses API shape. Streaming calls return Responses SSE events.
idstringOptionalResponses response ID.
objectstringOptionalResponse object type.
modelstringOptionalActual response model.
output[]array<object>Optional
Model output blocks, such as message, tool_call, or reasoning.
output[].typestringOptionalOutput block type, such as message, function_call, reasoning, or tool_result.
output[].rolestringOptionalMessage block role.
output[].content[]array<object>OptionalOutput content blocks.
content[].typestringOptionalContent type, such as output_text, refusal, or annotation.
content[].textstringOptionalOutput text.
output[].call_idstringOptionalTool call ID.
output[].argumentsstring | objectOptionalTool call arguments.
usageobjectOptional
Input, output, and total token usage when returned upstream.
usage.input_tokensintegerOptionalInput token count.
usage.output_tokensintegerOptionalOutput token count.
usage.total_tokensintegerOptionalTotal token count.
