[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# AI Gateway returns "Forbidden" when streaming

46 views · 0 likes · 3 posts


cwang (@cwang) · 2026-02-23

The HTTP response status is **200**, but the stream data contains an error: `{"type":"error","errorText":"Forbidden."}`.
So the request itself succeeds, yet the stream fails with “Forbidden” and the chat does not work.


**Context:**

* I use the free tier; the dashboard still shows remaining balance.
* It worked normally for a while and only started failing recently.
* I see the same behavior with both **ai-sdk v5 and v6**, so I suspect an **account or Gateway-side issue** rather than the SDK version.

What should I do to fix or debug this?

<!-- Current versus Expected behavior -->

<!-- Code, configuration, and steps that reproduce this issue -->

<!-- Project information (URL, framework, environment, project settings) -->


Amy Egan (@amyegan) · 2026-02-24

Is this happening for all models, or just specific ones?


cwang (@cwang) · 2026-02-25

@amyegan  Hi, I only tested openai/gpt-4o and deepseek/deepseek-r1, and both are listed in the model catalog.