Topkapı Palace's Imperial Gate leads to the palace's First Court, known as the Court of the Janissaries or the Parade Court. You can go through the gate for free, but will have to step through a metal detector and have your bags scanned.
Imperial Gate
Sultanahmet