OpenAI’s Realtime API while the fastest way to use multi-modal generation, presents its own set of problems around logging, cost tracking and guardrails.
AI Gateway provides a solution to these problems with a seamless integration. Its logging is unique in that it captures the entire request and response, including the model’s response, cost, and guardrail violations.
Here’s how to get started:
OpenAI NodeJS
OpenAI Python
cURL
For advanced use cases, you can use configs
If you would not like to store your API Keys with the AI Gateway, you can pass your openai key in the Authorization header.
Fire Away!
You can see your logs in realtime with neatly visualized traces and cost tracking.
Next Steps
Last modified on October 1, 2026