Cloud Vision API
Cloud Vision API is a readily available API (REST and RPC) that provides common vision detection features, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.
Authentication
| Method | Kind | Status | Details |
|---|---|---|---|
| API Key | api_key | available | — |
Call a tool
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "GOOGLE_CLOUD_VISION_FILES_ANNOTATE", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("GOOGLE_CLOUD_VISION_FILES_ANNOTATE", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute GOOGLE_CLOUD_VISION_FILES_ANNOTATE --data '{ }'Tool catalog
Available tools
23 callable operations
Vision Files AnnotateGOOGLE_CLOUD_VISION_FILES_ANNOTATEService that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.Connection2 scopes
Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Files AsyncBatchAnnotateGOOGLE_CLOUD_VISION_FILES_ASYNC_BATCH_ANNOTATERun asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).Connection2 scopes
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Images AnnotateGOOGLE_CLOUD_VISION_IMAGES_ANNOTATERun image detection and annotation for a batch of images.Connection2 scopes
Run image detection and annotation for a batch of images.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Images AsyncBatchAnnotateGOOGLE_CLOUD_VISION_IMAGES_ASYNC_BATCH_ANNOTATERun asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.Connection2 scopes
Run asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Locations Operations GetGOOGLE_CLOUD_VISION_LOCATIONS_OPERATIONS_GETGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.Connection2 scopes
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Operations CancelGOOGLE_CLOUD_VISION_OPERATIONS_CANCELStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.Connection2 scopes
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Files AnnotateGOOGLE_CLOUD_VISION_PROJECTS_FILES_ANNOTATEService that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.Connection2 scopes
Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Files AsyncBatchAnnotateGOOGLE_CLOUD_VISION_PROJECTS_FILES_ASYNC_BATCH_ANNOTATERun asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).Connection2 scopes
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Images AnnotateGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_IMAGES_ANNOTATERun image detection and annotation for a batch of images.Connection2 scopes
Run image detection and annotation for a batch of images.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Images AsyncBatchAnnotateGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_IMAGES_ASYNC_BATCH_ANNOTATERun asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.Connection2 scopes
Run asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets AddProductGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_ADD_PRODUCTAdds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.Connection2 scopes
Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets CreateGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_CREATECreates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.Connection2 scopes
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets ImportGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_IMPORTAsynchronous API that imports a list of reference images to specified product sets based on a list of image information. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri.Connection2 scopes
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets ListGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_LISTLists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.Connection2 scopes
Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets Products ListGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_PRODUCTS_LISTLists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.Connection2 scopes
Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations ProductSets RemoveProductGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCT_SETS_REMOVE_PRODUCTRemoves a Product from the specified ProductSet.Connection2 scopes
Removes a Product from the specified ProductSet.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products CreateGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_CREATECreates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.Connection2 scopes
Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products ListGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_LISTLists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.Connection2 scopes
Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products PatchGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_PATCHMakes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.Connection2 scopes
Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products PurgeGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_PURGEAsynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted. It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep the csv files used in ImportProductSets (if that was how you originally built the Product Set) before starting PurgeProducts, in case you need to re-import the data after deletion. If the plan is to purge all of the Products from a ProductSet and then re-use the empty ProductSet to re-import new Products into the empty ProductSet, you must wait until the PurgeProducts operation has finished for that ProductSet. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress)Connection2 scopes
Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted. It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep the csv files used in ImportProductSets (if that was how you originally built the Product Set) before starting PurgeProducts, in case you need to re-import the data after deletion. If the plan is to purge all of the Products from a ProductSet and then re-use the empty ProductSet to re-import new Products into the empty ProductSet, you must wait until the PurgeProducts operation has finished for that ProductSet. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress)
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products ReferenceImages CreateGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_REFERENCE_IMAGES_CREATECreates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.Connection2 scopes
Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products ReferenceImages DeleteGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_REFERENCE_IMAGES_DELETEPermanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. The actual image files are not deleted from Google Cloud Storage.Connection2 scopes
Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. The actual image files are not deleted from Google Cloud Storage.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags
Vision Projects Locations Products ReferenceImages ListGOOGLE_CLOUD_VISION_PROJECTS_LOCATIONS_PRODUCTS_REFERENCE_IMAGES_LISTLists reference images. Possible errors: * Returns NOT_FOUND if the parent product does not exist. * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1.Connection2 scopes
Lists reference images. Possible errors: * Returns NOT_FOUND if the parent product does not exist. * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1.
Authentication
Connected account requiredScopes
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-visionTags