Three questions. You get the specific root cause, the exact commands, and the mistakes that waste people's time on that particular problem. It runs on a rules engine — no model call — so the same inputs always give the same answer, and it works instantly.
Loading diagnostics…
Answer what you know — partial answers still narrow it down. Nothing is sent anywhere except this site, and we store the answer pattern only, never anything identifying.
Run these three in order. The first one that fails is your actual problem.
# 1. Can you even reach the endpoint?
curl -sv "$BASE_URL/v1/models" 2>&1 | head -20
# 2. Does your credential authenticate? (try both header styles)
curl -s -o /dev/null -w 'bearer: %{http_code}\n' "$BASE_URL/v1/models" -H "Authorization: Bearer $TOKEN"
curl -s -o /dev/null -w 'x-api-key: %{http_code}\n' "$BASE_URL/v1/models" -H "x-api-key: $TOKEN"
# 3. Does the endpoint actually serve the model you're asking for?
curl -s "$BASE_URL/v1/models" -H "Authorization: Bearer $TOKEN" \
| python3 -c "import sys,json;[print(m['id']) for m in json.load(sys.stdin).get('data',[])]"
/v1 in your base URL.env | grep -i api looks right.