Create Response
client.responses.create(params)/v1/responsesCreate an OpenAI-compatible model response. SandBase preserves request fields after model mapping, then sanitizes responses to public OpenAI fields.
Request body
ResponseCreateParamsModel identifier from the Models API.
Text, message items, or other input supported by the selected model and provider.
System or developer instruction for the response.
Return OpenAI-compatible Server-Sent Events.
Default: false
Request background execution when supported by the selected provider.
Additional public response data to include when supported.
Maximum generated tokens.
Maximum built-in tool calls when supported.
Request metadata forwarded to the provider.
Allow supported models to invoke tools in parallel.
Previous response to continue when supported by the selected route.
Reasoning configuration for supported models.
Request provider-side response storage when supported.
Text output and structured-format configuration.
Controls tool selection.
Tools available to the model.
Input truncation behavior.
Request compatibility
SandBase rewrites model to the selected upstream model and preserves other request fields. Provider support still varies.
Sanitized responses
Only public OpenAI response fields and token usage are returned. Provider billing, account, routing, and unknown top-level extensions are removed; output item content is preserved.
Streaming
Public response.* and error SSE events are sanitized and forwarded. Unknown private events are dropped; malformed data closes the stream rather than forwarding unsafe content.
Errors
Invalid JSON, missing model, or an invalid provider request.
Missing or invalid API key.
Organization or API Key spending limit reached.
API key scope or upstream permission rejection.
The upstream provider rejected the request as too large.
Prediction lifecycle or organization lookup failed.
The upstream response could not be safely parsed and sanitized.
Routing failed or every provider candidate was exhausted.

