Skip to main content
Call the chain deployment associated with a specified environment.
curl --request POST \
  --url https://model-{model_id}.api.baseten.co/environments/{env_name}/run_remote \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

API key with the Api-Key prefix, e.g. Authorization: Api-Key abcd1234.abcd1234.

Path Parameters

env_name
string
required

The name of the environment (e.g. production, staging).

Body

application/json

JSON input matching the chain's run_remote method signature.

Response

Successful synchronous chain execution.

JSON-serializable output. The shape is defined by the chain.