[AI Gateway] Add REST API changelog#30899
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
Review complete. Posted 1 inline suggestion and added labels Summary: This PR adds a new AI Gateway changelog entry announcing the REST API on Issue flagged:
Everything else looks good: valid frontmatter, correct product reference, working internal links with trailing slashes, appropriate code block formatting, and no unescaped MDX characters. |
|
Preview URL: https://10d6bf3a.preview.developers.cloudflare.com Files with changes (up to 15)
|
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
| date: 2026-05-18 | ||
| --- | ||
|
|
||
| AI Gateway now has its own REST API on `api.cloudflare.com`. You can call any model — whether from OpenAI, Anthropic, Google, or hosted on Workers AI — through one unified API, using the same endpoints and authentication regardless of provider. Three endpoints are available: |
There was a problem hiding this comment.
AI Gateway now uses the AI REST API on api.cloudflare.com
(because it's not its own REST API)
|
|
||
| Every request through the REST API is routed through your account's default gateway, which is created automatically on first use. To route requests through a specific gateway, add the `cf-aig-gateway-id` header. | ||
|
|
||
| If you are already calling Workers AI models through the existing REST API, replace `/ai/run/@cf/{model}` with `/ai/run`, and move the model name into the request body with `"provider": "cloudflare"`. |
There was a problem hiding this comment.
we should clarify that this path will still work
Summary
Screenshots (optional)
Documentation checklist