International audienceIn this paper we give a broad unified framework via group actions for constructing complexity functions of infinite words x = x 0 x 1 x 2 · · · ∈ A N with values in a finite set A. Factor complexity, Abelian complexity and cyclic complexity are all particular cases of this general construction. We consider infinite sequences of permutation groups ω = (G n) n≥1 with each G n ⊆ S n. Associated with every such sequence is a complexity function p ω,x : N → N which counts, for each length n, the number of equivalence classes of factors of x of length n under the action of G n on A n given by g * (u 1 u 2 · · · u n) = u g −1 (1) u g −1 (2) · · · u g −1 (n). Each choice of ω = (G n) n≥1 defines a unique complexity function wh...