Is the cost of transferring images through base64 and URL the same?

I am not an expert, but…

You can call it correctly by replacing image_path in the code shown below with the path to your local image and api_key with your actual API key.