Both cases occur.
1. OpenAI restrictions: OpenAI blocks access to ChatGPT in certain countries due to legal, regulatory, or business reasons. These include countries like China, Russia, North Korea, Iran, and Syria, among others.
2. Government restrictions: Some countries block access to OpenAI services themselves, either for censorship reasons or to promote local alternatives. For example, China heavily restricts many foreign AI services, even if OpenAI does not explicitly block them.
In some cases, both factors play a role.