The ChatGPT maker filed counterclaims in California federal court on Friday, saying that Apple's employment practices were designed to "trap" employees.
Many US companies have become cautious about relations with China as the world's two biggest economies have clashed over trade tariffs and as US President Donald Trump seeks to promote manufacture in the United States rather than elsewhere.
"If not for its exclusive deal with OpenAI, Apple would have no reason to refrain from more prominently featuring the X app and the Grok app in its App Store," xAI said.
Elon Musk has warned Apple that he may take it to court, accusing the tech giant of making it “impossible” for apps to compete with ChatGPT-maker OpenAI in its App Store.