# US 2025/0148658 A1 · Content generation method and apparatus, electronic device, and storage medium

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

- Number: US 2025/0148658 A1
- Document ID: US20250148658A1
- Status: Published application
- Kind: A1
- Application number: 18/922,845
- Filed: 2024-10-22
- Published: 2025-05-08
- Earliest claimed: 2023-11-02
- Applicants: Douyin Vision Co., Ltd.
- Inventors: Lei WAN; Yihao LIU
- Web page: https://patentgrep.com/patent/US20250148658A1

## CPC

- G06T 11/00: Two-dimensional [2D] image generation
- G06F 40/30: Semantic analysis
- G06F 40/56: Natural language generation
- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present disclosure provides a content generation method and apparatus, an electronic device, and a storage medium. The method includes: obtaining first text content and an image prompt, where the first text content is used to describe content information of an image to be generated, and the image prompt is used to describe a generation requirement of the image to be generated; performing semantic analysis on the first text content and the image prompt based on a generative model to obtain a description keyword of the image to be generated corresponding to the first text content; and generating a target image corresponding to the first text content based on the description keyword of the image to be generated.

## Claims

### Claim 1

A content generation method, comprising:
obtaining first text content and an image prompt, wherein the first text content is configured to describe content information of an image to be generated, and the image prompt is configured to describe a generation requirement of the image to be generated;
performing semantic analysis on the first text content and the image prompt based on a generative model to obtain a description keyword of the image to be generated corresponding to the first text content; and
generating a target image corresponding to the first text content based on the description keyword of the image to be generated.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining first text content comprises:
obtaining second text content; and
segmenting the second text content by using a content segmentation model based on a shot prompt to obtain a plurality of first text content, each first text content corresponding to a second text content segment, wherein the shot prompt is configured to indicate a requirement for segmenting the second text content in a shot segment manner.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
separately generating a plurality of target images based on the description keyword corresponding to each first text content; and
determining an order of the plurality of target images based on the second text content and a preset rule, and generating a target video based on the order, wherein the target video comprises at least part of the target images.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the obtaining an image prompt comprises:
obtaining at least one of historical consumption data or hot spot data of a plurality of historical videos that are of a same topic type as the first text content or the second text content;
determining, based on at least one of the historical consumption data or the hot spot data, at least one of a target image description or a target video frame that meets a popularity condition for the topic type, wherein the target image description comprises at least one of the following: an image style, a target shot angle of view, a target subject description, a target person description, a target emotion description, a target action description, and a target background description; and
determining the image prompt based on at least one of the target image description or the target video frame.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the image prompt at least comprises an image description reference sample, wherein the image description reference sample comprises reference text content and a description keyword of a reference image to be generated corresponding to the reference text content.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the obtaining an image prompt further comprises:
determining a topic type of the first text content; and
at least one of:
determining a corresponding image description reference sample based on a user input image description for the topic type; or
determining a corresponding image description reference sample based on the topic type by using a constructed reference sample library or a sample generation model.

### Claim 7 (depends on 5)

The method according to claim 5, further comprising:
obtaining rewriting information of a user for the description keyword of the reference image to be generated in the image description reference sample; and
determining a corresponding image description reference sample based on the reference text content and the rewritten description keyword in the image description reference sample.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the image prompt further comprises: an image description dimension and a generation requirement for each image description dimension.

### Claim 9 (depends on 2)

The method according to claim 2, wherein the performing semantic analysis on the first text content and the image prompt based on a generative model to obtain a description keyword of the image to be generated corresponding to the first text content comprises:
determining context information of each first text content based on a segmentation order of each first text content in the second text content; and
performing semantic analysis on the first text content, the context information of the first text content, and the image prompt based on a generative model for each first text content to obtain the description keyword of the image to be generated corresponding to the first text content.

### Claim 10 (depends on 3)

The method according to claim 3, wherein the determining an order of the plurality of target images based on the second text content and a preset rule, and generating a target video based on the order comprises:
merging the target images corresponding to the plurality of first text content based on the segmentation order of each first text content in the second text content as the order of the target images to generate a target video.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the merging the target images corresponding to the plurality of first text content based on the segmentation order of each first text content in the second text content as the order of the target images to generate a target video comprises:
determining the segmentation order of each first text content based on a text number of each first text content in the second text content;
grouping the first text content and the target image corresponding to the first text content for each first text content to obtain a grouped target image corresponding to the first text content; and
merging the grouped target images corresponding to the plurality of first text content based on the segmentation order of the plurality of first text content as the order of the grouped target images to generate a target video.

### Claim 12 (depends on 3)

The method according to claim 3, wherein after the determining an order of the plurality of target images based on the second text content and a preset rule, and generating a target video based on the order, the method further comprises:
adding a target link to the target video, and publishing the target video on a target platform, to obtain consumption data of a user for the target link during playback of the target video, so as to update the image prompt for the topic type of the target video.

### Claim 13

An electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, the processor is configured to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the processor executes a content generation method, comprising:
obtaining first text content and an image prompt, wherein the first text content is configured to describe content information of an image to be generated, and the image prompt is configured to describe a generation requirement of the image to be generated;
performing semantic analysis on the first text content and the image prompt based on a generative model to obtain a description keyword of the image to be generated corresponding to the first text content; and
generating a target image corresponding to the first text content based on the description keyword of the image to be generated.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the obtaining first text content comprises:
obtaining second text content; and
segmenting the second text content by using a content segmentation model based on a shot prompt to obtain a plurality of first text content, each first text content corresponding to a second text content segment, wherein the shot prompt is configured to indicate a requirement for segmenting the second text content in a shot segment manner.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the processor further executes the step of:
separately generating a plurality of target images based on the description keyword corresponding to each first text content; and
determining an order of the plurality of target images based on the second text content and a preset rule, and generating a target video based on the order, wherein the target video comprises at least part of the target images.

### Claim 16 (depends on 13)

The electronic device according to claim 13, wherein the obtaining an image prompt comprises:
obtaining at least one of historical consumption data or hot spot data of a plurality of historical videos that are of a same topic type as the first text content or the second text content;
determining, based on at least one of the historical consumption data or the hot spot data, at least one of a target image description or a target video frame that meets a popularity condition for the topic type, wherein the target image description comprises at least one of the following: an image style, a target shot angle of view, a target subject description, a target person description, a target emotion description, a target action description, and a target background description; and
determining the image prompt based on at least one of the target image description or the target video frame.

### Claim 17

A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, causes the processor to perform a content generation method, comprising:
obtaining first text content and an image prompt, wherein the first text content is configured to describe content information of an image to be generated, and the image prompt is configured to describe a generation requirement of the image to be generated;
performing semantic analysis on the first text content and the image prompt based on a generative model to obtain a description keyword of the image to be generated corresponding to the first text content; and
generating a target image corresponding to the first text content based on the description keyword of the image to be generated.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the obtaining first text content comprises:
obtaining second text content; and
segmenting the second text content by using a content segmentation model based on a shot prompt to obtain a plurality of first text content, each first text content corresponding to a second text content segment, wherein the shot prompt is configured to indicate a requirement for segmenting the second text content in a shot segment manner.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the computer program, when executed by a processor, further causes the processor to perform the step of:
separately generating a plurality of target images based on the description keyword corresponding to each first text content; and
determining an order of the plurality of target images based on the second text content and a preset rule, and generating a target video based on the order, wherein the target video comprises at least part of the target images.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the obtaining an image prompt comprises:
obtaining at least one of historical consumption data or hot spot data of a plurality of historical videos that are of a same topic type as the first text content or the second text content;
determining, based on at least one of the historical consumption data or the hot spot data, at least one of a target image description or a target video frame that meets a popularity condition for the topic type, wherein the target image description comprises at least one of the following: an image style, a target shot angle of view, a target subject description, a target person description, a target emotion description, a target action description, and a target background description; and
determining the image prompt based on at least one of the target image description or the target video frame.
