Which one is correct?

1. I would rate the film at 9 on a scale of 1 to 10.
2. I would rate the film a 9 on a scale of 1 to 10.

Both are correct.