Authorization header:
Making LLM Requests
Authentication
Authenticate with the TrueFoundry AI Gateway using a TrueFoundry API key (PAT or VAT).
To access models through the AI Gateway, you authenticate with a TrueFoundry API key — not the original provider keys (OpenAI, Anthropic, etc.). The AI Gateway manages provider credentials centrally, so developers only need a single TrueFoundry token.
Pass your API key as a Bearer token in the
Or set it as an environment variable for the OpenAI SDK:
For SDK-specific examples (Anthropic, LangChain, and others), see Native SDK Support.
Was this page helpful?