# AI Gateway, Workers AI - Workers AI and AI Gateway unify model access and billing

Publisher-attributed story with a reviewed brief or permitted publisher paragraph. The original publisher is responsible for the linked reporting.

- Publisher: Cloudflare Developers
- Category: AI
- Original publication time: 2026-08-07T00:00:00Z
- First observed by NexusTechWire: 2026-10-01T15:54:34Z
- Original source: https://developers.cloudflare.com/changelog/post/2026-08-07-workers-ai-unified-billing/
- NexusTechWire record: https://nexustechwire.com/news/news-2d5e68ce98dbc08de3f7

## From the publisher

Workers AI and AI Gateway now provide a unified path for accessing models and managing inference traffic. Use the same AI binding and REST API to call models hosted on Workers AI or by supported third-party providers, with AI Gateway providing observability, logging, caching, security, and billing controls. Unified entrypoints and observability The AI binding supports both Workers AI and third-party models through env.AI.run(). The REST API provides shared /ai/ endpoints with Cloudflare authentication across providers. Route a Workers AI request through AI Gateway by specifying a gateway ID. Use default to automatically create a gateway on the first authenticated request, or specify an existing gateway to separate applications and workloads: const response = await env.AI.run( "@cf/zai-org/glm-5.2", \{ messages: \[\{ role: "user", content: "What is the capital of France?"

Source license: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Publisher excerpt shortened and converted to plain text. Original source license applies.

Read the full original: [Cloudflare Developers](https://developers.cloudflare.com/changelog/post/2026-08-07-workers-ai-unified-billing/)

This record does not reproduce the complete article or represent independent confirmation of every source claim.
