Prefer automatic setup? Run
inf instrument to instrument your codebase in seconds. Learn moreSetup
1
Get your API keys
You need two keys:
- Inference Catalyst project API key — from your dashboard under API Keys
- OpenAI API key — from your OpenAI account
2
Set environment variables
3
Update your code
Point the SDK at the gateway. Your project API key goes in
apiKey to authenticate with the gateway, and your OpenAI key goes in x-inference-provider-api-key so the gateway can forward it to OpenAI.