Model ids are matched exactly
The gateway looks the requested model up in the account mapping without folding case, so glm-5.1 and GLM-5.1 are not interchangeable. Copy ids from the models page. This is the single most common cause of a provider error that looks like an auth problem.