We pursue a robust approach to pricing and hedging in mathematical finance. We consider a continuous-time setting in which some underlying assets and options, with continuous price paths, are available for dynamic trading and a further set of European options, possibly with varying maturities, is available for static trading. Motivated by the notion of prediction set in Mykland (Ann. Stat. 31:1413Stat. 31: -1438Stat. 31: , 2003, we include in our setup modelling beliefs by allowing to specify a set of paths to be considered, e.g. superreplication of a contingent claim is required only for paths falling in the given set. Our framework thus interpolates between model-independent and model-specific settings and allows us to quantify the impact of making assumptions or gaining information. We obtain a general pricing-hedging duality result: the infimum over superhedging prices of an exotic option with payoff G is equal to the supremum of expectations of G under calibrated martingale measures. Our results include in particular the martingale optimal transport duality of Dolinsky and Soner (Probab. Theory Relat. Fields 160:391-427, 2014) and extend it to multiple dimensions, multiple maturities and beliefs which are invariant under time-changes. In a general setting with arbitrary beliefs and for a uniformly continuous G, the asserted duality holds between limiting values of perturbed problems.