Elon Musk’s xAI launches new API with function calling capability, available with Grok-beta AI models