You are not able to buy ChatGPT’s stocks because it is a private company and not listed in the stock market. But there is a solution to buying its stocks.
The Microsoft company is closely connected with ChatGPT, so buying Microsoft stock is to get a part of ChatGPT's stock.