AI Gateway returns "Forbidden" when streaming

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?

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

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