Skip to main content
All API requests require authentication using a Bearer token in the Authorization header.

Getting Your API Key

Visit the Gateway Console to generate your API key. Keys are in the format sk-xxxxxxxxxx.

Using Your API Key

Include the Authorization header in every request:

Example with cURL

Example with OpenAI SDK

Security Best Practices

Never expose your API key in client-side code (browser JavaScript, mobile apps, etc.). Always route requests through a backend server.
  • Use environment variables to store your API key — never hardcode it in source files
  • Rotate your key regularly through the Gateway Console
  • Use separate keys for different environments (development, staging, production)
  • Monitor usage in the console to detect any unauthorized access