Skip to main content
This guide takes you from an empty gateway to a working LLM request. It uses OpenAI as the provider because it is the shortest path; every step works the same way for Anthropic, Vertex AI, Bedrock, Azure OpenAI and the rest of the supported providers.
Before you start. AI Gateway must be enabled on your Strata Cloud Manager tenant.
This is the minimal path. To scan requests with Prisma AIRS, enable the plugin and attach a guardrail — see the Prisma AIRS guardrail reference — then bind it to your key with a config.

Overview

1

Set up a workspace

2

Add an LLM integration

3

Create an API key

4

Make your first request

5

Check the logs


1. Set up a workspace

Workspaces are managed under Workspace Control. A workspace is the unit that owns integrations, configs and API keys, and it is the boundary your access scopes are evaluated against. Use the default workspace to get started, or create one for this exercise. Everything below is created inside a workspace, so make a note of which one you are in.
The tenancy model is Organisation → Workspace → User/Machine. Your organisation is your Strata Cloud Manager tenant; workspaces divide it; users and machine identities act within a workspace.

2. Add an LLM integration

Go to Integrations → Add LLM Integration.
1

Select the provider

Choose OpenAI.
2

Supply the credential

Paste your OpenAI API key. Other providers take different credential shapes — Vertex AI takes a service account JSON file, Bedrock takes an IAM role or access keys.
3

Assign the integration to your workspace

Only workspaces you assign here can route through this integration.
4

Select models

Pick the models you want exposed, then click Create Integration.
The integration gets a provider slug — something like @openai-prod. You will use it in the model parameter of every request.

3. Create an API key

Go to Security Keys → Create New. Create the key inside the workspace from step 1. You can attach default metadata here, which then shows up on every log line, and a config if you have one — any request made with the key then picks it up without the caller passing anything extra. Copy the key. It is shown once.

API keys, authentication and authorisation

Scopes, metadata enforcement, expiry and rotation.

4. Make your first request

The gateway speaks the OpenAI API. Point your existing client at https://aigw.portkey.ai/v1, authenticate with your gateway API key, and prefix the model with your provider slug.
Three things to note:
  • Authorization carries the gateway key, not the provider key. The gateway holds the OpenAI credential from step 2 and attaches it upstream.
  • The provider slug lives in model. @openai-prod/gpt-4o means “the gpt-4o model, via the @openai-prod integration”. You do not need a provider header.
  • Policy rides on the key. Anything attached to the config on your API key — guardrails, fallbacks, retries, caching — applies without the caller opting in.
To scope a config to a single request rather than to the whole API key, pass -H "x-portkey-config: pc-xxxxxx". The header overrides the key’s default.

5. Check the logs

Go to Observability → Logs. Your request is there with the model, provider, token counts, cost and latency. If a guardrail is attached to the key, its verdict shows here too. To correlate a set of calls, pass a trace ID on the request:
Requests sharing a trace ID are grouped as one session in the log view. Once Prisma AIRS scanning is enabled, the same trace ID resolves on the Prisma AIRS side under AI Runtime → AI Sessions, where you can see the scan results for that session.

Next steps

Model Catalog

Add more providers, set budget and rate limits per workspace.

Guardrails

Guardrail actions, PII redaction, and the full check list.

AI Gateway

Fallbacks, retries, load balancing, caching and conditional routing.

Observability

Analytics, traces, metadata and OpenTelemetry export.

Coding agents

Route Claude Code, Cursor, Cline and Codex through the gateway.

Integrations

Agent frameworks, libraries, tracing providers and MCP.
Last modified on September 15, 2026