Skip to main content
Use this endpoint to connect over WebSockets to the deployment associated with the specified environment. entity is model or chain, depending on whether you call a Baseten model or a Chain.
See WebSockets for more details.

Parameters

string
required
The type of entity you want to connect to. Either model or chain.
string
required
The ID of the model or chain you want to connect to.
string
required
The name of the environment you want to connect to.
string
required
Your Baseten API key, passed as Authorization: Bearer $BASETEN_API_KEY. Api-Key is also accepted as the scheme.