Skip to main content
Asynchronously call a named environment of a chain.
curl --request POST \
  --url https://model-{model_id}.api.baseten.co/environments/{env_name}/async_run_remote \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "request_id": "<string>"
}

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

Async run remote request enqueued.

request_id
string
required

The ID of the async request.