Temperature is actually a measurement of energy. Every molecule has mass and velocity, the energy of which is E=1/2mv2. To get picky it is the root mean square velocity as any population of molecules has a normal distribution of velocities. The units of temperature could then be thought of as joules per molar volume.
To simplify, temperature is the average speed of particles. How fast particles are moving depends on their kinetic energy. Though the definition would state it measures speed, it is actually the underlying amount of energy particles possess. But in any case, speed is a direct effect of this energy; so they can actually be synonymous in this case.