I'm building a Next.js application in v0 that uses Vercel AI Gateway to generate AI content.
My requests repeatedly fail with HTTP 502 at the application level. After implementing sanitized diagnostics, I confirmed that the underlying error reports HTTP 403, categorized as upstream_http_error.
Environment
- Vercel Hobby plan
- v0 development preview
- Vercel AI SDK
generateText - Model:
alibaba/qwen-3-14b - Platform-injected Vercel OIDC authentication
maxRetries: 0
What I've already verified
- AI Gateway integration is connected.
- The model is listed in the public Gateway catalog and is eligible for free AI Gateway credit.
- Both the Model Allowlist and Provider Allowlist are disabled.
- The preview's decoded OIDC claims identify the expected team and project.
- The token was not expired when inspected.
- AI Gateway Logs show no requests for the checked time period.
- AI Gateway spending shows no recorded usage.
- Automated tests and the application build pass.
The application has made multiple unsuccessful generation attempts, and no messages were saved.
My question
What could cause AI Gateway to return HTTP 403 before a request appears in Gateway Logs? Is there a known OIDC authorization, Hobby-plan free-credit, or Gateway admission requirement that I should check?
Is there a secure way to obtain the specific reason for the rejection without making repeated paid AI requests?
Any guidance would be appreciated. I'm trying to resolve this without upgrading my plan or purchasing additional credits unnecessarily.