**Does Cloudflare AI Gateway BYOK actually support the OpenAI SDK?** I’m testing BYOK (“Store Keys”

Does Cloudflare AI Gateway BYOK actually support the OpenAI SDK?

I’m testing BYOK (“Store Keys) with the Cloudflare AI Gateway using the OpenAI JS SDK. The docs only show curl examples, but the SDK always requires an apiKey.

If I omit it → Missing credentials.
If I include a dummy key → 401 Authorization Required

The docs say that BYOK Gateway should expect only cf-aig-authorization

Can someone from CF confirm whether BYOK is officially supported with the OpenAI SDK / Unified API, or if it’s currently curl-only?
Was this page helpful?