Confidence means confidence level from 0 to 1 that this is a human face. The probability depending on which method call you're using means the probability that for example two faces are the same person.

To expand, confidence in the sdk is cosine similarly, probability is computed by feeding that similarity figure into a sigmoid to normalize it into a more intuitive probability figure.