Skip to main content
POST
/
v1
/
model-router
/
stream
Stream model responses via SSE
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/model-router/stream \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "config_overrides": {},
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "smart_routing": false
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
messages
MessageInput · object[]
required
router_config_id
string<uuid> | null
config_overrides
Config Overrides · object
session_id
string<uuid> | null
smart_routing
boolean
default:false

Response

Server-Sent Events stream