How much RAM & cpu for adding localai server

,

I am using next cloud 33 on Ubuntu 22 my question is if I add local AI in my next cloud server so how much RAM & cpu should I increase currently I have 12 GB ram and 4 core processor and we are only 2 to 3 users. My task are like general text queries and image generations etc

This server: