We have constructed a comprehensive grid of 680 metal line-blanketed, non-LTE, plane-parallel, hydrostatic model atmospheres for the basic parameters appropriate to O-type stars. The OSTAR2002 grid considers 12 values of effective temperatures, 27,500K<=Teff<=55,000 K with 2500 K steps, eight surface gravities, 3.0<=logg<=4.75 with 0.25 dex steps, and 10 chemical compositions, from metal-rich relative to the Sun to metal-free. The lower limit of logg for a given effective temperature is set by an approximate location of the Eddington limit. The selected chemical compositions have been chosen to cover a number of typical environments of massive stars: the Galactic center, the Magellanic Clouds, blue compact dwarf galaxies like I Zw 18, and galaxies at high redshifts. The paper contains a description of the OSTAR2002 grid and some illustrative examples and comparisons. The complete OSTAR2002 grid is available on-line.