Goodness-of-fit test in a general model of nonlinear time series is considered. We present an asymptotically distribution-free test based on a random field of innovation martingales. Its consistency under any fixed alternative is also proved. Copyright 2009 Blackwell Publishing Ltd