websocat -H 'Authorization: Api-Key YOUR_API_KEY' \
    wss://{entity}-{model_id}.api.baseten.co/environments/{env_name}/websocket
Use this endpoint to connect via WebSockets to the deployment associated with the specified environment. Note that entity here could be either model or chain, depending on whether you using Baseten models or Chains.
wss://{entity}-{entity_id}.api.baseten.co/environments/{env_name}/websocket"
See WebSockets for more details.

Parameters

entity
string
required
The type of entity you want to connect to. Either model or chain.
entity_id
string
required
The ID of the model or chain you want to connect to.
env_name
string
required
The name of the environment you want to connect to.
Authorization
string
required
Your Baseten API key, formatted with prefix Api-Key (e.g. {"Authorization": "Api-Key abcd1234.abcd1234"}).
websocat -H 'Authorization: Api-Key YOUR_API_KEY' \
    wss://{entity}-{model_id}.api.baseten.co/environments/{env_name}/websocket