The Bou Inania de Fes Medersa is located in the old city. That is, in the medina. Specifically, in Talaa Kebira Street, just 2 minutes walk from one of the gates to the medina: the Bab Boujloud or Blue Gate of Fez.
The price to visit the Medersa Bou Inania is 10 dirham. (1$)
El Madrasa El Bouânania, Rue Talaa Seghira, Fes, Fès-Meknès 30, Morocco