Thalamus · Guides

Send a client request

Point an HTTP client at the relay, not a member. For the configured reasoner, try:

curl --fail-with-body http://127.0.0.1:18000/v1/chat/completions \
 -H 'content-type: application/json' \
 -H 'x-session-id: invoice-review-42' \
 -d '{"model":"reasoning-model","messages":[{"role":"user","content":"Explain idempotency keys."}]}'

Replace the model ID with one your server serves. For SDKs, set their API base to the relay's /v1 URL where that SDK expects it. Cortex is the CNS executive client; other callers can use the supported HTTP routes directly.

For SSE, add "stream":true to the JSON and -N to curl. Events and completion markers come from the model server; Thalamus does not provide resumable streams or translate task payloads. See payloads, streaming and errors before building retry/error handling.

Use /v1/chat/completions or /v1/completions for generation, /v1/system1/decide for verification, and /v1/embeddings or /v1/rerank for knowledge. Explicit plane URLs such as /intelligence/v1/chat/completions override header/model-based plane selection. Consult the route inventory for compatibility paths and capability requirements; Thalamus is not a general proxy for arbitrary /v1/* paths.

A declared model match is preferred, not enforced. An unknown name defaults to intelligence and can reach a capable upstream unchanged. Only auto and default are rewritten to the selected member's first model. Likewise, single-node policy falls back if its named member is ineligible; it is not a fail-closed target lock.