# US 2026/0278026 A1 · Prompt caching in generative response engines

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

- Number: US 2026/0278026 A1
- Document ID: US20260278026A1
- Status: Published application
- Kind: A1
- Application number: 19/543,572
- Filed: 2026-02-18
- Published: 2026-09-17
- Earliest claimed: 2025-03-12
- Assignees: OpenAI OpCo, LLC
- Applicants: OpenAI OpCo, LLC.
- Inventors: Anushree Agrawal; Jeffrey Harris; Daryl Neubieser; Felipe Petroski Such
- Web page: https://patentgrep.com/patent/US20260278026A1

## CPC

- G06F 16/9574: {of access to content, e.g. by caching}
- G06F 16/33295: {in dialogue systems}
- G06Q 30/0239: {Online discounts or incentives}
- G06Q 30/04: Billing or invoicing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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

Disclosed are systems, apparatuses, processes, and computer-readable media for caching prompts for a generative response engine. The present technology includes receiving, by a cloud computing service, a request including a first prompt including a natural language task to perform, wherein the request include an access key for accessing the cloud computing service; identifying a generative response engine for generating a response to the natural language task based on contents of the natural language task; transmitting the first prompt and a hash to the generative response engine; and receiving the response to the natural language task from the generative response engine, the response including a number of input tokens.

## Claims

### Claim 1

A method, comprising:
receiving, by a cloud computing service, a first prompt including a natural language task to perform, wherein the first prompt includes at least one binary data portion;
generating a hash associated with a portion of the first prompt;
identifying a generative response engine for generating a response to the natural language task based on the hash;
transmitting the first prompt to the generative response engine; and
receiving the response to the natural language task from the generative response engine, the response including a number of binary tokens of the binary data portion that are activated based on a second prompt that preceded the first prompt.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating the hash based on distinct information associated with the first prompt, wherein the hash identifies the generative response engine.

### Claim 3 (depends on 2)

The method of claim 2, wherein the distinct information comprises at least one of a user identifier, an API key, or a user generated secret.

### Claim 4 (depends on 2)

The method of claim 2, wherein the portion of the first prompt comprises a prefix of the first prompt.

### Claim 5 (depends on 2)

The method of claim 2, wherein the generative response engine is configured to identify the second prompt corresponding with the first prompt using the hash, and wherein the generative response engine determines if activated tokens associated with the second prompt can be loaded for inference of the first prompt.

### Claim 6 (depends on 2)

The method of claim 2, wherein the generative response engine is configured to identify the second prompt corresponding with the first prompt using the hash, and wherein the generative response engine determines if cached encoder tokens associated with the second prompt can be loaded for inference of the first prompt.

### Claim 7 (depends on 2)

The method of claim 2, wherein an in-memory database is configured to store the distinct information mapped to previous prompts and a respective generative response engine associated with the previous prompts.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining a first number of input tokens corresponding to a first type, wherein the first type includes one of text, images, or audio;
determining a second number of input tokens corresponding to a second type different from the first type; and
determining a discount based on the first number of input tokens, a first credit associated with the first type, the second number of input tokens, and a second debit associated with the second type.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
generating and inserting information corresponding to the binary data portion into the first prompt, wherein the information corresponding to the binary data portion of the first prompt comprises a checksum or a hash of the binary data portion; and
determining another credit to apply to an account associated with an API key in the first prompt based on a number of text input tokens.

### Claim 10 (depends on 1)

The method of claim 1, wherein the generative response engine bypasses at least a portion of an activation function by reusing activated binary tokens stored in key-value (KV) cache of a transformer.

### Claim 11

A computing device, comprising:
at least one memory; and
at least one processor coupled to the at least one memory and configured to:
receive, by a cloud computing service, a first prompt including a natural language task to perform, wherein the first prompt includes at least one binary data portion;
generate a hash associated with a portion of the first prompt;
identify a generative response engine for generating a response to the natural language task based on the hash;
transmit the first prompt to the generative response engine; and
receive the response to the natural language task from the generative response engine, the response including a number of binary tokens of the binary data portion that are activated based on a second prompt that preceded the first prompt.

### Claim 12 (depends on 11)

The computing device of claim 11, wherein the at least one processor is configured to:
generate the hash based on distinct information associated with the first prompt, wherein the hash identifies the generative response engine.

### Claim 13 (depends on 12)

The computing device of claim 12, wherein the distinct information comprises at least one of a user identifier, an API key, or a user generated secret.

### Claim 14 (depends on 12)

The computing device of claim 12, wherein the portion of the first prompt comprises a prefix of the first prompt.

### Claim 15 (depends on 12)

The computing device of claim 12, wherein the generative response engine is configured to identify the second prompt corresponding with the first prompt using the hash, and wherein the generative response engine determines if activated tokens associated with the second prompt can be loaded for inference of the first prompt.

### Claim 16 (depends on 12)

The computing device of claim 12, wherein the generative response engine is configured to identify the second prompt corresponding with the first prompt using the hash, and wherein the generative response engine determines if cached encoder tokens associated with the second prompt can be loaded for inference of the first prompt.

### Claim 17 (depends on 12)

The computing device of claim 12, wherein the at least one memory is configured to store an in-memory database, wherein the in-memory database is configured to store the distinct information mapped to previous prompts and a respective generative response engine associated with the previous prompts.

### Claim 18 (depends on 11)

The computing device of claim 11, wherein the at least one processor is configured to:
determine a first number of input tokens corresponding to a first type, wherein the first type includes one of text, images, or audio;
determine a second number of input tokens corresponding to a second type different from the first type; and
determine a discount based on the first number of input tokens, a first credit associated with the first type, the second number of input tokens, and a second debit associated with the second type.

### Claim 19 (depends on 11)

The computing device of claim 11, wherein the at least one processor is configured to:
generate and insert information corresponding to the binary data portion into the first prompt, wherein the information corresponding to the binary data portion of the first prompt comprises a checksum or a hash of the binary data portion; and
determine another credit to apply to an account associated with an API key in the first prompt based on a number of text input tokens.

### Claim 20 (depends on 11)

The computing device of claim 11, wherein the generative response engine bypasses at least a portion of an activation function by reusing activated binary tokens stored in key-value (KV) cache of a transformer.
