Skip to content

Commit 4a0ada5

Browse files
AIG-1532: Clarify BYOK-only billing behavior
1 parent 827eaf3 commit 4a0ada5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/content/docs/ai-gateway/configuration/manage-gateway.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ By default, third-party provider requests without credentials can use [Unified B
8282
5. Confirm the change.
8383
</Steps>
8484

85-
Requests must use provider credentials supplied with the request or stored on the gateway. Requests without applicable credentials fail instead of using Unified Billing.
85+
Third-party provider requests must use credentials supplied with the request or stored on the gateway. Requests without applicable credentials return an HTTP `400` response instead of using Unified Billing.
8686

87-
Workers AI requests do not use provider credentials. When Unified Billing fallback is unavailable, Workers AI uses standard billing instead.
87+
Workers AI requests do not use provider credentials. This setting does not block these requests. They use standard Workers AI account billing, not AI Gateway Unified Billing.
8888

8989
## Retry requests
9090

src/content/docs/ai-gateway/features/unified-billing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The `cf-aig-byok-alias` header selects a non-default alias only on [direct provi
7272

7373
## Require provider credentials
7474

75-
Turn on **Require provider credentials** to prevent Unified Billing fallback for third-party providers. Requests must use provider credentials supplied with the request or stored on the gateway. Requests without applicable credentials fail instead of using Cloudflare-managed credentials.
75+
Turn on **Require provider credentials** to prevent Unified Billing fallback for third-party providers. Third-party provider requests must use credentials supplied with the request or stored on the gateway. Requests without applicable credentials return an HTTP `400` response instead of using Cloudflare-managed credentials.
7676

7777
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
7878

@@ -94,7 +94,7 @@ Send a [`PUT` request](/api/resources/ai_gateway/methods/update/) to update the
9494

9595
To require provider credentials for one third-party provider request, set the `cf-aig-no-wholesale` header to `true`. This header can prevent Unified Billing fallback but cannot relax the gateway setting. If **Require provider credentials** is on, setting the header to `false` has no effect.
9696

97-
Workers AI requests do not use provider credentials. When Unified Billing fallback is unavailable, Workers AI uses standard billing instead.
97+
Workers AI requests do not use provider credentials. This setting does not block these requests. They use standard Workers AI account billing, not AI Gateway Unified Billing.
9898

9999
## Use Unified Billing
100100

src/content/docs/ai-gateway/glossary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ Settings in AI Gateway can be configured at two levels: **Request** and **Gatewa
2525

2626
This hierarchy ensures consistent behavior, prioritizing the most specific configurations. Use request-level headers for fine-tuned control, and gateway settings for general defaults.
2727

28-
Some restrictive settings are additive. The `cf-aig-no-wholesale` header can require provider credentials for a request, but it cannot turn off **Require provider credentials** when that gateway setting is on.
28+
Some restrictive settings are additive. The `cf-aig-no-wholesale` header can require provider credentials for a third-party provider request, but it cannot turn off **Require provider credentials** when that gateway setting is on.

0 commit comments

Comments
 (0)