Data Loss Prevention API Pricing

This page provides pricing information for the Data Loss Prevention API. Prices on this page are listed in US dollars (USD), and are effective as of February 15, 2018. For pricing information from before February 15, 2018, see Previous pricing, below.

The DLP API charges for usage based on the following price sheet. A bill is sent out at the end of each billing cycle, listing previous usage and charges. Prices on this page are listed in US dollars (USD).

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Current pricing overview

The DLP API provides a set of features for inspecting data and transforming parts of it. Across these scenarios, we enable you to pay only for what you use, with no upfront commitments. The API supports the features summarized in the following table:

Feature Description
Inspection with predefined infoTypes Each predefined classifier detects a different data element such as names, phone numbers, email addresses, Social Security numbers, and more.
Inspection with custom infoTypes Allows custom defined dictionary to classify new elements or augment predefined infoTypes.
Image redaction Extracts text from images, classifies this text, and generates a new image with rectangular boxes masking any findings.
De-identification Transforms tabular or free-text data to mask, redact, or obfuscate by column, record, or infoType finding.
DLP API templates Provides the ability to create and manage DLP API configurations and options and persist and reuse them in the form of a template.
Risk analysis Scans and computes different privacy and statistical metrics on structured data in BigQuery.

Charges are based on the total bytes processed and the features requested. For example, inspection requests are based on the total bytes inspected and total number of predefined or custom infoTypes used. Requests that involve both inspection and transformation are charged for both features unless otherwise noted. For example, simple redaction of inspect findings—which includes transformations RedactConfig and ReplaceWithInfoTypeConfig, as well as the image.redact method for inspection (not transformation)—is not counted against the number of bytes transformed.

Units

Billing charges are resolved monthly according to how many units were processed and what tier they fall in. There are two types of units, and each unit type is calculated differently:

  • Inspection units are based on the total bytes inspected and the total number of predefined or custom infoTypes used for inspection. For more information about how inspection units are calculated and what constitutes an inspect action, see Inspection, below.
  • Transformation units are based on the number of bytes transformed. For more information about how transformation units are calculated and what constitutes a transform action, see Transformation, below.

Each type of unit is priced by its own schedule of tiers as detailed in the tables below. In each table, the tiers are given by ranges of giga-units (GU) and tera-units (TU). Within each range, the price listed is per GU. For example, for a given billing cycle:

  • First 10 GU of inspection is free
  • Inspection units are billed at $0.30 per GU for the number of units between 10 GU and 1 TU.

Inspection Units

Tier 1 Tier 2 Tier 3 Tier 4
First 10 GU Each additional GU up to 1 TU Each additional GU up to 10 TU Each additional GU over 10 TU
Free $0.30 $0.20 $0.10

Each API request that performs inspection reports the number of inspection units processed per request.

Transformation Units

Tier 1 Tier 2 Tier 3 Tier 4
First 1 GU Each additional GU up to 1 TU Each additional GU up to 10 TU Each additional GU over 10 TU
Free $3 $2 $1

Each API request that performs transformation reports the number of transformation units processed per request. Transformation includes those requests that perform de-identification and re-identification.

There is a minimum per request for each type of unit; when the units are below the minimum, they are rounded up to the minimum. Rounding is done per request. The methods for which the DLP API bills directly are listed in the following table, along with which types of units each method may be billed for:

API Method Inspection Transformation
projects.image.redact Yes No
projects.dataSource.inspect Yes No
projects.content.inspect Yes No
projects.content.deidentify Yes Yes
projects.content.reidentify Yes Yes

Inspection

Inspection units are based on the total bytes inspected and the total number of predefined or custom infoTypes used. Note that we use "KU" to stand for kilo-units. For a request that is billed for inspection units, these units are calculated by:

  1. Rounding up the number of distinct infoTypes requested for inspection to 10, if this number is less than 10.
  2. Multiplying this number by the number of bytes inspected.
  3. Rounding the result up to 10 KU, if it is less than 10 KU.

The inspect methods are the following:

Transformation

Transformation units are based on the number of bytes transformed. Note that we use "KU" to stand for kilo-units. For a request that is billed for transformation units, these units are calculated by:

  1. Taking the sum of the number of bytes transformed.
  2. Rounding up to 1 KU, only if this number is less than 1 KU and if no inspection units are to be billed for this request.

The transform methods are the following:

Risk Analysis

Risk analysis uses resources in BigQuery and charges will show up as BigQuery usage. The DLP API does not add any additional charges for risk analysis.

The risk analysis method is the following:

Examples

Per Request Unit Calculations

The following table details examples that show how units are calculated for various requests. Note that "KU" stands for kilo-units.

Example Bytes inspected InfoTypes configured for inspection Bytes transformed Resulting inspection units Resulting transformation
units
Inspection without round-up 1 KB 12 0 1 KB * 12 results in 12 KU 0
Inspection with infoType round-up 2 KB 8 0 2 KB * 10 results in 20 KU 0
Inspection with unit round-up 500 B 10 0 500 B * 10 rounds up to 10 KU 0
Transformation without round-up 0 0 2 KB 0 2 KU
Transformation with round-up 0 0 500 B 0 500 B rounds up to 1 KU
Transformation with inspection skips round-up 1 KB 10 500 B 1 KB * 10 results in 10 KU 500 B

Billing Charges per Cycle

The following table details examples that show how units are billed for within a billing cycle. Each example assumes the given inspection and transformation units are the total amount of units of their type for the billing cycle.

Example Inspection units Transformation units Resulting inspection charges Resulting transformation charges
Free usage through tier 1 9 GU 900 MU 9 GU * $0.0 / GU = $0 0.9 GU * $0.0 / GU = $0
Charged usage through tier 2 30 GU 4 GU (10 GU * $0.0 / GU) +
(20 GU * $0.3 / GU) = $6
(1 GU * $0.0 / GU) +
(3 GU * $3 / GU) = $9
Charged Usage through tier 3 1200 GU 1100 GU (10 GU * $0.0 / GU) +
(1000 GU * $0.3 / GU) + (190 GU * $0.2 / GU) = $338
(1 GU * $0.0 / GU) +
(1000 GU * $3 / GU) + (99 GU * $2 / GU) = $3198

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

End-to-end Example

The following table shows monthly costs for various quantities of requests and their configurations:

Example Number of requests per month Bytes inspected per request InfoTypes configured for inspection per request Bytes transformed per request Billing charges
Inspection only 2 million 1 KB 10 0 (1 KB * 10 = 10 KU)
* 2 million = 20 GU

(10 GU * $0.0 / GU) +
(10 GU * $0.3 / GU)
= $3
Transformation only 2 million 0 0 1 KB (1 KB = 1 KU)
* 2 million = 2 GU

(1 GU * $0.0 / GU) +
(1 GU * $3.0 / GU)
= $3
Inspection and transformation 2 million 10 KB 10 1 KB Inspect:
(10 KB * 10 = 100 KU)
* 2 million = 200 GU

(10 GU * $0.0 / GU) +
(190 GU * $0.3 / GU) = $57

Transform:
(1 KB = 1 KU)
* 2 million = 2 GU

(1 GU * $0.0 / GU) +
(1 GU * $3.0 / GU) = $3

Total:
$57 (inspection) +
$3 (transformation) = $60

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Previous pricing

These prices were effective from March 8, 2017 through February 14, 2018.

The DLP API charges for usage based on the following price sheet. A bill is sent out at the end of each billing cycle, listing previous usage and charges. Prices on this page are listed in US dollars (USD).

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Pricing overview

The DLP API pricing is per GB of data inspected or redacted. The rate you are charged at is determined by the feature used as well as the amount of data inspected or redacted.

When inspecting or redacting content, the aggregate size of items is rounded up to the next 10 KB. For example, if you have two items in your request whose data to inspect or redact sums to 189 KB, it is treated as a 190 KB object for billing purposes.

When inspecting storage, the size of the entire block of data is rounded to the next 10 KB. For example, if you have a bucket with 1.23 MB of data, it is treated as 1.3 MB of data for billing purposes.

Feature Data Inspected, Redacted, or De-identified
<1 GB 1 GB - 1 TB 1 TB - 10 TB >10 TB
Content inspection or redaction Free $10 per GB $5 per GB Contact us
Content de-identification Free $10 per GB $5 per GB Contact us
Storage inspection Free $6 per GB $3 per GB Contact us

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Pricing Example

Suppose you have the following usage of the DLP API:

  • 800,532 items inspected, each of which is 7 KB in size and sent 10 per request
  • 10,000 objects in Cloud Storage inspected, each of which is 180 KB in size.

Then the amount of data is calculated as follows:

  • 800,532 content inspection items, sent across 80,000 requests with 77 KB inspected each, rounded to 80 KB: 6 GB
  • For storage inspection, rounding occurs based on the size of the entire bucket. So, 10,000 objects of 180 KB: 1.8 GB

And your bill for the month is calculated as follows:

  • First GB free, plus 5 GB using content inspection at $10 per GB: $50
  • First GB free, plus 0.8 GB using storage inspection at $6 per GB: $4.80

Total cost: $74.80

Send feedback about...

Data Loss Prevention API