Skip to content

Commit 79ec383

Browse files
[AI Gateway] Correct BYOK note for AI binding path (#32893)
1 parent eab2801 commit 79ec383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/docs/ai-gateway/usage/worker-binding-methods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const resp = await env.AI.run(
8989
Third-party models require an AI Gateway and use [Unified Billing](/ai-gateway/features/unified-billing/). Cloudflare manages the provider credentials and deducts credits from your account. You do not need to supply your own API keys.
9090

9191
:::note
92-
[BYOK (Bring Your Own Keys)](/ai-gateway/configuration/bring-your-own-keys/) is not supported for third-party models called through the AI binding. To use your own provider keys, use the [provider-native endpoints](/ai-gateway/usage/providers/) instead.
92+
On the AI binding path, only a [BYOK (Bring Your Own Keys)](/ai-gateway/configuration/bring-your-own-keys/) key stored under the `default` alias is used. Keys stored under other aliases are not consulted, and the request falls through to Unified Billing. To select a non-default alias, use the [provider-native endpoints](/ai-gateway/usage/providers/) with the `cf-aig-byok-alias` header. See [credential precedence](/ai-gateway/features/unified-billing/#credential-precedence) for details.
9393
:::
9494

9595
Browse available models in the [model catalog](/ai/models/).

0 commit comments

Comments
 (0)