gateway

Gateway Chat Stream

Streaming model gateway. Emits crowe-stream v0 events as SSE.

Behind CROWE_STREAM_ENABLED so the rollout is reversible without a redeploy. Plan gating mirrors /chat exactly so streamed access can never exceed the user's tier.

Token accounting note: the v0 renderer counts SDK content deltas (one increment per feed call), which is approximately the completion_tokens count but does not include prompt_tokens. We record what we have on the done event; v1 of the protocol adds the real provider usage block (gap #3 in the spec) at which point this becomes accurate. The endpoint is dogfood-only until that lands.

post/api/gateway/chat/stream

Request

  • Base URL: https://api.crowelogic.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.crowelogic.com/api/gateway/chat/stream
  • Auth: none declared

Headers

authorizationstring nullable
X-API-Keystring nullable

Request body

streamboolean
modelstring required
messagesobject[] required
max_tokensinteger nullable
temperaturenumber nullable
toolsobject[] nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.