How can flexible phasing be generated by a central pattern generator (CPG)? To address this question, we have extended an existing model of the leech heartbeat CPG's timing network to construct a model of the CPG core and explore how appropriate phasing is set up by parameter variation. Within the CPG, the phasing among premotor interneurons switches regularly between two well defined states β synchronous and peristaltic. To reproduce experimentally observed phasing, we varied the strength of inhibitory synaptic and excitatory electrical input from the timing network to follower premotor interneurons. Neither inhibitory nor electrical input alone was sufficient to produce proper phasing on both sides, but instead a balance was required. Our model suggests that the different phasing of the two sides arises because the inhibitory synapses and electrical coupling oppose one another on one side (peristaltic) and reinforce one another on the other (synchronous). Our search of parameter space defined by the strength of inhibitory synaptic and excitatory electrical input strength led to a CPG model that well approximates the experimentally observed phase relations. The strength values derived from this analysis constitute model predictions that we tested by measurements made in the living system. Further, variation of the intrinsic properties of follower interneurons showed that they too systematically influence phasing. We conclude that a combination of inhibitory synaptic and excitatory electrical input interacting with neuronal intrinsic properties can flexibly generate a variety of phase relations so that almost any phasing is possible