We discover a realisation of the affine Lie superalgebra and of the exceptional affine superalgebra as vertex operator extensions of two algebras with ``dual'' levels (and an auxiliary level-1 algebra). The duality relation between the levels is . We construct the representation of on a sum of tensor products of , , and modules and decompose it into a direct sum over the spectral flow orbit. This decomposition gives rise to character identities, which we also derive. The extension of the construction to is traced to the properties of embeddings into and their relation with the dual pairs. Conversely, we show how the representations are constructed from representations.