A social media influencer accused of filming the torture of a baby to gain money allegedly manufactured symptoms causing the child to have brain surgery, a magistrate has heard.