Create Response

View as Markdown

Responses API endpoint — provider resolved dynamically from DB.

Auth: Authorization: Bearer rsk_<ULID> Streaming: set stream=true for SSE chunks Rate limits: RPM and RPD enforced per key via Redis fixed-window counters Spend cap: enforced if key.spend_cap_usd is set Provider: resolved from model_pricing.provider (same as chat/completions)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
inputstring or list of anyRequired
modelstring or nullOptional
templatestring or nullOptional
variablesmap from strings to strings or nullOptional
session_idstring or nullOptional
streambooleanOptionalDefaults to false
max_output_tokensinteger or nullOptional>=1
temperaturedouble or nullOptional0-2
top_pdouble or nullOptional0-1
seedinteger or nullOptional
reasoningmap from strings to any or nullOptional
toolslist of objects or nullOptional
tool_choicestring or map from strings to any or nullOptional
response_formatmap from strings to any or nullOptional
pluginslist of any or nullOptional
userstring or nullOptional<=256 characters
previous_response_idstring or nullOptional
instructionsstring or nullOptional
thinkingmap from strings to any or nullOptional
cachingmap from strings to any or nullOptional
storeboolean or nullOptional
includelist of any or nullOptional
expire_atinteger or nullOptional
max_tool_callsinteger or nullOptional1-10
context_managementmap from strings to any or nullOptional
textmap from strings to any or nullOptional
timeoutdouble or nullOptional

Response

Successful Response