POST

Authorizations

Authorization
string
header
required

A RavChat API key: Authorization: Bearer sk-rav-...

Body

application/json
model
string
required

A RavChat model id. See the Models catalog.

Example:

"ravchat"

messages
object[]
required

The conversation. system/developer become agent context; the final user message is the query.

stream
boolean
default:false

Stream chat.completion.chunk SSE. Strongly recommended — turns can take minutes.

stream_options
object
response_format
Text · object

text, json_object, or a strict json_schema. Schema is enforced natively; non-conforming output is charged, not retried.

metadata
object

metadata.ravchat.mode = "fast" selects fast mode (equivalent to the top-level mode field).

max_tokens
integer

Output budget hint where the runtime can honor it.

n
integer
default:1

Must be 1.

stop

Accepted.

temperature
number

Accepted and ignored — the agent controls generation.

user
string

Accepted, logged for abuse attribution only.

mode
enum<string>
default:standard

Answering mode. fast runs the quick-answer lane: the agent performs one bounded source search (the local Chabad corpus index, or a direct reference lookup) and returns a concise, sourced answer in your language — same guardrails (verified citations, hashkafa frame, never a halachic ruling), a fraction of the latency. standard (default) runs the full study agent. Also selectable via fast: true or metadata.ravchat.mode = "fast" (the metadata form passes through every OpenAI SDK without extra_body).

Available options:
standard,
fast
fast
boolean
default:false

Alias for mode: "fast". If both are present, mode wins.

Response

A chat completion. When stream:true, a text/event-stream of chat.completion.chunk objects terminated by data: [DONE].

id
string
Example:

"chatcmpl-abc123"

object
string
Example:

"chat.completion"

created
integer
Example:

1720512000

model
string
Example:

"ravchat"

choices
object[]
usage
object
x_ravchat
object

RavChat extension — where the turn ran and what it produced. Also mirrored in x-ravchat-* response headers.