As of 2023, you earn one credit for each $1640 in earnings, up to 4 credits per year.
https://www.ssa.gov/pubs/EN-05-10072.pdf