Skip to content

Commit 1a41df3

Browse files
authored
Update workersai.mdx
Make more clear how to use binding with Workers AI
1 parent 7c5a726 commit 1a41df3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/ai-gateway/providers/workersai.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar:
77

88
import { Render } from "~/components";
99

10-
Use AI Gateway for analytics, caching, and security on requests to [Workers AI](/workers-ai/).
10+
Use AI Gateway for analytics, caching, and security on requests to [Workers AI](/workers-ai/). Workers AI integrates seamlessly with AI Gateway, allowing you to execute AI inference via API requests or through an environment binding for Workers scripts. The binding simplifies the process by routing requests through your AI Gateway with minimal setup.
1111

1212
## REST API
1313

@@ -69,9 +69,9 @@ curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/workers-ai/v
6969
'
7070
```
7171

72-
### Worker
72+
## Workers Binding
7373

74-
To include an AI Gateway within your Worker, add the gateway as an object in your Workers AI request.
74+
You can integrate Workers AI with AI Gateway using an environment binding. To include an AI Gateway within your Worker, add the gateway as an object in your Workers AI request.
7575

7676
```ts
7777
export interface Env {

0 commit comments

Comments
 (0)