Coolness and “karma” are slightly different.
coolness = votes_given
karma = log(1 + coolness) - (log(1 + votes_received) / log(5))
Coolness is exposed in the API as you noticed. Karma is calculated on the client for final sorting.
Edited to fix coolness formula pointed out in comment below