Billing issue about Google Cloud Vision API

Viewed 41

Here I have a problem that I want to solve.

First at all, I follow this link to enable the feature "Recognize Text" in my Android App of my project. https://firebase.google.com/docs/ml/android/recognize-text

Follow the instructions, I use the Could Functions "annotateImage" to invoke the Cloud Vision API to recognize my image. Finally, all functions can be used normally. Then I have tracking the flow of each. These quantities of requests of Cloud Vision API and the calls of Cloud Functions look reasonable on my console.

The problem I having is ,why is the cost of "Text Detection Application" in my project so high? I only make "3227" requests. Calculated according to Cloud Vision pricing, The cost can't be that high, can it?

Every Cloud Vision API request I send is equivalent to the recognition of an image. In Cloud Vision pricing, only $1.50 per 1000 units(images). Is there something wrong with the request I sent? Or is it possible that my request caused it to have an infinite loop?

Any relevant technical advice would be greatly appreciated

Thanks a lot.

The Cloud Function I used "annotateImage"

The "annotateImage" function code I deployed

The history of Cloud Vision API in my project

The billing in my project.

0 Answers
Related