import urllib3 import os chain_id = "" deployment_id = "" # Read secrets from environment variables baseten_api_key = os.environ["BASETEN_API_KEY"] resp = urllib3.request( "POST", f"https://chain -{chain_id}.api.baseten.co/deployment/{deployment_id}/run_remote", headers={"Authorization": f"Api-Key {baseten_api_key}"}, json={}, # JSON-serializable chain input ) print(resp.json())
{}
https://chain-{chain_id}.api.baseten.co/deployment/{deployment_id}/run_remote
Api-Key
{"Authorization": "Api-Key abcd1234.abcd1234"}
run_remote
Was this page helpful?