Skip to content

[AI Gateway] Clarify BYOK authorization headers - #33520

Merged
superhighfives merged 2 commits into
cloudflare:productionfrom
Michael-WhiteCapData:docs/clarify-ai-gateway-byok-auth
Sep 22, 2026
Merged

superhighfives merged 2 commits into
cloudflare:productionfrom
Michael-WhiteCapData:docs/clarify-ai-gateway-byok-auth

Conversation

@Michael-WhiteCapData

Copy link
Copy Markdown
Contributor

Summary

Clarifies that AI Gateway substitutes a stored provider key only when the provider authorization header is absent. Adds a DeepSeek BYOK request example that omits Authorization and uses cf-aig-authorization for the gateway.

Fixes #33517.

Documentation checklist

  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.

@github-actions github-actions Bot added size/s product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ labels Sep 18, 2026
@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

@Michael-WhiteCapData This draft pull request has had no activity for 3 days. It will close after 7 days of inactivity. Transition to ready for review if ready. A codeowner can comment /draft-never-stale to keep it open.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review

✅ No issues found in commit b43e6c0.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

@superhighfives

superhighfives commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for taking the time to contribute this, @Michael-WhiteCapData.

The information looks great, and super useful. I'd love to get this information incorporated into the article, rather than where it's currently sitting at the bottom. Happy to take this over, unless you wanted to take a pass?

@Michael-WhiteCapData

Copy link
Copy Markdown
Contributor Author

Thanks! I took a pass and incorporated the header behavior directly into the Update your applications instructions, then removed the separate callout. The DeepSeek BYOK request remains alongside the other provider examples. The documentation checks and full local build pass.

@superhighfives
superhighfives enabled auto-merge (squash) September 22, 2026 18:14
@superhighfives
superhighfives merged commit 44b110c into cloudflare:production Sep 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI Gateway BYOK docs: unclear that any Authorization header (even a placeholder) bypasses key injection; DeepSeek provider page missing BYOK example

2 participants