The Model Claude 3.5 Sonnet does not work with your current plan or api key

still getting this for claude model, whats the fix?
API working outside cursor too