Going public will allow OpenAI, valued at $852 billion, to inject more cash into its business as it moves to outcompete rivals in the AI arms race.