Authentication

OpenGateway inference APIs use API keys for authentication. The public /v1/models catalog is the exception and requires no API key.

1

Get your API key

Sign in to the dashboard and navigate to API Keys page.

2

Add to request header

Include your API key in the Authorization header of every inference request.

Authorization: Bearer YOUR_API_KEY
3

Keep it secure

  • •Never expose your API key in client-side code
  • •Use environment variables to store your API key
  • •Rotate your API keys periodically
  • •If compromised, disable the key immediately from Dashboard

Example Request

curl https://apis.opengateway.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-4o-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'
OpenGateway — One API for every LLM, built for production