Martian Gateway Chat Completions Streaming (HTTP + SSE)
Version 1.0.0
AsyncAPI 2.6 description of the Martian Gateway's **chat completion streaming** surface. Martian does not publish a WebSocket API. The Martian Gateway is an OpenAI-compatible model router; its only asynchronous / event-style transport is **HTTP Server-Sent Events (SSE)** delivered over the same REST endpoint (`POST /v1/chat/completions`) when the request body sets `stream: true`. SSE is a one-way, server-to-client HTTP streaming channel; it is **not** WebSocket. Because Martian mirrors the OpenAI Chat Completions streaming contract, tokens are sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message. This AsyncAPI document models only the streamed events emitted by the Gateway's SSE response. The request body itself (model in provider/model-name format, messages, etc.) is modeled in the companion OpenAPI document at `openapi/martian-ai-openapi.yml`.
Channels
Messages
Servers
api.withmartian.com