While both spellings are correct in different varieties of English, gray is the standard spelling in American English.