AI API route debugging checklist
When an AI API call fails, the tempting reaction is to switch models or providers. That is often premature. A large share of 401, 429, model_not_found, timeout, and confusing billing issues are route-evidence problems. Before replacing the model, check key scope, exact Base URL, model ID, error