Apple Intelligence Photo picking

IIRC, the new photos highlights videos pick your best photos using Apple Intelligence.

Is there an API or metadata available to use AI and get the best photo out of e.g. 5 similar photos?

Apple Intelligence Photo picking
 
 
Q