Data processing method and system, and electronic device

By encrypting some of the data in the media generated prompt words and generating invisible target data, the risk of the data trading platform stealing seller prompt words is solved, and the effect of protecting sellers' interests is achieved.

WO2025044899A1PCT designated stage expired Publication Date: 2025-03-06HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/114005
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-01
Filing Date
2024-08-22
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

The risk of data trading platforms stealing media uploaded by sellers to generate prompt words, resulting in damage to sellers' interests.

Method used

By obtaining media generated prompt words, the target data is generated, including data obtained by encrypting at least part of the data in the media generated prompt words, ensuring that the prompt words uploaded by the seller are not visible on the data trading platform and reducing the risk of theft.

Benefits of technology

It effectively reduces the risk of data trading platforms stealing media to generate prompt words and protects the interests of sellers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024114005_06032025_PF_FP_ABST
    Figure CN2024114005_06032025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a data processing method and system, and an electronic device. The method comprises: firstly, acquiring media-generated prompts, wherein the media-generated prompts are used for generating artificial intelligence-generated content; and then generating target data, wherein the target data comprises data obtained by performing encryption on the basis of at least some data in the media-generated prompts. Subsequently, after a seller uploads the target data to a data transaction platform, the at least some data in the media-generated prompts is invisible to the data transaction platform, thereby reducing the risk of the data transaction platform stealing some or all of the media-generated prompts, and ensuring the interests of the seller.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, system and electronic equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 1, 2023, with application number 202311135678.6 and application name “Data Processing Method, System and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of data processing, and in particular to a data processing method, system, and electronic device. Background Art

[0003] Artificial Intelligence-Generated Content (AIGC) technology refers to the use of artificial intelligence to automate or assist in the creation of information to meet the personalized needs of users. For example, AIGC technology can be used in the fields of media, film, television, advertising, gaming, e-commerce, education, and healthcare to generate copy, knowledge graphs, and serve as text-based customer service. In the field of imaging, AIGC technology can be used for image editing, image generation, and image recognition. In the field of audio, AIGC technology can be used for music production and speech synthesis. In the field of video, AIGC technology can be used for video post-production and the creation of virtual humans.

[0004] Among them, Prompts can control and improve the quality and relevance of AIGC generated by AI models, enabling users to customize and specify the desired output, which makes AI development accessible to non-technical personnel; therefore, the Prompts trading platform that provides users with the ability to buy and sell Prompts of different AI models came into being.

[0005] However, when sellers upload Prompts to the Prompts trading platform for sale, Prompts may be stolen by the Prompts trading platform, which will harm the interests of the sellers.

[0006] Summary of the Invention

[0007] To solve the above technical problems, the present application provides a data processing method, system, and electronic device. The method can reduce the risk of data trading platforms stealing media uploaded by sellers to generate prompt words, thereby protecting the interests of sellers.

[0008] In a first aspect, embodiments of the present application provide a data processing method, comprising: first, obtaining media-generated prompt words, which are used to generate artificial intelligence-generated content; then, generating target data, which includes data encrypted based on at least a portion of the data in the media-generated prompt words. Subsequently, after the seller uploads the target data to a data trading platform, at least a portion of the data in the media-generated prompt words is invisible to the data trading platform, thereby reducing the risk of the data trading platform stealing part or all of the media-generated prompt words, thereby protecting the seller's interests.

[0009] Exemplarily, the media-generated prompt word can be used for a transaction, or in other words, the media-generated prompt word is a transaction object or data used for a transaction.

[0010] For example, media generation prompts, which can be called prompts or AI prompts for the media generation model, can be used to guide or inspire the media generation model to complete specific tasks. Prompts can help the media generation model better understand the input intent and respond accordingly, such as outputting media (i.e., AIGC). The media can include, but is not limited to, text, images, graphics, audio, and video, etc., and this application does not impose any restrictions on this.

[0011] Prompts can consist of multiple words, phrases, or short sentences. For example, if the media is an image, prompts could be: "Image quality, aperture, ISO (camera sensitivity), composition, object, pose, scene, weather." Specifically, examples include "UHD, F8-F16, ISO 100-ISO 400, horizontal composition, little girl, running, beach, sunset."

[0012] Exemplarily, the media generation model is an AI model (or a neural network or a neural network model). The media generation model can be used to generate media (the media referred to in this application may refer to AIGC). The types of media generation models may include, but are not limited to: image generation models, audio generation models, video generation models, text generation models, graphics generation models, etc., and this application does not limit this. For example, ChatGPT (a natural language processing tool driven by artificial intelligence technology), Midjourney (an AI drawing tool), etc.

[0013] Exemplarily, when the media-generated prompt word is an image-generating prompt word, the image-generating prompt word can be input into an image-generating model, and the image-generating model generates an image. Exemplarily, when the media-generated prompt word is an audio-generating prompt word, the audio-generating prompt word can be input into an audio-generating model, and the audio-generating model generates audio. Exemplarily, when the media-generated prompt word is a video-generating prompt word, the video-generating prompt word can be input into a video-generating model, and the video-generating model generates a video. Exemplarily, when the media-generated prompt word is a text-generating prompt word, the text-generating prompt word can be input into a text-generating model, and the text-generating model generates text. Exemplarily, when the media-generated prompt word is a graphic-generating prompt word, the graphic-generating prompt word can be input into a graphic-generating model, and the graphic-generating model generates a graphic.

[0014] For example, assuming the image generation model is Midjourney, the image generation prompt words can be: "UHD, F8~F16, ISO 100~ISO 400, horizontal line composition, little girl, running, beach, sunset", then Midjourney can generate an image of a little girl running on the beach at sunset.

[0015] In one possible approach, the data used for encryption in the media-generated prompt words may be data of relatively high value, which requires certain professional knowledge to generate; for example, the "F8-F16, ISO 100-ISO 400, horizontal line composition" in the above example.

[0016] According to the first aspect, the target data further includes a usage strategy for media generation prompt words.

[0017] The usage strategy of media-generated prompt words can refer to the rules for using media-generated prompt words, or can be understood as the restrictions on the use of media-generated prompt words. In this way, the conditions for buyers to use media-generated prompt words can be effectively restricted, further ensuring the safety of media-generated prompt words and the interests of sellers.

[0018] For example, a policy is used.

[0019] According to the first aspect, or any implementation of the first aspect above, the target data also includes at least one of the following: a verification identifier of the media-generated prompt word, an identity identifier or a digital signature of the target data; wherein the digital signature is determined based on data obtained by encrypting at least part of the data in the media-generated prompt word.

[0020] The verification flag of the media-generated prompt word is used to indicate whether the media-generated prompt word has passed verification. In other words, the verification flag of the media-generated prompt word can be used to describe the authenticity of the media-generated prompt word. For example, a verification flag of "1" indicates that the media-generated prompt word has passed verification, which can be understood as the media-generated prompt word being true; a verification flag of "0" indicates that the media-generated prompt word has failed verification, which can be understood as the media-generated prompt word being false. This way, after the seller uploads the target data to the data trading platform, it is convenient for the buyer and the data trading platform to determine the authenticity of the media-generated prompt word based on the verification flag of the media-generated prompt word.

[0021] Among them, the key used to encrypt at least part of the data in the media-generated prompt word can be associated with the identity identifier of the target data; in this way, after a subsequent buyer successfully purchases the media-generated prompt word (or successfully purchases the target data), the key can be obtained based on the identity identifier of the target data to decrypt the encrypted data in the target data to obtain at least part of the data in the media-generated prompt word.

[0022] According to the first aspect, or any implementation of the first aspect above, the target data further includes at least one of the following: a model identifier of a media generation model, model version information of the media generation model, or a media sample, where the media sample is generated by the media generation model based on the media generation prompt. In this way, the data trading platform server can obtain the model identifier and model version information of the media generation model from the target data and display them on the data trading platform client, allowing buyers to determine whether the media generation prompt can be applied to the media generation model they desire. Furthermore, the data trading platform server can obtain the media sample from the target data and display it on the data trading platform client, allowing buyers to determine whether the media generated using the media generation prompt meets their desired effect.

[0023] According to the first aspect, or any implementation of the first aspect above, at least part of the data in the media generation prompt word is associated with the style of the media generated by the media generation model.

[0024] The at least part of the data in the media-generated prompt word may refer to data used for encryption in the media-generated prompt word.

[0025] For example, the media-generated prompt words are: "UHD, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset"; the data used for encryption in the media-generated prompt words can be "UHD, F8-F16, ISO 100-ISO 400, horizontal line composition".

[0026] According to the first aspect, or any implementation of the first aspect above, the target data further includes data in the media generation prompt that is not used for encryption, and the data that is not used for encryption is associated with content of the media generated by the media generation model.

[0027] For example, the media-generated prompt words are: "UHD, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, beach, sunset"; then the data in the media-generated prompt words that is not used for encryption can be "little girl, running, beach, sunset".

[0028] Illustratively, the usage strategy of the media-generated prompt word includes at least one of the following: the number of times the media-generated prompt word is used, the area in which the media-generated prompt word is used, or the number of transactions of the media-generated prompt word.

[0029] For example, when the number of transactions of a media-generated prompt word is 1, the buyer can be prevented from reselling the media-generated prompt word; when the number of uses of a media-generated prompt word is 10, it will become invalid after the buyer uses the media-generated prompt word 10 times; when the use area of ​​the media-generated prompt word is country A, the buyer is prevented from using the media-generated prompt word across borders.

[0030] It should be understood that the strategy for using media generation prompt words may also include other strategies, which are not limited in this application.

[0031] According to the first aspect, or any implementation of the first aspect above, the verification identifier of the media generation prompt word is used to indicate whether the media generation prompt word has passed the verification of the media generation model.

[0032] According to the first aspect, or any implementation of the first aspect above, the method further includes: encapsulating data obtained by encrypting at least part of the data in the media-generated prompt word, a usage strategy for the media-generated prompt word, and at least one of a verification identifier of the media-generated prompt word, an identity identifier of the target data, or a digital signature to obtain a magic box.

[0033] For example, the magic box is the target data.

[0034] For example, the magic box is MC (Magic Chest).

[0035] In one possible approach, the MC can be a software package that includes data not used for encryption in the media-generated prompt, data encrypted based on at least a portion of the data in the media-generated prompt, a verification identifier for the media-generated prompt, an identifier for the target data, a digital signature, a usage policy for the media-generated prompt, a model identifier for the media-generated model, model version information for the media-generated model, and sample images. This reduces costs and facilitates timely access to the MC for buyers, improving their experience.

[0036] In one possible implementation, the MC can be a hardware module that encapsulates data such as unencrypted data from the media-generated prompt, data encrypted from at least a portion of the data in the media-generated prompt, a verification identifier for the media-generated prompt, the identity of the target data, a digital signature, a usage policy for the media-generated prompt, a model identifier for the media-generated model, model version information for the media-generated model, and sample images. While this approach increases costs, it can improve the security of the media-generated prompt and protect sellers' interests. It is particularly suitable for high-value media-generated prompts (e.g., those used to generate 3D game graphics).

[0037] According to the first aspect, or any implementation of the first aspect above, the method further includes: obtaining a key; and using the key to encrypt at least part of the data in the media-generated prompt word.

[0038] Exemplarily, the key may be a symmetric key, that is, the encrypting party and the decrypting party use the same key for encryption and decryption.

[0039] According to the first aspect, or any implementation of the first aspect above, data obtained by encrypting at least a portion of data in the prompt word generated based on the media is processed to obtain a digital signature.

[0040] In one possible approach, a digital signature algorithm is used to sign data obtained by encrypting at least part of the data in the media-generated prompt word to obtain a digital signature; in this way, at least part of the data in the media-generated prompt word can be prevented from being forged.

[0041] In one possible approach, a digital signature algorithm is used to sign at least one of the following: a verification identifier for a media-generated prompt word, an identity identifier for target data, or a usage policy for a media-generated prompt word; and data encrypted based on at least a portion of the data in the media-generated prompt word, thereby obtaining a digital signature. This prevents the verification identifier for a media-generated prompt word, the identity identifier for target data, or a usage policy for a media-generated prompt word; and data encrypted based on at least a portion of the data in the media-generated prompt word from being forged.

[0042] It should be noted that the first aspect and any implementation of the first aspect can be executed by a Magic Chest Generator (MCG). The MCG can be an independent server or a software module or hardware module deployed on a server, and this application does not impose any restrictions on this.

[0043] In a second aspect, an embodiment of the present application provides a data processing method, which includes: first, obtaining target data and obtaining a key, the target data including data encrypted based on at least part of the data in the media-generated prompt words, and the media-generated prompt words are used to generate artificial intelligence-generated content; then, using the key, decrypting the data encrypted based on at least part of the data in the media-generated prompt words to obtain at least part of the data in the media-generated prompt words.

[0044] Among them, the data processing method of the second aspect can be applied to the buyer's terminal device; after the buyer's terminal device purchases the target data from the data trading platform, the target data can be obtained from the data trading platform, and the key can be obtained from the MCG; then, the key is used to decrypt to obtain at least part of the data in the media generation prompt words used to generate AIGC.

[0045] According to the second aspect, the method further includes: obtaining artificial intelligence generated content based on at least part of the data in the media generated prompt words.

[0046] Exemplarily, the buyer's terminal device can generate AIGC locally based on at least part of the data in the media-generated prompt word; or, instruct the platform of the media generation model to generate AIGC based on at least part of the data in the media-generated prompt word and return the AIGC.

[0047] According to the second aspect, or any implementation of the second aspect above, the target data further includes an identity identifier of the target data, and obtaining the key includes: obtaining the key according to the identity identifier of the target data.

[0048] According to the second aspect, or any implementation of the second aspect above, the target data also includes a usage strategy for media-generated prompt words; the method also includes: judging whether the use of media-generated prompt words is allowed based on the usage strategy for media-generated prompt words; when it is determined that the use of media-generated prompt words is allowed, obtaining artificial intelligence-generated content based on at least part of the data in the media-generated prompt words.

[0049] According to the second aspect, or any implementation of the second aspect above, the target data also includes data in the media-generated prompt words that is not used for encryption, at least a portion of the data in the media-generated prompt words is associated with the style of the media generated by the media generation model, and the data in the media-generated prompt words that is not used for encryption is associated with the content of the media generated by the media generation model; the method further includes: modifying the data in the media-generated prompt words that is not used for encryption to obtain modified data; and obtaining AI-generated content based on at least a portion of the data in the media-generated prompt words, including: obtaining AI-generated content based on the modified data and at least a portion of the data in the media-generated prompt words. In this way, buyers can modify the data in the media-generated prompt words that is not used for encryption according to their own needs, thereby generating media that matches their needs.

[0050] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0051] It should be noted that the second aspect and any implementation of the second aspect can be executed by the buyer's terminal device.

[0052] In a third aspect, an embodiment of the present application provides a data processing method, which includes: sending media generation prompt words to a magic box generator, where the media generation prompt words are used to generate artificial intelligence-generated content; receiving target data sent by the magic box generator, where the target data includes data encrypted based on at least part of the data in the media generation prompt words.

[0053] According to the third aspect, the method further includes: providing the target data to the data trading platform.

[0054] It should be noted that the third aspect and any implementation of the third aspect can be executed by the seller's terminal device.

[0055] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0056] In a fourth aspect, an embodiment of the present application provides a data processing system, the system comprising: a first terminal device and a magic box generator;

[0057] The first terminal device is configured to send a media generation prompt word to the magic box generator, the media generation prompt word being used to generate artificial intelligence-generated content, and receive target data sent by the magic box generator;

[0058] The magic box generator is used to receive the media generation prompt word sent by the first terminal device, and obtain target data according to the media generation prompt word, where the target data includes data encrypted based on at least part of the data in the media generation prompt word.

[0059] In one possible embodiment, the system further includes a data trading platform, and the first terminal device is further configured to provide target data to the data trading platform.

[0060] In one possible embodiment, the system further includes a second terminal device, and the second terminal device is used to obtain target data from the data trading platform.

[0061] In one possible embodiment, the second terminal device is further configured to obtain a key from the magic box generator; and decrypt data encrypted based on at least part of the data in the media-generated prompt word according to the key to obtain at least part of the data in the media-generated prompt word.

[0062] The first terminal device may be a terminal device of the seller, and the second terminal device may be a terminal device of the buyer. In this way, the seller can upload the target data to the data trading platform for sale, and the buyer can purchase the target data from the data trading platform.

[0063] It should be noted that when MCG is an independent server, the server of MCG and the data trading platform can be the same server or different servers, and this application does not impose any restrictions on this. When MCG is a software module or hardware module deployed on a server, MCG can be deployed on the server of the data trading platform or on servers other than the server of the data trading platform, and this application does not impose any restrictions on this.

[0064] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect (or the second aspect) and any implementation of the first aspect (or the second aspect), respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect (or the second aspect) and any implementation of the first aspect (or the second aspect), and will not be repeated here.

[0065] In a fifth aspect, an embodiment of the present application provides a data processing device, the data processing device comprising:

[0066] A prompt word acquisition module is used to obtain media-generated prompt words, which are used to generate AI-generated content;

[0067] The data generation module is used to generate target data, where the target data includes data encrypted based on at least part of the data in the media-generated prompt word.

[0068] It should be understood that the data processing device of the fifth aspect can execute the first aspect and any implementation method of the first aspect, which will not be repeated here.

[0069] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0070] In a sixth aspect, an embodiment of the present application provides a data processing device, the data processing device comprising:

[0071] a data acquisition module, configured to acquire target data and a key, wherein the target data comprises data encrypted based on at least a portion of data in a media-generated prompt word, the media-generated prompt word being used to generate AI-generated content;

[0072] The decryption module is used to decrypt data obtained by encrypting at least part of the data in the media-generated prompt word using a key to obtain at least part of the data in the media-generated prompt word.

[0073] It should be understood that the data processing device of the sixth aspect can execute the second aspect and any implementation method of the second aspect, which will not be repeated here.

[0074] The sixth aspect and any implementation of the sixth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0075] In a seventh aspect, an embodiment of the present application provides a data processing device, the data processing device comprising:

[0076] A sending module is used to send media generation prompt words to the magic box generator, and the media generation prompt words are used to generate artificial intelligence generated content;

[0077] The receiving module is used to receive target data sent by the magic box generator, where the target data includes data encrypted based on at least part of the data in the prompt words generated based on the media.

[0078] The seventh aspect and any implementation of the seventh aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0079] In an eighth aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the data processing method of the first aspect or any possible implementation of the first aspect.

[0080] The eighth aspect and any implementation of the eighth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0081] In the ninth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the data processing method in the second aspect or any possible implementation of the second aspect.

[0082] The ninth aspect and any implementation of the ninth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0083] In the tenth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the data processing method in the third aspect or any possible implementation of the third aspect.

[0084] The tenth aspect and any implementation of the tenth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0085] In the eleventh aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the data processing method in the first aspect or any possible implementation of the first aspect.

[0086] The eleventh aspect and any implementation of the eleventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0087] In the twelfth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the data processing method in the second aspect or any possible implementation of the second aspect.

[0088] The twelfth aspect and any implementation of the twelfth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0089] In the thirteenth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the data processing method in the third aspect or any possible implementation of the third aspect.

[0090] The thirteenth aspect and any implementation of the thirteenth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the thirteenth aspect and any implementation of the thirteenth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0091] In the fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or processor, it enables the computer or processor to execute the data processing method in the first aspect or any possible implementation of the first aspect.

[0092] The fourteenth aspect and any implementation of the fourteenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourteenth aspect and any implementation of the fourteenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0093] In the fifteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or processor, it enables the computer or processor to execute the data processing method in the second aspect or any possible implementation of the second aspect.

[0094] The fifteenth aspect and any implementation of the fifteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fifteenth aspect and any implementation of the fifteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0095] In the sixteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, it enables the computer or the processor to execute the data processing method in the third aspect or any possible implementation of the third aspect.

[0096] The sixteenth aspect and any implementation of the sixteenth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the sixteenth aspect and any implementation of the sixteenth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0097] In the seventeenth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the data processing method in the first aspect or any possible implementation of the first aspect.

[0098] The seventeenth aspect and any implementation of the seventeenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the seventeenth aspect and any implementation of the seventeenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0099] In the eighteenth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the data processing method in the second aspect or any possible implementation of the second aspect.

[0100] The eighteenth aspect and any implementation of the eighteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the eighteenth aspect and any implementation of the eighteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0101] In the nineteenth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the data processing method in the third aspect or any possible implementation of the third aspect.

[0102] The nineteenth aspect and any implementation of the nineteenth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the nineteenth aspect and any implementation of the nineteenth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0103] FIG1A is a schematic diagram illustrating an exemplary application scenario;

[0104] FIG1B is a schematic diagram illustrating an exemplary application scenario;

[0105] FIG1C is a schematic diagram showing an exemplary process of generating target data;

[0106] FIG2A is a schematic diagram illustrating an exemplary data generation process;

[0107] FIG2B is a schematic diagram showing exemplary target data;

[0108] FIG2C is a schematic diagram showing the visibility of target data;

[0109] FIG2D is a schematic diagram showing exemplary target data;

[0110] FIG3A is a schematic diagram illustrating an exemplary data generation process;

[0111] FIG3B is a schematic diagram showing exemplary target data;

[0112] FIG4A is a schematic diagram illustrating an exemplary data generation process;

[0113] FIG4B is a schematic diagram illustrating an exemplary second Hash value generation process;

[0114] FIG4C is a schematic diagram illustrating an exemplary second Hash value generation process;

[0115] FIG4D is a schematic structural diagram of an MC;

[0116] FIG4E is a schematic diagram showing an exemplary visibility and resale of target data;

[0117] FIG5 is a schematic diagram illustrating an exemplary data processing process;

[0118] FIG6 is a schematic diagram illustrating an exemplary data processing process;

[0119] FIG7 is a schematic diagram illustrating an exemplary data processing process;

[0120] FIG8 is a schematic diagram of an exemplary data processing device;

[0121] FIG9 is a schematic diagram of an exemplary data processing device;

[0122] FIG10 is a schematic diagram of an exemplary data processing device;

[0123] FIG11 is a schematic structural diagram of an exemplary device. DETAILED DESCRIPTION

[0124] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0125] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0126] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0127] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0128] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0129] To facilitate understanding, some of the professional terms mentioned in the embodiments of this application are first introduced.

[0130] 1. Media Generation Model

[0131] The media generation model is an AI model (or neural network or neural network model). The media generation model of this application can be implemented by at least one of the following neural networks: deep neural networks (DNN), convolutional neural networks (CNN), recurrent neural networks (RNN), residual networks, neural networks using transformer models, or other neural networks, etc., and this application does not limit this.

[0132] The media generation model can be used to generate media (the media referred to in this application may refer to AIGC). The types of media generation models may include, but are not limited to: image generation models, audio generation models, video generation models, text generation models, graphics generation models, etc., and this application does not limit them. For example, ChatGPT (an artificial intelligence technology-driven natural language processing tool), Midjourney (an AI drawing tool), etc.

[0133] 2. Media-generated prompts

[0134] Media generation prompts, also known as prompts for media generation models or AI prompts, can be used to guide or inspire media generation models to complete specific tasks. Prompts can help media generation models better understand the intent of input and respond accordingly, such as outputting media (also known as AIGC).

[0135] Prompts can consist of multiple words, phrases, or short sentences. For example, if the media is an image, prompts could be: "Image quality, aperture, ISO (camera sensitivity), composition, object, pose, scene, weather." Specifically, examples include "UHD, F8-F16, ISO 100-ISO 400, horizontal composition, little girl, running, beach, sunset."

[0136] 3. Media

[0137] Media can also be referred to as media content or digital content. Digital content refers to various types of content, such as text, images, and sounds, that exist in digital form. It can be stored on digital media such as CDs and hard drives and distributed through networks and other means. Digital content is the overall product or service that integrates images, text, audio, and other content through digital technology. It is the product of the integration of digital media technology and cultural creativity.

[0138] Digital technology is a science and technology that has grown alongside computers. It uses specialized equipment to convert various types of information, including images, text, sound, and video, into binary digits (0s and 1s) that computers can interpret, allowing for computation, processing, storage, transmission, dissemination, and restoration. Because computers are used to encode, compress, and decode information during computation and storage, digital technology is also known as digital technology or computer digital technology. It is also called digital control technology.

[0139] The media may include but is not limited to text, images, graphics, audio, and video, etc., which are not limited in this application.

[0140] Exemplarily, when the media-generated prompt word is an image-generating prompt word, the image-generating prompt word can be input into an image-generating model, and the image-generating model generates an image. Exemplarily, when the media-generated prompt word is an audio-generating prompt word, the audio-generating prompt word can be input into an audio-generating model, and the audio-generating model generates audio. Exemplarily, when the media-generated prompt word is a video-generating prompt word, the video-generating prompt word can be input into a video-generating model, and the video-generating model generates a video. Exemplarily, when the media-generated prompt word is a text-generating prompt word, the text-generating prompt word can be input into a text-generating model, and the text-generating model generates text. Exemplarily, when the media-generated prompt word is a graphic-generating prompt word, the graphic-generating prompt word can be input into a graphic-generating model, and the graphic-generating model generates a graphic.

[0141] For example, assuming the image generation model is Midjourney, the image generation prompt words can be: "UHD, F8~F16, ISO 100~ISO 400, horizontal line composition, little girl, running, beach, sunset", then Midjourney can generate an image of a little girl running on the beach at sunset.

[0142] Figure 1A is a schematic diagram of an exemplary application scenario. Figure 1A shows a data transaction scenario, in which the transaction object is a media generation prompt word.

[0143] FIG1A(1) is a schematic diagram illustrating an exemplary data processing process.

[0144] FIG1A(2) is a schematic diagram of a client interface of an exemplary data trading platform.

[0145] 1A(2), illustratively, the main interface of the data trading platform may include one or more controls, including but not limited to: an edit box, a search option, a selling option, a transaction object option, etc.; wherein, the transaction object option may include but not limited to: a purchase option, an image, a description text (such as "×××" in FIG1A(2)), a price (such as "¥**" in FIG1A(2)), etc., and this application does not impose any restrictions on this.

[0146] It should be noted that the image and descriptive text in the transaction object option can be associated information of the media-generated prompt word, which helps buyers understand the purpose of the media-generated prompt word and other information; for example, the image is a sample (or called a sample image) generated by the media generation model based on the media-generated prompt word, and the text is the information in the media-generated prompt word used to describe the content contained in the sample image (such as "little girl, running, seaside, sunset" in the above example).

[0147] It should be understood that the transaction object option may also include audio, video, etc., which is not limited in this application. In addition, the transaction object option may include at least one of an image, a description text, a video, or an audio.

[0148] Referring to FIG1A(2), for example, when a seller needs to sell a media generation prompt word, the seller can open the client of the data trading platform on a personal computer (PC) (i.e., PC1) and enter the main interface of the data trading platform; then, the seller can click on the selling option. Correspondingly, the client of the data trading platform can respond to the user operation and enter the selling interface; after the seller enters the media generation prompt word and the selling price and other information in the selling interface, the client of the data trading platform can send the media generation prompt word and the selling price and other information to the server of the data trading platform, as shown in FIG1A(1).

[0149] For example, after receiving the media generation prompt word and the selling price, the server of the data trading platform can add a transaction object option corresponding to the media generation prompt word sold by the seller in the main interface of the data trading platform (as shown in the gray dotted box in Figure 1A (2)). In this way, after the buyer opens the client of the data trading platform on PC2, he can view the transaction object option corresponding to the media generation prompt word sold by the seller in the main interface of the data trading platform.

[0150] For example, when a buyer wishes to purchase a media generation prompt, they can click the purchase option in the transaction object options corresponding to the media generation prompt. At this point, the data trading platform client can respond to the buyer's operation and enter the payment interface. After the data trading platform server confirms the buyer's payment, it can send the purchased media generation prompt to PC 2. In this way, the buyer can obtain the purchased media generation prompt.

[0151] It should be understood that PC1 is only an example of a terminal device used by the seller in this application, and PC2 is only an example of a terminal device used by the buyer. The terminal devices used by the seller and the terminal devices used by the buyer may include but are not limited to mobile phones, tablets, wearable devices, etc., and this application does not impose any restrictions on this.

[0152] Figure 1B is a schematic diagram of an exemplary application scenario. Figure 1B shows a data transaction scenario, in which the transaction object is a media generation prompt word.

[0153] For example, to reduce the risk of a data trading platform stealing the media-generated prompt words uploaded by sellers, target data can be generated based on the media-generated prompt words, where the target data includes data encrypted based on at least a portion of the data in the media-generated prompt words; the target data is then uploaded to the data trading platform. After the buyer successfully pays, the data trading platform's server sends the target data to the buyer; the buyer can then obtain the seller's encrypted media-generated prompt word key based on the purchase voucher (such as a receipt) to decrypt the data encrypted based on at least a portion of the data in the media-generated prompt words in the target data, thereby obtaining at least a portion of the data in the media-generated prompt words. In this way, at least a portion of the data in the media-generated prompt words is invisible to the data trading platform, thereby reducing the risk of the data trading platform stealing part of the media-generated prompt words or the entire media-generated prompt words, thereby protecting the interests of the seller.

[0154] FIG1C is a schematic diagram showing an exemplary process of generating target data.

[0155] Referring to Figure 1C , PC 1 can send a media generation prompt for a desired transaction to a Magic Chest Generator (MCG), which then generates target data. The MCG can then send the target data to PC 1. This allows the seller to obtain the target data and subsequently upload it to the data trading platform for sale via PC 1.

[0156] It should be noted that MCG can be an independent server or a software module or hardware module deployed on a server, and this application does not impose any restrictions on this.

[0157] It should also be noted that when MCG is an independent server, the server of MCG and the data trading platform can be the same server or different servers, and this application does not impose any restrictions on this. When MCG is a software module or hardware module deployed on a server, MCG can be deployed on the server of the data trading platform or on a server other than the server of the data trading platform, and this application does not impose any restrictions on this.

[0158] It should be noted that the data trading platform may also be called PMALL (Prompt Mall) in some cases.

[0159] The process of generating target data is described below. In the following embodiments, the first terminal device is the seller's terminal device, and the second terminal device is the buyer's terminal device.

[0160] FIG2A is a schematic diagram illustrating an exemplary data generation process, wherein steps S201 to S202 are executed by MCG.

[0161] S201, obtaining media generation prompt words.

[0162] Exemplarily, the media-generated prompt word can be used for a transaction, or in other words, the media-generated prompt word is a transaction object or data used for a transaction.

[0163] For example, when a seller needs to sell a media generation prompt word, the seller may send the media generation prompt word to the MCG through the first terminal device; after the MCG receives the media generation prompt word, it may execute S202.

[0164] For example, the seller can open the MCG client (which can be an application (APP), a web page, etc.) in the first terminal device, and upload the media generation prompt words in the MCG client; in this way, the media generation prompt words can be sent to the MCG.

[0165] S202: Generate target data, where the target data includes data encrypted based on at least part of the data in the prompt words generated based on the media.

[0166] Exemplarily, MCG can first generate a key (the key can be a symmetric key, that is, the encrypting party and the decrypting party use the same key for encryption and decryption), and then use the key to encrypt at least part of the data in the media-generated prompt word; then, use the data encrypted based on at least part of the data in the media-generated prompt word to generate the target data.

[0167] It should be noted that, in one possible manner, the key may be used to encrypt a portion of the data in the media generation prompt. In another possible manner, the key may be used to encrypt all the data in the media generation prompt, that is, the entire media generation prompt is encrypted.

[0168] In one possible approach, the data used for encryption in the media-generated prompt words may be data of relatively high value, which requires certain professional knowledge to generate; for example, the "F8-F16, ISO 100-ISO 400, horizontal line composition" in the above example.

[0169] Figure 2B is a schematic diagram of exemplary target data. In Figure 2B, the target data may include data (Data) encrypted based on at least part of the data in the media-generated prompt word. The word "Encrypted" in Figure 2B means encrypted, indicating that the Data is encrypted data.

[0170] In this way, at least part of the data in the media-generated prompt words is invisible to the data trading platform (as shown in Figure 2C), thereby reducing the risk of the data trading platform stealing part of the media-generated prompt words or the complete media-generated prompt words, thereby protecting the interests of sellers.

[0171] In one possible approach, the target data may also include a usage policy for media-generated prompts. This policy can refer to rules for using media-generated prompts, or it can be understood as restrictions on their use. This effectively limits the conditions under which buyers can use media-generated prompts, further ensuring the security of media-generated prompts and protecting the interests of sellers.

[0172] Exemplarily, the media-generated prompt word usage policy may include at least one of the following: the number of times a media-generated prompt word has been used, the region in which the media-generated prompt word has been used, or the number of transactions for the media-generated prompt word. For example, if the number of transactions for a media-generated prompt word is 1, the buyer may be prevented from reselling the media-generated prompt word; if the number of times a media-generated prompt word has been used is 10, the prompt word may become invalid after the buyer has used it 10 times; and if the region in which the media-generated prompt word has been used is Country A, the buyer may be prevented from using the media-generated prompt word internationally. It should be understood that the media-generated prompt word usage policy may also include other policies, which are not limited in this application.

[0173] Figure 2D is a schematic diagram of exemplary target data. In Figure 2D, the target data may include data (Data) encrypted based on at least part of the data in the media-generated prompt word and a usage policy (Policy) of the media-generated prompt word.

[0174] It should be noted that in FIG2D , this application does not limit the positions of Data and Policy in the target data.

[0175] It should be understood that the usage policy of media-generated prompt words can be optional data in the target data. When the target data does not include the usage policy of media-generated prompt words, the seller can also upload the usage policy of media-generated prompt words to the data trading platform when uploading the target data and price.

[0176] In one possible embodiment, the target data may further include a verification identifier of the media-generated prompt word, an identity identifier of the target data, and a digital signature; wherein the verification identifier of the media-generated prompt word is used to indicate whether the media-generated prompt word has passed verification, and the digital signature is determined based on data encrypted based on at least part of the data in the media-generated prompt word.

[0177] FIG3A is a schematic diagram illustrating an exemplary data generation process.

[0178] S301: Acquire a media-generated prompt word, a verification identifier of the media-generated prompt word, and a usage policy of the media-generated prompt word.

[0179] Exemplarily, the media generation prompt word includes first data and second data; wherein the first data is data in the media generation prompt word associated with the content of the media generated by the media generation model, and the second data is data in the media generation prompt word associated with the style of the media generated by the media generation model.

[0180] For example, in the above example, the media generates prompt words: "Ultra-high definition, F8~F16, ISO 100~ISO 400, horizontal line composition, little girl, running, seaside, sunset", the first data is "little girl, running, seaside, sunset", and the second data is "Ultra-high definition, F8~F16, ISO 100~ISO 400, horizontal line composition".

[0181] Exemplarily, the verification identifier of the media-generated prompt word can be generated by the MCG, or generated by the first terminal device and sent to the MCG, or generated by other electronic devices and sent to the MCG; this application does not impose any restrictions on this. Among them, the verification identifier can be used to indicate whether the media-generated prompt word has passed the verification of the media generation model, and can be used to describe the authenticity of the media-generated prompt word. For example, a verification identifier of "1" indicates that the media-generated prompt word has passed the verification, and in this case, it can be understood that the media-generated prompt word is true; a verification identifier of "0" indicates that the media-generated prompt word has not passed the verification, and in this case, it can be understood that the media-generated prompt word is false. In this way, after the seller uploads the target data to the data trading platform, it is convenient for the buyer and the data trading platform to determine the authenticity of the media-generated prompt word based on the verification identifier of the media-generated prompt word.

[0182] S302: Encrypt the second data in the media-generated prompt word to obtain third data.

[0183] Exemplarily, the second data may be encrypted using a key to obtain the third data.

[0184] S303: Generate an identity identifier for the target data.

[0185] Exemplarily, the MCG may assign an identity identifier (ID) to the target data according to pre-set rules, wherein the identity identifier is used to uniquely identify the target data, i.e., different target data have different identity identifiers. In addition, the key used to encrypt the second data may be associated with the identity identifier of the target data; thus, after a subsequent buyer successfully purchases the media-generated prompt word (or, in other words, successfully purchases the target data), the key may be obtained based on the identity identifier of the target data to decrypt the third data to obtain the second data in the media-generated prompt word.

[0186] S304: Sign the first data, the third data, the verification identifier of the media-generated prompt word, the usage policy of the media-generated prompt word, and the identity identifier of the target data to obtain a digital signature.

[0187] In one possible approach, the third data may be signed to obtain a digital signature.

[0188] In one possible approach, the first data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, or the usage policy of the media-generated prompt word, and the third data can be signed to obtain a digital signature. This application uses the example of signing the first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word to obtain a digital signature.

[0189] Specifically, one or more of the first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word can be concatenated and hashed to obtain a hash value (to distinguish it from the hash values ​​mentioned later, this hash value is referred to as a first intermediate hash value). Then, based on the first intermediate hash value, a first hash value is determined; thereafter, the first hash value is signed to obtain a digital signature.

[0190] For example, the first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word are concatenated, and a hash calculation is performed on the concatenated first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word to obtain a first intermediate hash value; in this case, the first intermediate hash value can be used as the first hash value. For another example, the first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word are concatenated to obtain the first intermediate hash value; then, the first data, the third data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, and the usage policy of the media-generated prompt word are concatenated with the first intermediate hash value and hash calculation is performed again to obtain the first hash value.

[0191] S305 : Generate target data based on the first data, the third data, the verification identifier of the media-generated prompt word, the usage policy of the media-generated prompt word, the identity identifier of the target data, and the data signature.

[0192] Figure 3B is a schematic diagram illustrating exemplary target data. In Figure 3B , the target data may include a verification identifier (Verified) for the media-generated prompt, an identity identifier (ID) for the target data, first data (Keyword), third data (Fixture), a usage policy (Policy) for the media-generated prompt, and a digital signature (Sig). The Keyword+Fixture in Figure 3B corresponds to the Data in Figure 2B.

[0193] It should be understood that the embodiments of the present application do not limit the location of the verification identifier (Verified) of the media generation prompt word in the target data, the identity identifier (ID) of the target data, the first data (Keyword), the third data (Fixture), the digital signature (Sig) and the usage policy (Policy) of the media generation prompt word.

[0194] It should be understood that the first data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, the digital signature, and the usage policy of the media-generated prompt word can be optional data in the target data. If the target data does not include at least one of the first data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, the digital signature, or the usage policy of the media-generated prompt word, the seller may also upload at least one of the first data, the verification identifier of the media-generated prompt word, the identity identifier of the target data, the digital signature, or the usage policy of the media-generated prompt word to the data trading platform when uploading the target data and price.

[0195] In one possible approach, the target data may further include at least one of the following: a model identifier of a media generation model, model version information of the media generation model, or a media sample generated by the media generation model based on the media generation prompt. In this way, the data trading platform's server can obtain the model identifier and model version information of the media generation model from the target data and display them on the data trading platform's client, allowing buyers to determine whether the media generation prompt can be applied to the media generation model they desire. Furthermore, the data trading platform's server can obtain the media sample from the target data and display it on the data trading platform's client, allowing buyers to determine whether the media generated using the media generation prompt meets their desired effect.

[0196] It should be understood that the model identifier of the media generation model, the model version information of the media generation model, and the media sample are optional data in the target data. If the target data does not include at least one of the model identifier, the model version information, or the media sample, the seller may also upload at least one of the model identifier, the model version information, or the media sample to the data trading platform when uploading the target data and price.

[0197] It should be noted that when the media generation model is an image generation model, the media sample can be referred to as a sample image; when the media generation model is a video generation model, the media sample can be referred to as a sample image / sample video; when the media generation model is an audio generation model, the media sample can be referred to as a sample audio; and when the media generation model is a text generation model, the media sample can be referred to as a sample text. In the following embodiments, the media generation model is an image generation model, and the media sample is a sample image.

[0198] FIG4A is a schematic diagram of an exemplary data generation process, wherein FIG4A is shown based on FIG3A .

[0199] S401, obtaining a media generation prompt word, a verification identifier of the media generation prompt word, a usage policy of the media generation prompt word, a model identifier of a media generation model, model version information of the media generation model, and a sample diagram.

[0200] In one possible manner, the media generation prompt word, the usage strategy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and the sample diagram are sent by the first terminal device to the MCG; the verification identifier of the media generation prompt word can be generated by the MCG. Among them, the model identifier of the media generation model can be used to uniquely identify the media generation model, for example, it can be a model name, model index, etc., and this application does not impose any restrictions on this.

[0201] Exemplarily, the first terminal device may send the model identifier of the media generation model, the model version information of the media generation model, and the media generation prompt word to the server of the media generation model platform. The server of the media generation model platform may then determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model. The server may then input the media generation prompt word into the target media generation model to obtain a sample graph and return it to the first terminal device. The first terminal device may then send the media generation prompt word, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and the sample graph to the MCG.

[0202] Subsequently, MCG can send the media generation prompt words to the target media generation model for verification. Specifically, MCG can send the model identifier of the media generation model, the model version information of the media generation model, and the media generation prompt words to the server of the media generation model platform; then, the server of the media generation model platform can determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model; then, the media generation prompt words are input into the target media generation model to obtain a sample graph and return it to MCG. Afterwards, MCG can compare the sample graph sent by the first terminal device with the sample graph sent by the server of the media generation model platform; when the similarity between the sample graph sent by the first terminal device and the sample graph sent by the server of the media generation model platform is less than or equal to a threshold, it can be determined that the media generation prompt words have been successfully verified; then a corresponding verification identifier can be generated; when the similarity between the sample graph sent by the first terminal device and the sample graph sent by the server of the media generation model platform is greater than a threshold, it can be determined that the media generation prompt words have failed to be verified; then a corresponding verification identifier can be generated. The threshold can be set as required.

[0203] In one possible manner, the media generation prompt word, the usage strategy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, the sample diagram and the verification identifier of the media generation prompt word are sent to the MCG by the first terminal device.

[0204] Exemplarily, the first terminal device sends the model identifier of the media generation model, the model version information of the media generation model, and the media generation prompt words to the server of the media generation model platform. Afterwards, the server of the media generation model platform can determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model; then input the media generation prompt words into the target media generation model to obtain a sample diagram and a verification identifier for indicating successful verification, and return the sample diagram and the verification identifier for indicating successful verification to the first terminal device. Afterwards, the first terminal device can send the media generation prompt words, the usage policy of the media generation prompt words, the model identifier of the media generation model, the model version information of the media generation model, the sample diagram, and the verification identifier of the media generation prompt words to the MCG.

[0205] In one possible manner, the media generation prompt words, as well as the usage strategy of the media generation prompt words, the model identifier of the media generation model and the model version information of the media generation model are sent by the first terminal device to the MCG; the verification identifier of the media generation prompt words can be generated by the MCG or generated by the server of the media generation model platform and sent to the MCG; the sample diagram can be generated by the server of the media generation model platform and sent to the MCG.

[0206] Exemplarily, after MCG receives the media generation prompt words, the usage policy of the media generation prompt words, the model identifier of the media generation model and the model version information of the media generation model, it can send the model identifier of the media generation model, the model version information of the media generation model and the media generation prompt words to the server of the media generation model platform. Afterwards, the server of the media generation model platform can determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model; and then input the media generation prompt words into the target media generation model to obtain a sample graph. In one case, the media generation model can return the sample graph to MCG; at this time, MCG can deem that the media generation prompt words have been successfully verified and generate a corresponding verification identifier. In one case, the media generation model can also generate a verification identifier for indicating successful verification, and return the sample graph and the verification identifier for indicating successful verification to MCG.

[0207] S402: Encrypt the second data in the media-generated prompt word to obtain third data.

[0208] S403: Generate an identity identifier for the target data.

[0209] For example, S402 to S403 may refer to the description of S302 to S303 above, which will not be repeated here.

[0210] S404: Sign the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and the sample diagram in the media generation prompt word to obtain a digital signature.

[0211] Exemplarily, the first data in the media generation prompt word, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model and one or more items in the sample diagram can be connected and hashed to obtain a second intermediate hash value.

[0212] When the second intermediate hash value is obtained by hashing the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and all items in the sample diagram, the second intermediate hash value can be used as the second hash value; then, the second hash value is signed to obtain the hash value of the digital signature.

[0213] When the second intermediate hash value is obtained by hashing the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and some items in the sample diagram, then a second hash value can be obtained by hashing the second intermediate hash value and the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model, and another part of the items in the sample diagram.

[0214] For example, a hash tree can be used to perform a hash calculation on the first data, third data, verification identifier of the media generation prompt, target data identifier, media generation prompt usage policy, model identifier of the media generation model, model version information of the media generation model, and sample graph in the media generation prompt to obtain a second hash value. A hash tree is a data structure that can include, but is not limited to, binary trees, ternary trees, Merkle trees, and the like, and this application does not impose any restrictions thereto.

[0215] In one possible embodiment, the second hash value is the value of the root node of the hash tree, and the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model and the sample diagram are respectively the values ​​of the leaf nodes of the hash tree.

[0216] FIG4B is a schematic diagram illustrating an exemplary process of generating a second hash value.

[0217] In Figure 4B , the hash tree is a Merkle Tree, and the second hash value is the value of the Merkle Tree Root (MTR) of the Merkle Tree, which can be represented by MTR. The first data (Keyword), the third data (Fixture), the verification identifier (Verified) of the media generation prompt, the identity identifier (ID) of the target data, the usage policy (Policy) of the media generation prompt, the model identifier (Target Model) of the media generation model, the model version information (Verion) of the media generation model, and the sample image (Sample Pic) are the values ​​of the leaf nodes of the Merkle Tree.

[0218] 4B , illustratively, the concatenated Keyword and Fixture can be hashed to obtain Hash X1 (i.e., the second intermediate hash value), the concatenated Verified and ID can be hashed to obtain Hash X2 (i.e., the second intermediate hash value); the concatenated Policy and Target Model can be hashed to obtain Hash X3 (i.e., the second intermediate hash value); the concatenated Verion and Sample Pic can be hashed to obtain Hash X4 (i.e., the second intermediate hash value). Subsequently, the concatenated Hash X1 and Hash X2 can be hashed to obtain Hash X5; and the concatenated Hash X3 and Hash X4 can be hashed to obtain Hash X6. The concatenated Hash X5 and Hash X6 can then be hashed to obtain the MTR.

[0219] It should be understood that FIG4B is only an example of a Merkle Tree, and the Merkle Tree of this application may be other data structures, and this application does not impose any limitation on this.

[0220] It should be understood that this application does not restrict the first data, third data, verification identifier of the media generation prompt word, identity identifier of the target data, usage strategy of the media generation prompt word, model identifier of the media generation model, model version information of the media generation model, and which leaf node of the Merkle Tree the sample diagram corresponds to.

[0221] In one possible method, the second hash value is the value of the root node of the hash tree, the third data (Fixture) is the value of the root node of the left subtree of the hash tree, the first data (Keyword) in the media generation prompt word, the verification identifier (Verified) of the media generation prompt word, the identity identifier (ID) of the target data, the usage policy (Policy) of the media generation prompt word, the model identifier (Target Model) of the media generation model, the model version information (Verion) of the media generation model and the sample picture (Sample Pic) are respectively the values ​​of the leaf nodes of the right subtree of the hash tree.

[0222] FIG4C is a schematic diagram illustrating an exemplary process of generating a second hash value.

[0223] In Figure 4C , the hash tree is a Merkle Tree, and the second hash value is the value of the Merkle Tree's root node, which can be represented by an MTR. The third data (Fixture) is the value of the root node of the Merkle Tree's left subtree, and the first data (Keyword), the verification identifier (Verified) of the media-generated prompt word, the identity identifier (ID) of the target data, the usage policy (Policy) of the media-generated prompt word, the model identifier (Target Model), the model version information (Verion), and the sample image (Sample Pic) are the values ​​of the leaf nodes of the Merkle Tree's right subtree.

[0224] 4C , illustratively, the concatenated Verified and ID can be hashed to obtain Hash X7 (i.e., the second intermediate hash value); the concatenated Policy and Target Model can be hashed to obtain Hash X8 (i.e., the second intermediate hash value); and the concatenated Verion and Sample Pic can be hashed to obtain Hash X9 (i.e., the second intermediate hash value); and the first data (Keyword) can be hashed to obtain Hash X10 (i.e., the second intermediate hash value). Thereafter, the concatenated Hash X7 and Hash X10 are hashed to obtain Hash X11; and the concatenated Hash X8 and Hash X9 are hashed to obtain Hash X12. Subsequently, the concatenated Hash X11 and Hash X12 are hashed to obtain Hash X13; and then, the concatenated Fixture and Hash X13 are hashed to obtain MTR.

[0225] It should be understood that the present application may also use any one of the first data (Keyword), the verification identifier (Verified) of the media generation prompt word, the identity identifier (ID) of the target data, the usage policy (Policy) of the media generation prompt word, the model identifier (Target Model) of the media generation model, the model version information (Verion) of the media generation model, or the sample picture (Sample Pic) as the value of the root node of the left subtree of the hash tree, and the present application does not impose any restrictions on this.

[0226] S405, encapsulate the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the digital signature, the use policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model and the sample diagram to obtain a magic box.

[0227] Exemplarily, the target data generated by the magic box generator may be referred to as a magic box (MC).

[0228] In one possible approach, the MC can be a software package that includes the first data, the third data, a verification identifier for the media generation prompt, the identity identifier of the target data, a digital signature, a usage policy for the media generation prompt, a model identifier for the media generation model, model version information for the media generation model, and a sample image. This reduces costs and facilitates timely access to the MC for buyers, improving the buyer experience.

[0229] In one possible implementation, the MC can be a hardware module that encapsulates the first data, the third data, a verification identifier for the media-generated prompt, the target data's identity, a digital signature, a usage policy for the media-generated prompt, a model identifier for the media-generated model, model version information for the media-generated model, and sample images. While this increases costs, it improves the security of the media-generated prompt and protects the seller's interests. This is particularly applicable to high-value media-generated prompts (e.g., those used to generate 3D game graphics).

[0230] Figure 4D is a schematic diagram of the structure of an exemplary MC. In Figure 4D, the MC includes: a model identifier of the media generation model (Target Model), model version information of the media generation model (Verion), a verification identifier of the media generation prompt word (Verified), a sample picture (Sample Pic), prompts (first data (Keyword) + third data (Fixture)), an identity identifier (ID), a usage policy of the media generation prompt word (Policy), and a digital signature (Sig).

[0231] In this way, the second data in the media-generated prompt words is not only invisible to the data trading platform, but also after the buyer purchases the media-generated prompt words and obtains the key for the third data, if the second terminal device has a Trust Execution Environment (TEE), the second terminal device can decrypt the third data in the TEE according to the key to obtain the second data; in this way, the second data is also invisible to the second terminal device, thereby preventing the buyer from obtaining the seller's second data, thereby preventing the buyer from reselling the second data (as shown in Figure 4E). TEE can also use the media-generated prompt words according to the usage policy of the media-generated prompt words, thereby restricting the buyer's use of the media-generated prompt words; for example, when the number of uses in the usage policy of the media-generated prompt words is 1, the buyer cannot use the media-generated prompt words multiple times; thereby, the interests of the seller can be guaranteed.

[0232] It should be noted that this application does not limit the storage format of the target data (or MC) in the electronic device; for example, the target data (or MC) is saved in a file format such as (JSON file); for another example, the target data (or MC) is saved as an executable script; for another example, the target data (or MC) is saved as software storage, and so on.

[0233] The following describes the interaction process between the first terminal device, the MGC, the server of the media generation model platform, the server of the data transaction platform, and the second terminal device during the data processing process.

[0234] It should be understood that the media generation model platform may include multiple types of media generation models, and there may be multiple media generation models of each type, which is not limited in this application.

[0235] It should be understood that the server of the media generation model platform can be the same server as the MCG (or the server deployed by the MCG), or it can be a different server, and this application does not impose any restrictions on this. The server of the media generation model platform can be the same server as the server of the data trading platform, or it can be a different server, and this application does not impose any restrictions on this.

[0236] It should be noted that in the following embodiments of FIG. 5 , FIG. 6 and FIG. 7 , the manner in which MCG obtains the sample image and the verification identifier of the media-generated prompt word is different; the corresponding interaction processes are also different.

[0237] FIG5 is a schematic diagram illustrating an exemplary data processing process.

[0238] S501, a first terminal device sends a first request to an MCG, wherein the first request includes: a media generation prompt word, a model identifier of a media generation model, model version information of the media generation model, and a sample diagram.

[0239] For example, the seller can open the MCG client (which can be an application (APP), a web page, etc.) in the first terminal device, input the media generation prompt words, the model identifier of the media generation model, the model version information and sample diagram of the media generation model in the MCG client, and perform encryption operations; correspondingly, the MCG client can generate a first request in response to the seller's operation behavior and send it to the MCG server.

[0240] S502, MCG sends the media generation prompt word, the model identifier of the media generation model and the model version information of the media generation model to the server of the media generation model platform.

[0241] S503, the server of the media generation model platform determines the target media generation model according to the model identifier of the media generation model and the model version information of the media generation model, and inputs the media generation prompt words into the target media generation model to obtain a sample graph.

[0242] S504, the server of the media generation model platform sends a sample graph to the MCG.

[0243] S505, MCG verifies the sample image sent by the first terminal device based on the sample image sent by the server of the media generation model platform.

[0244] S506, when MCG successfully verifies the sample image sent by the first terminal device, it generates MC; wherein, MC includes: the first data, the third data, the verification identifier of the media generation prompt word, the identity identifier of the target data, the digital signature, the usage policy of the media generation prompt word, the model identifier of the media generation model, the model version information of the media generation model and the sample image sent by the first terminal device.

[0245] S507, MCG sends a first response message to the first terminal device, where the first response message includes MC.

[0246] S508: The first terminal device sends a sales request to the PMALL server, wherein the sales request includes the MC and the price of the media-generated prompt word.

[0247] For example, a seller can open the client of a data trading platform (i.e., PMALL) on a first terminal device and enter the main interface of the data trading platform; then, they can click on the sell option. Correspondingly, the client of the data trading platform can respond to the user's operation and enter the selling interface. After the seller enters the MC and selling price and performs a confirmation operation on the selling interface, the client of the data trading platform can respond to the seller's operation and generate a sales request and send it to the data trading platform server.

[0248] It should be noted that when the MC does not include the usage policy of the media generation prompt words, the model identifier of the media generation model, the model version information of the media generation model and the sample image sent by the first terminal device, the seller can also enter the usage policy of the media generation prompt words, the model identifier of the media generation model, the model version information of the media generation model and the sample image sent by the first terminal device in the sales interface; in this way, the sales request can also include the usage policy of the media generation prompt words, the model identifier of the media generation model, the model version information of the media generation model and the sample image sent by the first terminal device.

[0249] Afterwards, the PMALL client in the terminal device can display the sample image, price, model identifier of the media generation model, and model version information of the media generation model.

[0250] S509: The second terminal device sends a purchase request to the PMALL server, wherein the purchase request includes the identity identifier and payment information of the MC.

[0251] For example, the buyer can open the client of the data trading platform in the first terminal device and enter the main interface of the data trading platform; then, the buyer can click on the media to be purchased to generate a prompt word corresponding to the purchase option in the transaction object option; at this time, the client of the data trading platform can respond to the buyer's operation and enter the payment interface; after the buyer executes the payment operation, the client of the data trading platform can generate a purchase request and send it to the server of the data trading platform.

[0252] S510, the PMALL server sends a second response message to the second terminal device, wherein the second response message includes the identity identifier of the MC, the MC, and a receipt.

[0253] For example, after the data trading platform server determines that the buyer's payment is successful, it can generate a second response message and send it to the second terminal device. The receipt can be an electronic receipt with an electronic signature of the PMALL server.

[0254] S511, the second terminal device sends a second request to the MCG, where the second request includes the identity identifier and receipt of the MC.

[0255] For example, the buyer can open the MCG client (which can be an application (APP), a web page, etc.) in the second terminal device, enter the MC's identity and receipt in the MCG client, and perform a key acquisition operation; correspondingly, the MCG client can generate a second request in response to the buyer's operation behavior and send it to MCG.

[0256] S512, after MCG successfully verifies the receipt, it sends the key corresponding to the identity identifier of MC in the second response information to the second terminal device.

[0257] For example, when MCG determines that the receipt in the second request is signed by the data trading platform (that is, the electronic signature in the electronic receipt is the electronic signature of the data trading platform), it can be determined that the receipt verification is successful; then the key corresponding to the identity identifier of MC in the second response information is sent to the second terminal device.

[0258] S513: The second terminal device stores the key.

[0259] S514: The second terminal device decrypts the third data based on the key to obtain second data.

[0260] S515 , the second terminal device sends the modified first data, the second data, the model identifier of the media generation model, and the model version information of the media generation model to the server of the media generation model platform.

[0261] S516 , the server of the media generation model platform inputs the modified first data and second data into a target media generation model that matches the model identifier of the media generation model and the model version information of the media generation model to obtain media.

[0262] S517: The server of the media generation model platform sends the media to the second terminal device.

[0263] Exemplarily, after receiving the key, the second terminal device may store the key; and then:

[0264] In one possible way, when the second terminal device has a TEE, the MCG can send the key corresponding to the identity identifier of the MC in the second response information to the TEE in the second terminal device; then the second terminal device decrypts the third data in the MC in the TEE to obtain the second data (the second data is not visible to the second terminal device at this time). And the buyer can modify the first data in the second terminal device (for example, change "little girl, running, seaside, sunset" to "little boy, running, seaside, sunrise"); after the buyer has modified the first data, the second terminal device can send the modified first data, the decrypted second data, the model identifier of the media generation model and the model version information of the media generation model to the server of the media generation model platform. Then, the server of the media generation model platform can determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model, and input the media generation prompt words (including the decrypted second data and the modified first data in the TEE) into the target media generation model to obtain AIGC and return AIGC to the second terminal device.

[0265] In one possible way, when the second terminal device does not have a TEE, the buyer can perform a decryption operation on the MC sent by the PMALL server, and the second terminal device can decrypt the third data in the MC according to the user's operation behavior to obtain the second data (the second data is visible to the second terminal device at this time). And the buyer can modify the first data in the second terminal device; after the buyer has modified the first data, the second terminal device can send the media generation prompt words (the decrypted second data and the modified first data), the model identifier of the media generation model, and the model version information of the media generation model to the server of the media generation model platform. Afterwards, the server of the media generation model platform can determine the target media generation model based on the model identifier of the media generation model and the model version information of the media generation model, and input the media generation prompt words into the target media generation model to obtain AIGC and return AIGC to the second terminal device.

[0266] It should be understood that in one possible approach, the MCG may first determine whether a TEE exists in the second terminal device. If the TEE does not exist in the second terminal device, the key may not be sent to the second terminal device; if the TEE exists in the second terminal device, the key is sent to the second terminal device. In another possible approach, the MCG may not need to determine whether a TEE exists in the second terminal device and may directly send the TEE to the second terminal device.

[0267] FIG6 is a schematic diagram illustrating an exemplary data processing process.

[0268] S601: A first terminal device sends a first request to an MCG, wherein the first request includes: a media generation prompt word, a model identifier of a media generation model, and model version information of the media generation model.

[0269] S602, MCG sends the media generation prompt word, the model identifier of the media generation model and the model version information of the media generation model to the server of the media generation model platform.

[0270] S603, the server of the media generation model platform determines the target media generation model according to the model identifier of the media generation model and the model version information of the media generation model, and inputs the media generation prompt words into the target media generation model to obtain a sample graph.

[0271] S604, the server of the media generation model platform sends a sample graph to the MCG.

[0272] S605, MCG generates MC; MC includes: third data, verification identifier of media generation prompt word, identity identifier of target data, digital signature, usage policy of media generation prompt word, model identifier of media generation model, model version information of media generation model and sample diagram sent by the server of media generation model platform.

[0273] Exemplarily, in S605, the verification mark of the media-generated prompt word is generated by MCG; the details can be referred to the above description, which will not be repeated here.

[0274] S606, MCG sends a first response message to the first terminal device, where the first response message includes MC.

[0275] S607: The first terminal device sends a sales request to the PMALL server, wherein the sales request includes the MC and the price of the media-generated prompt word.

[0276] S608: The second terminal device sends a purchase request to the PMALL server, where the purchase request includes the MC's identity and payment information.

[0277] S609: The PMALL server sends a second response message to the second terminal device, wherein the second response message includes the identity identifier of the MC, the MC, and a receipt.

[0278] S610, the second terminal device sends a second request to the MCG, wherein the second request includes the identity identifier and receipt of the MC.

[0279] S611, after MCG successfully verifies the receipt, it sends the key corresponding to the identity identifier of MC in the second response information to the second terminal device.

[0280] S612: The second terminal device stores the key.

[0281] S613: The second terminal device decrypts the third data based on the key to obtain the second data.

[0282] S614: The second terminal device sends the modified first data, the second data, the model identifier of the media generation model, and the model version information of the media generation model to the server of the media generation model platform.

[0283] S615 , the server of the media generation model platform inputs the modified first data and the second data into the target media generation model that matches the model identifier of the media generation model and the model version information of the media generation model to obtain the media.

[0284] S616: The server of the media generation model platform sends the media to the second terminal device.

[0285] FIG. 7 is a schematic diagram illustrating an exemplary data processing process.

[0286] S701: The first terminal device sends a media generation prompt word, a model identifier of a media generation model, and model version information of the media generation model to a server of a media generation model platform.

[0287] S702, the server of the media generation model platform determines the target media generation model according to the model identifier of the media generation model and the model version information of the media generation model, inputs the media generation prompt word into the target media generation model to obtain a sample diagram, and generates a verification identifier of the media generation prompt word.

[0288] S703: The server of the media generation model platform sends a sample image and a verification identifier of the media generation prompt word to the first terminal device.

[0289] S704, the first terminal device sends a first request to the MCG, wherein the first request includes: a media generation prompt word, a model identifier of the media generation model, model version information of the media generation model, a sample diagram, and a verification identifier of the media generation prompt word.

[0290] S705, MCG generates MC; MC includes: third data, verification identifier of media generation prompt word, identity identifier of target data, digital signature, usage policy of media generation prompt word, model identifier of media generation model, model version information of media generation model and sample diagram sent by the server of media generation model platform.

[0291] S706, MCG sends a first response message to the first terminal device, where the first response message includes MC.

[0292] S707: The first terminal device sends a sales request to the PMALL server, wherein the sales request includes the MC and the price of the media-generated prompt word.

[0293] S708: The second terminal device sends a purchase request to the PMALL server, where the purchase request includes the MC's identity and payment information.

[0294] S709, the PMALL server sends a second response message to the second terminal device, wherein the second response message includes the identity identifier of the MC, the MC, and the receipt.

[0295] S710, the second terminal device sends a second request to the MCG, where the second request includes the identity identifier and receipt of the MC.

[0296] S711, after MCG successfully verifies the receipt, it sends the key corresponding to the identity identifier of MC in the second response information to the second terminal device.

[0297] S712: The second terminal device stores the key.

[0298] S713: The second terminal device decrypts the third data based on the key to obtain second data.

[0299] S714: The second terminal device sends the modified first data, the second data, the model identifier of the media generation model, and the model version information of the media generation model to the server of the media generation model platform.

[0300] S715 , the server of the media generation model platform inputs the modified first data and second data into a target media generation model that matches the model identifier of the media generation model and the model version information of the media generation model to obtain media.

[0301] S716: The server of the media generation model platform sends the media to the second terminal device.

[0302] Figure 8 is a schematic diagram of an exemplary data processing device. The data processing device can be used to execute the data processing method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0303] 8 , illustratively, the data processing apparatus may include:

[0304] The prompt word acquisition module 801 is used to obtain media generation prompt words, which are used to generate artificial intelligence generated content;

[0305] The data generation module 802 is configured to generate target data, where the target data includes data encrypted based on at least a portion of the data in the media-generated prompt word.

[0306] Exemplarily, the target data also includes a usage strategy for media generation prompt words.

[0307] Exemplarily, the target data further includes at least one of the following: a verification identifier of the media-generated prompt word, an identity identifier of the target data, or a digital signature; wherein the digital signature is determined based on data encrypted at least based on at least part of the data in the media-generated prompt word.

[0308] Exemplarily, the target data further includes at least one of the following: a model identifier of a media generation model, model version information of the media generation model, or a sample of media, where the media is generated by the media generation model according to the media generation prompt word.

[0309] Exemplarily, the digital signature is further determined based on at least one of a usage policy of a media generation prompt word, a verification identifier of a media generation prompt word, an identity identifier of target data, a model identifier of a media generation model, model version information of a media generation model, or a media sample.

[0310] Exemplarily, at least part of the data in the media generation prompt words is associated with the style of the media generated by the media generation model.

[0311] Exemplarily, the target data also includes data in the media generation prompt that is not used for encryption, and the data that is not used for encryption is associated with the content of the media generated by the media generation model.

[0312] Exemplarily, the verification flag of the media generation prompt word is used to indicate whether the media generation prompt word has passed the verification of the media generation model.

[0313] Illustratively, the usage strategy of the media-generated prompt word includes at least one of the following: the number of times the media-generated prompt word is used, the area in which the media-generated prompt word is used, or the number of transactions of the media-generated prompt word.

[0314] Exemplarily, the data processing device further includes:

[0315] The encapsulation module is used to encapsulate data obtained by encrypting at least part of the data in the media-generated prompt word, the use strategy of the media-generated prompt word, and at least one of the verification identifier of the media-generated prompt word, the identity identifier or digital signature of the target data to obtain a magic box.

[0316] Exemplarily, the data processing device further includes:

[0317] The encryption module is used to obtain a key and encrypt at least part of the data in the media-generated prompt word using the key.

[0318] Exemplarily, the data processing device further includes:

[0319] The signature module is used to process data obtained by encrypting at least part of the data in the prompt word generated based on the media to obtain a digital signature.

[0320] Figure 9 is a schematic diagram of an exemplary data processing device. The data processing device can be used to execute the data processing method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0321] 9 , illustratively, the data processing apparatus may include:

[0322] A data acquisition module 901 is configured to acquire target data and a key, wherein the target data includes data encrypted based on at least a portion of the media-generated prompt word;

[0323] The decryption module 902 is configured to use a key to decrypt data obtained by encrypting at least a portion of the data in the media-generated prompt word, thereby obtaining at least a portion of the data in the media-generated prompt word.

[0324] Exemplarily, the target data further includes an identity identifier of the target data, and the data processing device further includes:

[0325] The media acquisition module is used to obtain artificial intelligence generated content based on at least part of the data in the media generated prompt words.

[0326] Exemplarily, the target data further includes an identity identifier of the target data, and the apparatus further includes:

[0327] The data acquisition module 901 is specifically configured to acquire a key according to the identity of the target data.

[0328] Exemplarily, the target data further includes a usage strategy for media generation prompt words; and the data processing device further includes:

[0329] A judgment module, configured to judge whether the use of the media-generated prompt words is permitted according to the use policy of the media-generated prompt words;

[0330] The media acquisition module is specifically used to obtain artificial intelligence generated content based on at least part of the data in the media generated prompt words when it is determined that the use of media generated prompt words is allowed.

[0331] Exemplarily, the data processing device further includes:

[0332] A modification module, used for modifying data not used for encryption in the media generated prompt word to obtain modified data;

[0333] The media acquisition module is specifically used to obtain artificial intelligence generated content based on the modified data and at least part of the data in the media generation prompt word.

[0334] Figure 10 is a schematic diagram of an exemplary data processing device. The data processing device can be used to execute the data processing method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0335] 10 , the data processing apparatus may include:

[0336] The sending module 1001 is used to send a media generation prompt word to the magic box generator, and the media generation prompt word is used to generate artificial intelligence generated content;

[0337] The receiving module 1002 is configured to receive target data sent by the magic box generator, where the target data includes data encrypted based on at least part of the data in the prompt words generated based on the media.

[0338] Exemplarily, the sending module 1001 is further configured to provide target data to the data trading platform.

[0339] In an example, FIG11 shows a schematic block diagram of a device 1100 according to an embodiment of the present application. The device 1100 may include: a processor 1101 and a transceiver / transceiver pin 1102 , and optionally, a memory 1103 .

[0340] The various components of the device 1100 are coupled together via a bus 1104, wherein the bus 1104 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clarity, all buses are referred to as bus 1104 in the figure.

[0341] Optionally, the memory 1103 may be used to store instructions in the aforementioned method embodiment. The processor 1101 may be used to execute the instructions in the memory 1103 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.

[0342] The apparatus 1100 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0343] Among them, electronic devices may include terminal devices and servers.

[0344] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0345] The present application also provides a chip including one or more interface circuits and one or more processors. The one or more processors receive or send data via the one or more interface circuits. When the one or more processors execute computer instructions, the steps of the above-mentioned related methods are implemented. The interface circuit is a transceiver / transceiver pin 1102.

[0346] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.

[0347] This embodiment further provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer executes the above-mentioned related steps to implement the method in the above-mentioned embodiment.

[0348] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the methods in the above-mentioned method embodiments.

[0349] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0350] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0351] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0352] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0353] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0354] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0355] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0356] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0357] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0358] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0359] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A data processing method, characterized in that: The method comprises: Acquire a media generation prompt word, wherein the media generation prompt word is used to generate artificial intelligence generated content; Generate target data, wherein the target data includes data encrypted based on at least part of the data in the media generation prompt word.

2. The method according to claim 1, characterized in that The target data also includes a usage strategy of the media generation prompt word.

3. The method according to claim 1 or 2, characterized in that: The target data also includes at least one of the following: a verification identifier of the media-generated prompt word, an identity identifier or a digital signature of the target data; wherein the digital signature is determined at least based on the data encrypted based on at least part of the data in the media-generated prompt word.

4. The method according to any one of claims 1 to 3, characterized in that: The target data further includes at least one of the following: a model identifier of a media generation model, model version information of the media generation model, or a media sample, where the media sample is generated by the media generation model according to the media generation prompt word.

5. The method according to claim 3 or 4, characterized in that: The digital signature is further determined based on at least one of the usage policy of the media generation prompt word, the verification identifier of the media generation prompt word, the identity identifier of the target data, the model identifier of the media generation model, the model version information of the media generation model, or a sample of the media.

6. The method according to any one of claims 1 to 5, characterized in that: At least part of the data in the media generation prompt words is associated with the style of the media generated by the media generation model.

7. The method according to any one of claims 1 to 6, characterized in that: The target data also includes data in the media generation prompt that is not used for encryption, and the data that is not used for encryption is associated with content of the media generated by the media generation model.

8. The method according to claim 3, characterized in that The verification identifier of the media generation prompt word is used to indicate whether the media generation prompt word has passed the verification of the media generation model.

9. The method according to claim 2, characterized in that: The usage strategy of the media generation prompt word includes at least one of the following: the number of times the media generation prompt word is used, the usage area of ​​the media generation prompt word, or the number of transactions of the media generation prompt word.

10. The method according to any one of claims 3 to 8, characterized in that: The method further comprises: The magic box is obtained by encapsulating the data encrypted based on at least part of the data in the media-generated prompt word, the use policy of the media-generated prompt word, and at least one of the verification identifier of the media-generated prompt word, the identity identifier of the target data or the digital signature.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: Get the key; The key is used to encrypt at least a portion of the data in the media generation prompt.

12. The method according to claim 3, characterized in that The method further comprises: Processing the data obtained by encrypting at least part of the data in the prompt word generated based on the media to obtain the digital sign.

13. A data processing method, characterized in that: The method comprises: Acquiring target data and a key, wherein the target data includes data encrypted based on at least part of data in a media-generated prompt word, wherein the media-generated prompt word is used to generate artificial intelligence-generated content; The key is used to decrypt data obtained by encrypting at least part of the data in the media-generated prompt word, thereby obtaining at least part of the data in the media-generated prompt word.

14. The method according to claim 13, characterized in that The method further comprises: Obtain artificial intelligence generated content based on at least part of the data in the media generated prompt word.

15. The method according to claim 13 or 14, characterized in that The target data also includes an identity identifier of the target data, and the obtaining key includes: A key is obtained according to the identity identifier of the target data.

16. The method according to claim 14, characterized in that The target data also includes a usage strategy for the media generation prompt word; the method also includes: Determining whether to allow the use of the media-generated prompt word according to the use policy of the media-generated prompt word; When it is determined that the use of the media generated prompt word is allowed, artificial intelligence generated content is obtained based on at least part of the data in the media generated prompt word.

17. The method according to claim 14, characterized in that The target data further includes data in the media generation prompt words that are not used for encryption, at least part of the data in the media generation prompt words is associated with the style of the media generated by the media generation model, and the data that is not used for encryption is associated with the content of the media generated by the media generation model; The method further comprises: Modifying the data not used for encryption in the media generation prompt word to obtain modified data; The step of obtaining artificial intelligence generated content based on at least part of the data in the media generated prompt word includes: The artificial intelligence generated content is obtained according to the modified data and at least part of the data in the media generated prompt word.

18. A data processing method, characterized in that: The method comprises: Sending a media generation prompt to the magic box generator, wherein the media generation prompt is used to generate artificial intelligence generated content; Receive target data sent by the magic box generator, wherein the target data includes data encrypted based on at least part of the data in the media generation prompt word.

19. The method according to claim 18, characterized in that The method further comprises: The target data is provided to a data trading platform.

20. A data processing system, characterized in that: The system includes a first terminal device and a magic box generator; The first terminal device is used to send a media generation prompt word to the magic box generator, the media generation prompt word is used to generate artificial intelligence generated content, and receive target data sent by the magic box generator; The magic box generator is used to receive the media generation prompt word sent by the first terminal device, and obtain target data according to the media generation prompt word, wherein the target data includes data encrypted based on at least part of the data in the media generation prompt word.

21. The system according to claim 20, further comprising a data trading platform, and the first terminal device is further used to provide the target data to the data trading platform.

22. The system according to claim 21, further comprising a second terminal device, wherein the second terminal device is used to obtain the target data from the data trading platform.

23. The system according to claim 22, characterized in that The second terminal device is also used to obtain a key from the magic box generator; according to the key, decrypt the data obtained by encrypting at least part of the data in the media-generated prompt word to obtain at least part of the teaching data in the media-generated prompt word.

24. A data processing device, characterized in that: The device comprises: A prompt word acquisition module, used to acquire media generation prompt words, wherein the media generation prompt words are used to generate artificial intelligence generated content; The data generation module is used to generate target data, wherein the target data includes data encrypted based on at least part of the data in the media generation prompt word.

25. A data processing device, characterized in that: The device comprises: A data acquisition module, used to acquire target data and a key, wherein the target data includes data encrypted based on at least part of the data in the media-generated prompt words, and the media-generated prompt words are used to generate artificial intelligence-generated content; The decryption module is used to use the key to decrypt the data obtained by encrypting at least part of the data in the media-generated prompt word, so as to obtain at least part of the data in the media-generated prompt word.

26. A data processing device, characterized in that: The device comprises: A sending module, used to send a media generation prompt word to the magic box generator, wherein the media generation prompt word is used to generate artificial intelligence generated content; The receiving module is used to receive the target data sent by the magic box generator, wherein the target data includes data encrypted based on at least part of the data in the media generation prompt word.

27. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the data processing method according to any one of claims 1 to 12.

28. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the data processing method according to any one of claims 13 to 17.

29. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the data processing method according to claim 18 or claim 19.

30. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the steps of the method as described in any one of claims 1 to claim 19 are executed.

31. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the method according to any one of claims 1 to 19.

32. A computer program product, characterized in that The computer program product comprises computer instructions, which, when executed by a computer or a processor, cause the steps of the method according to any one of claims 1 to 19 to be performed.

Citation Information

Patent Citations

  • Digital rights management method for solving problem of illegal copying

    CN103971033A

  • Metadata management method and device, computer equipment and storage medium

    CN116541752A

  • Large model cue word verification processing method and device

    CN117131529A

  • Digital product distribution method and digital product distribution system

    WO2020209463A2