I have been using Google Cloud Video Intelligence succesfully with my content with the following code for some time with my Django application running on Google App Engine Flex.
gs_video_path ='gs://'+bucket_name+'/'+videodata.video.path+videodata.video.name
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.enums.Feature.OBJECT_TRACKING]
operation = video_client.annotate_video(gs_video_path, features=features)
As explicitly stated by Google Cloud, each month the following is
Feature First 1000 minutes Minutes 1000+
Label detection Free $0.10 / minute
Shot detection Free $0.05 / minute, or free with Label detection
Explicit content detection Free $0.10 / minute
Speech transcription Free $0.048 / minute
Object tracking Free $0.15 / minute
Text detection Free $0.15 / minute
Logo recognition Free $0.15 / minute
Celebrity recognition Free $0.10 / minute
How can I programatically detect that the free first 1000 minutes has been used, or the current usage for these features at that instant ?