I am using the Vercel AI Gateway on the hobby plan (with the $5 free credits). I have my debit card connected to billing and the AI Gateway playground (AI Playground | Compare top AI models side-by-side) works on my team, but the AI SDK / OpenAI endpoints return 403 Forbidden.
A day ago, this worked on my account, but now it is broken.
import os
from openai import OpenAI
client = OpenAI(
api_key='vck_mykey',
base_url='https://ai-gateway.vercel.sh/v1',
)
response = client.chat.completions.create(
model='deepseek/deepseek-v4-flash',
messages=[{'role': 'user', 'content': 'Tell me a joke about Python developers.'}],
stream=True,
)
for chunk in response:
content = chunk.choices[0].delta.content
if content:
print(content, end='', flush=True)
Output of above:
openai.PermissionDeniedError: Error code: 403 - {'error': {'message': 'Forbidden.', 'type': 'access_denied'}}