# US 2025/0166060 A1 · Generative artificial intelligence (ai) contextual credit metering

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0166060 A1
- Document ID: US20250166060A1
- Status: Published application
- Kind: A1
- Application number: 18/514,287
- Filed: 2023-11-20
- Published: 2025-05-22
- Earliest claimed: 2023-11-20
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Oleksandr Minaiev; Fermin Ordaz; Khoa Le; Na Cheng
- Web page: https://patentgrep.com/patent/US20250166060A1

## CPC

- G06Q 40/03: Credit; Loans; Processing thereof
- G06Q 30/04: Billing or invoicing
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

In some embodiments, a method stores a total number of generative credits for a generative artificial intelligence (AI) solution that is integrated with a software application in a database system. Usage data is tracked for a request to the generative artificial intelligence (AI) solution in the database system. The method determines a context from the usage data and retrieves a contextual pricing model for the generative AI solution using the context. The contextual pricing model translates a model specific charging policy to generative credits. The method applies the usage data to the contextual pricing model to translate the usage data to a number of generative credits. The number of generative credits for the generative AI solution is applied to an available number of generative credits of the total number of generative credits to generate a new available number of generative credits.

## Claims

### Claim 1

A method comprising:
storing a total number of generative credits for a generative artificial intelligence (AI) solution that is integrated with a software application in a database system;
tracking usage data of a request to the generative artificial intelligence (AI) solution in the database system;
determining a context from the usage data;
retrieving a contextual pricing model for the generative AI solution using the context, wherein the contextual pricing model translates a model specific charging policy to generative credits;
applying the usage data to the contextual pricing model to translate the usage data to a number of generative credits; and
applying the number of generative credits for the generative AI solution to an available number of generative credits of the total number of generative credits to generate a new available number of generative credits.

### Claim 2 (depends on 1)

The method of claim 1, wherein tracking the usage comprises:
receiving the request for the generative AI solution; and
tracking information for the request in the usage data based on a set of attributes.

### Claim 3 (depends on 2)

The method of claim 2, wherein an attribute in the set of attributes is used to determine the context.

### Claim 4 (depends on 2)

The method of claim 2, wherein an attribute in the set of attributes is used to determine the number of generative credits.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the context comprises:
determining an identifier for the generative AI solution from a plurality of generative AI solutions based on the usage data, wherein the identifier is used to retrieve the contextual pricing model.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the context comprises:
determining an identifier for an organization from a plurality of organizations that are using the database system based on the usage data, wherein the identifier is used to retrieve the contextual pricing model.

### Claim 7 (depends on 1)

The method of claim 1, wherein retrieving the contextual pricing model comprises:
selecting the contextual pricing model from a plurality of contextual pricing models based on a set of dimension values from the context.

### Claim 8 (depends on 7)

The method of claim 7, wherein the contextual pricing model is selected based on an identifier for the generative AI solution.

### Claim 9 (depends on 7)

The method of claim 7, wherein the contextual pricing model is selected based on an identifier for an organization that sent the request.

### Claim 10 (depends on 1)

The method of claim 1, wherein applying the usage data to the contextual pricing model to translate the usage to the number of generative credits comprises:
determining a number of tokens in the usage data; and
applying the number of tokens to the contextual pricing model to generate the number of generative credits.

### Claim 11 (depends on 10)

The method of claim 10, wherein the number of tokens are determined from a number of words in the request for the generative AI solution.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving an order for the total number of generative credits; and
creating an entitlement for the total number of generative credits, wherein the total number of generative credits is usable for accessing the generative AI solution.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
provisioning a license for access to the generative AI solution using the total number of generative credits.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
generating a SKU for the generative AI solution; and
adding a license to use the generative AI solution based on the total number of generative credits.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
adding a license to use another service other than the generative AI solution, wherein the other service is charged based on a per-user license.

### Claim 16

A non-transitory computer-readable storage medium having stored thereon computer executable instructions, which when executed by a computing device, cause the computing device to be configurable to cause:
storing a total number of generative credits for a generative artificial intelligence (AI) solution that is integrated with a software application in a database system;
tracking usage data of a request to the generative artificial intelligence (AI) solution in the database system;
determining a context from the usage data;
retrieving a contextual pricing model for the generative AI solution using the context, wherein the contextual pricing model translates a model specific charging policy to generative credits;
applying the usage data to the contextual pricing model to translate the usage data to a number of generative credits; and
applying the number of generative credits for the generative AI solution to an available number of generative credits of the total number of generative credits to generate a new available number of generative credits.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein applying the usage data to the contextual pricing model to translate the usage to the number of generative credits comprises:
determining a number of tokens in the usage data; and
applying the number of tokens to the contextual pricing model to generate the number of generative credits.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein retrieving the contextual pricing model comprises:
selecting the contextual pricing model from a plurality of contextual pricing models based on a set of dimension values from the context.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, receiving an order for the total number of generative credits; and
creating an entitlement for the total number of generative credits, wherein the total number of generative credits is usable for accessing the generative AI solution.

### Claim 20

An apparatus comprising:
one or more computer processors; and
a computer-readable storage medium comprising instructions for controlling the one or more computer processors to be configurable to cause:
storing a total number of generative credits for a generative artificial intelligence (AI) solution that is integrated with a software application in a database system;
tracking usage data of a request to the generative artificial intelligence (AI) solution in the database system;
determining a context from the usage data;
retrieving a contextual pricing model for the generative AI solution using the context, wherein the contextual pricing model translates a model specific charging policy to generative credits;
applying the usage data to the contextual pricing model to translate the usage data to a number of generative credits; and
applying the number of generative credits for the generative AI solution to an available number of generative credits of the total number of generative credits to generate a new available number of generative credits.
