How to Set Up Portkey AI Gateway
Setting up Portkey AI Gateway is simple and efficient, requiring just three key steps: configuring the gateway, sending your first request, and optimizing routing and guardrails for seamless performance.Step 1: Setup your AI Gateway
To run the gateway locally, ensure Node.js and npm are installed on your system. Once ready, execute the following command:- The Gateway:
http://localhost:8787/v1
- The Gateway Console:
http://localhost:8787/public/
Step 2: Make your first request
Begin by installing the Portkey AI Python library:http://localhost:8787/public/
.
Step 3: Routing & Guardrails
Portkey AI Gateway enables you to configure routing rules, add reliability features, and enforce guardrails. Below is an example configuration: