I am trying to anazlye an image and extract geo cordinates from the post

I am trying to anazlye an image and extract geo cordinates from the post, if I try to do it in playground of open ai https://platform.openai.com/playground/chat?models=gpt-4o-mini it works . It wont work consistently if I use api to do it.