I uploaded some images to the post via the API, why do only some images have the lightbox effect?

The problem still cannot be solved by rebuilding HTML.