Create a model response (OpenAI Responses)
Generates a model response in the OpenAI Responses shape for the OpenAI SDKs and Codex. Check a model's supported_apis on GET /v1/models first. Stateless: the gateway sends store false and refuses previous_response_id, conversation, background, stored prompts, item references and file inputs (400 unsupported_parameter). Send the full conversation in input on every turn. Client-executed tools (function, custom, namespace, client tool_search) are forwarded; hosted web_search is removed and every other hosted tool is refused (400 unsupported_tool_type). Requires a funded balance. Set "stream" to true for event-typed Server-Sent Events (response.created, response.output_text.delta, response.completed, and so on); a stream carries no [DONE] line. The request body is capped at 10 MiB.
Required permission
Requires the inference.invoke permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl responses create --input <input> --model <model>apiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
application/json- body
An OpenAI Responses request, served stateless. Opaque: unlisted Responses parameters (temperature, top_p, tool_choice, text, reasoning, ...) are forwarded as sent.
model*stringAn OpenRelay public model id.
input*|array<>The full conversation: a string, or an array of input items (messages, function_call, function_call_output, reasoning, ...).
instructions?stringThe system prompt.
max_output_tokens?integerUpper bound on tokens to generate, reasoning included.
stream?booleanStream the response as event-typed Server-Sent Events.
store?booleanIgnored: the gateway always sends false.
[key: string]?anyOK
- response
An OpenAI Response object (opaque; additionalProperties carries the rest of the dialect).
id?stringobject?"response""response"status?stringcompleted, incomplete or failed.
model?stringAlways the public OpenRelay model id requested.
output?array<>usage?openrelay?What the request is billed, on every online inference response.
[key: string]?anycurl -X POST 'https://inference.openrelay.inc/v1/responses' \ -H 'Content-Type: application/json' \ -d '{ "model": "string", "input": "string"}'{ "id": "string", "object": "response", "status": "string", "model": "string", "output": [ {} ], "usage": {}, "openrelay": { "cost_nano_usd": 0, "priced_at": "string" }}Overview
Create a model response in the OpenAI Responses shape for models that support it, stateless: a drop-in for the OpenAI SDKs and Codex. Served by the inference endpoint (inference.openrelay.inc).
Overview
Turn text into vectors for search, retrieval, clustering and deduplication, OpenAI-compatible, from the multilingual openrelay/bge-m3. Served by the inference endpoint (inference.openrelay.inc).