Data processing method and system and electronic equipment

By encrypting the media generated prompt words, generating target data and uploading them to the data trading platform, the risk of the data trading platform stealing media generated prompt words is solved, and the effect of protecting the interests of sellers is achieved.

CN119557893APending Publication Date: 2025-03-04HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311135678.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-01
Publication Date
2025-03-04

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 the media generation prompt word, the target data is generated, including data obtained by encrypting based on at least part of the data in the media generation prompt word. The seller uploads the target data to the data trading platform, so that at least part of the data in the media generation prompt word is invisible to the data trading platform, thereby reducing the risk of stealing.

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 CN119557893A_ABST
    Figure CN119557893A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and system and electronic equipment. The method comprises the steps that firstly, a media generation prompt word is acquired, and the media generation prompt word is used for generating artificial intelligence generation content; then, target data is generated, and the target data comprises data obtained by encrypting at least part of data in the media generation cue word; subsequently, after the seller uploads the target data to the data transaction platform, at least part of the data in the media generation cue word is invisible for the data transaction platform, so that the risk that the data transaction platform steals part of the media generation cue word or the complete media generation cue word can be reduced, and the interests of the seller are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] AIGC (Artificial Intelligence-Generated Content) technology refers to the process of using artificial intelligence technology to automate or assist information creation to meet the personalized needs of users. For example, AIGC technology can generate copywriting, knowledge graphs, and be used as text customer service in the fields of media, film and television, advertising, games, e-commerce, education, and medical care; in the field of images, 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 virtual human creation.

[0003] 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, which provides users with the ability to buy and sell Prompts of different AI models, came into being.

[0004] 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. Summary of the invention

[0005] In order 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 ensuring the interests of sellers.

[0006] In the first aspect, the embodiment of the present application provides a data processing method, which includes: first, obtaining media generation prompt words, which are used to generate artificial intelligence generated content; then, generating target data, which includes data encrypted based on at least part of the data in the media generation prompt words. Subsequently, after the seller uploads the target data to the data trading platform, at least part of the data in the media generation prompt words is invisible to the data trading platform, thereby reducing the risk of the data trading platform stealing part of the media generation prompt words or the complete media generation prompt words, and protecting the interests of the seller.

[0007] 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.

[0008] Exemplarily, media generation prompts, which can be called prompts or AI prompts of 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 make corresponding responses such as output media (i.e., AIGC). The media may include but is not limited to: text, images, graphics, audio, and video, etc., which are not limited in this application.

[0009] The prompts may be composed of multiple words, phrases or short sentences. For example, if the media is an image, the prompts may be: "image quality, aperture, ISO (camera sensitivity), composition, object, posture, scene, weather", specifically, for example, "ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset".

[0010] 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 involved 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 modules, etc., which are not limited in this application. For example, ChatGPT (a natural language processing tool driven by artificial intelligence technology), Midjourney (an AI drawing tool), etc.

[0011] Exemplarily, when the media generated prompt words are image generated prompt words, the image generated prompt words can be input into the image generation model, and the image generation model generates the image. Exemplarily, when the media generated prompt words are audio generated prompt words, the audio generated prompt words can be input into the audio generation model, and the audio generation model generates the audio. Exemplarily, when the media generated prompt words are video generated prompt words, the video generated prompt words can be input into the video generation model, and the video generation model generates the video. Exemplarily, when the media generated prompt words are text generated prompt words, the text generated prompt words can be input into the text generation model, and the text generation model generates the text. Exemplarily, when the media generated prompt words are graphic generated prompt words, the graphic generated prompt words can be input into the graphic generation model, and the graphic generation model generates the graphic.

[0012] For example, assuming that the image generation model is Midjourney, the image generation prompt words can be: "ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset", then Midjourney can generate an image of a little girl running on the beach at sunset.

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

[0014] According to the first aspect, the target data also includes a usage strategy of the media generation prompt word.

[0015] Among them, the use strategy of media-generated prompt words can refer to the rules for using media-generated prompt words, and can also be understood as the use restriction conditions 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.

[0016] For example, a policy is used.

[0017] 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 at least based on data encrypted based on at least part of the data in the media-generated prompt word.

[0018] Among them, the verification mark of the media-generated prompt word is used to indicate whether the media-generated prompt word has passed the verification, or in other words, the verification mark of the media-generated prompt word can be used to describe the authenticity of the media-generated prompt word. For example, the verification mark of "1" indicates that the media-generated prompt word has passed the verification, and at this time it can be understood that the media-generated prompt word is true; the verification mark of "0" indicates that the media-generated prompt word has not passed the verification, and at this time 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 mark of the media-generated prompt word.

[0019] 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 according to 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.

[0020] 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 model identifier of a media generation model, model version information of a media generation model, or a sample of media, where the sample of media is generated by the media generation model according to the media generation prompt word. In this way, the server of the data trading platform can obtain the model identifier of the media generation model and the model version information of the media generation model from the target data, and display them on the client of the data trading platform, so that the buyer can know whether the media generation prompt word can be applied to the media generation model that he needs to use. And the server of the data trading platform can obtain the sample of media from the target data, and display it on the client of the data trading platform, so that the buyer can know whether the effect of the media generated by using the media generation prompt word is what he needs.

[0021] 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.

[0022] At least part of the data in the media generation prompt word may refer to the data used for encryption in the media generation prompt word.

[0023] For example, the media generation prompt words are: "Ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset"; then the data used for encryption in the media generation prompt words can be "Ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition".

[0024] 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.

[0025] For example, the media generated prompt words are: "ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset"; then the data in the media generated prompt words that is not used for encryption may be "little girl, running, seaside, sunset".

[0026] Exemplarily, 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 usage area of ​​the media-generated prompt word, or the number of transactions of the media-generated prompt word.

[0027] For example, when the number of transactions of the media-generated prompt word is 1, the buyer can be prevented from reselling the media-generated prompt word; when the number of uses of the 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.

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

[0029] According to the first aspect, or any implementation of the first aspect above, 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.

[0030] According to the first aspect, or any implementation of the first aspect above, the method also includes: encapsulating data encrypted based on 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.

[0031] Exemplarily, the magic box is the target data.

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

[0033] In a possible manner, MC may be a software data package, which may include data not used for encryption in the media generation prompt word, data encrypted based on at least part of the data in the media generation prompt word, a verification identifier of the media generation prompt word, an identity identifier of the target data, a digital signature, a usage policy of the media generation prompt word, a model identifier of the media generation model, model version information of the media generation model, and a sample diagram. In this way, the cost is low and it is convenient for buyers to obtain MC in a timely manner, thereby improving the buyer experience.

[0034] In one possible way, MC can be a hardware module, which encapsulates data not used for encryption in the media generated prompt words, data encrypted based on at least part of the data in the media generated prompt words, verification identification of the media generated prompt words, identity identification of the target data, digital signature, usage policy of the media generated prompt words, model identification of the media generated model, model version information of the media generated model and sample diagrams, etc. In this way, although the cost is increased, the security of the media generated prompt words can be improved and the interests of the sellers can be protected; it is especially suitable for high-value media generated prompt words (such as media generated prompt words used to generate 3D game screens).

[0035] 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 generation prompt word.

[0036] 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.

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

[0038] In one possible manner, 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.

[0039] In one possible manner, a digital signature algorithm is used to sign at least one of a verification identifier of a media-generated prompt word, an identity identifier of target data, or a usage policy of a media-generated prompt word, and data encrypted based on at least part of the data in the media-generated prompt word to obtain a digital signature; in this way, the verification identifier of a media-generated prompt word, the identity identifier of target data, or at least one of a usage policy of a media-generated prompt word, and data encrypted based on at least part of the data in the media-generated prompt word can be prevented from being forged.

[0040] 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 limit this.

[0041] 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.

[0042] 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 word used to generate AIGC.

[0043] 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.

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

[0045] 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.

[0046] 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.

[0047] According to the second aspect, or any implementation of the second aspect above, the target data also includes data in the media generation prompt that is not used for encryption, at least part of the data in the media generation prompt is associated with the style of the media generated by the media generation model, and the data in the media generation prompt that is not used for encryption is associated with the content of the media generated by the media generation model; the method also includes: modifying the data in the media generation prompt that is not used for encryption to obtain the modified data; obtaining artificial intelligence generated content based on at least part of the data in the media generation prompt, including: obtaining artificial intelligence generated content based on the modified data and at least part of the data in the media generation prompt. In this way, buyers can modify the data in the media generation prompt that is not used for encryption according to their own needs, and then generate media that matches their own needs.

[0048] 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 refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

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

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

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

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

[0053] 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 refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0054] 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;

[0055] 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;

[0056] 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.

[0057] In one possible manner, the system further includes a data trading platform, and the first terminal device is further used to provide target data to the data trading platform.

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

[0059] In one possible manner, the second terminal device is also used to obtain a key from the magic box generator; based on the key, the data obtained by encrypting at least part of the data in the media-generated prompt word is decrypted to obtain at least part of the teaching data in the media-generated prompt word.

[0060] 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.

[0061] It should be noted that when MCG is an independent server, the server of the MCG and the data trading platform can be the same server or different servers, and this application does not limit 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 other servers except the server of the data trading platform, and this application does not limit this.

[0062] 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 refer 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), which will not be repeated here.

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

[0064] A prompt word acquisition module, used to acquire media generation prompt words, and the media generation prompt words are used to generate artificial intelligence generated content;

[0065] 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.

[0066] 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.

[0067] 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 refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

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

[0069] A data acquisition module, used to acquire target data and a key, the target data including data encrypted based on at least part of the data in the media-generated prompt words, the media-generated prompt words being used to generate artificial intelligence-generated content;

[0070] The decryption module is used to use a key to decrypt 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.

[0071] 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.

[0072] 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 refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

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

[0074] 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;

[0075] 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.

[0076] 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 refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, which will not be repeated here.

[0077] 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 in the first aspect or any possible implementation of the first aspect.

[0078] 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 refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0079] 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, and when the program instructions are executed by the processor, the electronic device executes the data processing method in the second aspect or any possible implementation of the second aspect.

[0080] 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 refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0081] 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, and when the program instructions are executed by the processor, the electronic device executes the data processing method in the third aspect or any possible implementation of the third aspect.

[0082] 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 refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, which will not be repeated here.

[0083] 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.

[0084] 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 refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0085] 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.

[0086] 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 refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0087] 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.

[0088] 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 refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, which will not be repeated here.

[0089] 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 a processor, the computer or the processor executes the data processing method in the first aspect or any possible implementation of the first aspect.

[0090] 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 refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0091] 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 a processor, the computer or the processor executes the data processing method in the second aspect or any possible implementation of the second aspect.

[0092] 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 refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0093] 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, the computer or the processor executes the data processing method in the third aspect or any possible implementation of the third aspect.

[0094] 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 refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, which will not be repeated here.

[0095] 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.

[0096] 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 refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0097] 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.

[0098] 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 refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0099] 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.

[0100] 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 refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] Figure 1A is a schematic diagram of an application scenario shown as an example;

[0102] Figure 1B is a schematic diagram of an application scenario shown as an example;

[0103] Figure 1C is a schematic diagram of a target data generation process shown as an example;

[0104] Figure 2A is a schematic diagram of a data generation process shown as an example;

[0105] Figure 2B is a schematic diagram of target data shown as an example;

[0106] Figure 2C A schematic diagram showing the visibility of target data shown as an example;

[0107] Figure 2D is a schematic diagram of target data shown as an example;

[0108] Figure 3A is a schematic diagram of a data generation process shown as an example;

[0109] Figure 3B is a schematic diagram of target data shown as an example;

[0110] Figure 4A is a schematic diagram of a data generation process shown as an example;

[0111] Figure 4B The figure is a schematic diagram of a second hash value generation process shown as an example;

[0112] Figure 4C The figure is a schematic diagram of a second hash value generation process shown as an example;

[0113] Figure 4D is a schematic diagram of the structure of an MC shown as an example;

[0114] Figure 4E A schematic diagram showing the visibility and resale of target data;

[0115] Figure 5 is a schematic diagram of a data processing process shown as an example;

[0116] Figure 6 is a schematic diagram of a data processing process shown as an example;

[0117] Figure 7 is a schematic diagram of a data processing process shown as an example;

[0118] Figure 8 is a schematic diagram of a data processing device shown as an example;

[0119] Fig. 9is a schematic diagram of a data processing device shown as an example;

[0120] Fig.10 is a schematic diagram of a data processing device shown as an example;

[0121] Fig.11 Schematic diagram of the structure of the device shown as an example. DETAILED DESCRIPTION

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

[0123] The term "and / or" in this article is merely a description of the association relationship of 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.

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

[0125] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0126] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

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

[0128] 1. Media Generation Model

[0129] The media generation model is an AI model (or a neural network or a neural network model). The media generation model of the present 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 the present application does not limit this.

[0130] The media generation model can be used to generate media (the media involved 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 modules, 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.

[0131] 2. Media generation prompts

[0132] Media generation prompts, which can be called prompts of 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 the input and make corresponding responses such as output media (that is, AIGC).

[0133] Prompts can be composed of multiple words, phrases or short sentences. For example, if the media is an image, the prompts can be: "image quality, aperture, ISO (camera sensitivity), composition, object, posture, scene, weather", specifically, for example, "ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset".

[0134] 3. Media

[0135] Media can also be called media content or digital content. Digital content refers to different types of content such as text, images, and sounds that exist in digital form. It can be stored on digital carriers such as CDs and hard disks, and spread through the Internet and other means. Digital content is the overall product or service that integrates images, text, audio and video through digital technology. It is the product of the combination of digital media technology and cultural creativity.

[0136] Digital technology is a science and technology that is closely associated with electronic computers. It refers to the technology that uses certain equipment to convert various information, including pictures, text, sound, and images, into binary numbers "0" and "1" that can be recognized by electronic computers for calculation, processing, storage, transmission, dissemination, and restoration. Since computers are used to encode, compress, and decode information in the calculation and storage process, it is also called digital technology, computer digital technology, etc. Digital technology is also called digital control technology.

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

[0138] Exemplarily, when the media generated prompt words are image generated prompt words, the image generated prompt words can be input into the image generation model, and the image generation model generates the image. Exemplarily, when the media generated prompt words are audio generated prompt words, the audio generated prompt words can be input into the audio generation model, and the audio generation model generates the audio. Exemplarily, when the media generated prompt words are video generated prompt words, the video generated prompt words can be input into the video generation model, and the video generation model generates the video. Exemplarily, when the media generated prompt words are text generated prompt words, the text generated prompt words can be input into the text generation model, and the text generation model generates the text. Exemplarily, when the media generated prompt words are graphic generated prompt words, the graphic generated prompt words can be input into the graphic generation model, and the graphic generation model generates the graphic.

[0139] For example, assuming that the image generation model is Midjourney, the image generation prompt words can be: "ultra-high definition, F8-F16, ISO 100-ISO 400, horizontal line composition, little girl, running, seaside, sunset", then Midjourney can generate an image of a little girl running on the beach at sunset.

[0140] Figure 1A The figure is a schematic diagram of an exemplary application scenario. Figure 1A What is shown is a data transaction scenario, in which the transaction object is a media generation prompt word.

[0141] Figure 1A (1) is a schematic diagram of the data processing process.

[0142] Figure 1A (2) is a schematic diagram of the client interface of an exemplary data trading platform.

[0143] Reference Figure 1A(2) Exemplarily, 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 Figure 1A (2) "×××", price (such as Figure 1A (2) "¥**" and so on, this application does not impose any restrictions on this.

[0144] It should be noted that the image and description text in the transaction object option can be associated information of the media-generated prompt word, which is convenient for buyers to understand information such as the purpose of the media-generated prompt word; for example, the image is a sample (or sample picture) 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 picture (such as "little girl, running, seaside, sunset" in the above example).

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

[0146] Reference Figure 1A (2) For example, when the seller needs to sell the media generation prompt word, the seller can open the client of the data trading platform in a personal computer (PC) (i.e., PC1) and enter the main interface of the data trading platform; then, the seller can click 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, such as Figure 1A (1) as shown.

[0147] 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 (such as Figure 1A (2) is shown in the grey dotted box. In this way, after the buyer opens the client of the data trading platform in PC2, he can view the transaction object options corresponding to the prompt words generated by the media sold by the seller in the main interface of the data trading platform.

[0148] For example, when the buyer needs to purchase the media generation prompt word, he can click the purchase option in the transaction object option corresponding to the media generation prompt word; at this time, the client of the data trading platform can enter the payment interface in response to the buyer's operation behavior. After the server of the data trading platform confirms that the buyer has successfully paid, the server of the data trading platform can send the media generation prompt word purchased by the buyer to PC2. In this way, the buyer can obtain the purchased media generation prompt word.

[0149] 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.

[0150] Figure 1B The figure is a schematic diagram of an exemplary application scenario. Figure 1B What is shown is a data transaction scenario, in which the transaction object is a media generation prompt word.

[0151] Exemplarily, in order to reduce the risk of the data trading platform stealing the media-generated prompt words uploaded by the seller, the target data can be generated based on the media-generated prompt words, wherein the target data includes data encrypted based on at least part of the data in the media-generated prompt words; and then the target data is uploaded to the data trading platform. After the buyer successfully pays, the server of the data trading platform sends the target data to the buyer; thereafter, the buyer can 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 part of the data in the media-generated prompt words in the target data, and obtain at least part of the data in the media-generated prompt words. In this way, at least part 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 complete media-generated prompt words, and protecting the interests of the seller.

[0152] Figure 1C The figure is a schematic diagram of the target data generation process shown as an example.

[0153] Reference Figure 1C For example, PC1 can send the media generation prompt words of the desired transaction to Magic Chest Generator (MCG), and MCG can generate target data; then, MCG can send the target data to PC1. In this way, the seller can obtain the target data, and can subsequently upload the target data to the data trading platform through PC1 for sale.

[0154] 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.

[0155] It should also be noted that when MCG is an independent server, the server of the MCG and the data trading platform can be the same server or different servers, and this application does not limit 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 other servers except the server of the data trading platform, and this application does not limit this.

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

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

[0158] Figure 2A FIG. 2 is a schematic diagram of an exemplary data generation process, wherein steps S201 to S202 are executed by MCG.

[0159] S201, obtaining media generation prompt words.

[0160] 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.

[0161] Exemplarily, when the seller needs to sell the 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, S202 may be executed.

[0162] For example, the seller can open the MCG client (which can be an application (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.

[0163] S202, generating target data, where the target data includes data encrypted based on at least part of the data in the media-generated prompt word.

[0164] Exemplarily, MCG can first generate a key (the key can be a symmetric key, that is, the encryption party and the decryption 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.

[0165] 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 one 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.

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

[0167] Figure 2B is a schematic diagram showing target data as an example. Figure 2B In the embodiment, the target data may include data (Data) encrypted based on at least part of the data in the media generation prompt word. Figure 2B The Encrypted in the text box means encrypted, indicating that Data is encrypted data.

[0168] In this way, at least part of the data in the media generated prompt words is invisible to the data trading platform (e.g. Figure 2C As shown), the risk of data trading platforms stealing part of the media generated prompt words or the complete media generated prompt words can be reduced, thereby ensuring the interests of sellers.

[0169] In one possible manner, the target data may also include a usage strategy for media-generated prompt words, wherein the usage strategy for media-generated prompt words may refer to rules for using media-generated prompt words, or may be understood as usage restriction conditions for 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.

[0170] Exemplarily, the media generated prompt word usage strategy may include at least one of the following: the number of times the media generated prompt word is used, the area of ​​use of the media generated prompt word, or the number of transactions of the media generated prompt word. For example, when the number of transactions of the media generated prompt word is 1, the buyer can be prevented from reselling the media generated prompt word; when the number of times the media generated prompt word is used is 10, it becomes invalid after the buyer uses the media generated prompt word 10 times; when the area of ​​use of the media generated prompt word is country A, the buyer is prevented from using the media generated prompt word across borders. It should be understood that the media generated prompt word usage strategy may also include other strategies, which are not limited in this application.

[0171] Figure 2D is a schematic diagram showing target data as an example. Figure 2DIn the embodiment, 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.

[0172] It should be noted that in Figure 2D This application does not limit the location of Data and Policy in the target data.

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

[0174] In one possible manner, the target data may also include a verification identifier of a 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 at least based on at least part of the data in the media-generated prompt word.

[0175] Figure 3A The figure is a schematic diagram of the data generation process shown as an example.

[0176] S301, obtaining a media generated prompt word, a verification identifier of the media generated prompt word, and a usage policy of the media generated prompt word.

[0177] 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.

[0178] 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".

[0179] Exemplarily, the verification mark of the media-generated prompt word can be generated by MCG, or generated by the first terminal device and sent to MCG, or generated by other electronic devices and sent to MCG; this application does not impose any restrictions on this. Among them, the verification mark 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 mark of "1" indicates that the media-generated prompt word has passed the verification, and it can be understood that the media-generated prompt word is true; a verification mark of "0" indicates that the media-generated prompt word has not passed the verification, and 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 buyers and the data trading platform to determine the authenticity of the media-generated prompt word based on the verification mark of the media-generated prompt word.

[0180] S302, encrypt the second data in the media generation prompt word to obtain third data.

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

[0182] S303, generating an identity identifier of the target data.

[0183] Exemplarily, MCG can assign an identity identifier (ID) to the target data according to a preset rule, 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 can be associated with the identity identifier of the target data; in this way, after a subsequent buyer successfully purchases the media generation 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 third data to obtain the second data in the media generation prompt word.

[0184] S304: Sign the first data, the third data, the verification identifier of the media generation prompt word, the use policy of the media generation prompt word, and the identity identifier of the target data to obtain a digital signature.

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

[0186] In one possible manner, the first data, the verification identifier of the media generated prompt word, the identity identifier of the target data, or at least one of the usage policy of the media generated prompt word, and the third data can be signed to obtain a digital signature (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 (Signature) for explanation.

[0187] 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 connected and hashed to obtain a hash value (in order to facilitate the distinction from the hash values ​​mentioned later, the hash value is called the first intermediate hash value). Then, based on the first intermediate hash value, the first hash value is determined; then, the first hash value is signed to obtain a digital signature (Signature).

[0188] 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 use policy of the media generated prompt word are connected, and the first data, the third data, the verification identifier of the media generated prompt word, the identity identifier of the target data, and the use policy of the media generated prompt word are hashed to obtain a first intermediate hash value; at this time, 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 use policy of the media generated prompt word are connected 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 use policy of the media generated prompt word are connected to the first intermediate hash value and then hashed to obtain the first hash value.

[0189] S305 , generating target data based on the first data, the third data, the verification identifier of the media generated prompt word, the use policy of the media generated prompt word, the identity identifier of the target data and the data signature.

[0190] Figure 3B is a schematic diagram showing target data as an example. Figure 3B In the example, the target data may include a verification identifier (Verified) of the media generated prompt word, an identity identifier (ID) of the target data, first data (Keyword), third data (Fixture), a usage policy (Policy) of the media generated prompt word, and a digital signature (Sig). Figure 3B Keyword+Fixture in corresponds to Figure 2B Data in.

[0191] It should be understood that the embodiments of the present application do not limit the locations 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.

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

[0193] In one possible manner, the target data may also include at least one of the following: a model identifier of a media generation model, model version information of a media generation model, or a sample of media, where the sample of media is generated by the media generation model according to the media generation prompt. In this way, the server of the data trading platform can obtain the model identifier of the media generation model and the model version information of the media generation model from the target data, and display them on the client of the data trading platform, so that the buyer can know whether the media generation prompt can be applied to the media generation model that he needs to use. And the server of the data trading platform can obtain the sample of media from the target data, and display it on the client of the data trading platform, so that the buyer can know whether the effect of the media generated by using the media generation prompt is what he needs.

[0194] 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. When the target data does not include at least one of the model identifier of the media generation model, the model version information of the media generation model, or the media sample, the seller may also upload at least one of the model identifier of the media generation model, the model version information of the media generation model, or the media sample to the data trading platform when uploading the target data and the price.

[0195] It should be noted that when the media generation model is an image generation model, the media sample can be called a sample image; when the media generation model is a video generation model, the media sample can be called a sample image / sample video; when the media generation model is an audio generation model, the media sample can be called a sample audio; when the media generation model is a text generation model, the media sample can be called a sample text. In the subsequent embodiments, the media generation model is an image generation model and the media sample is a sample image.

[0196] Figure 4A Schematic diagram of the data generation process shown as an example. Figure 4A is Figure 3A shown on the basis of.

[0197] 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.

[0198] 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 limit this.

[0199] 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; then, the server of the media generation model platform may determine 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; then, the media generation prompt word is input into the target media generation model to obtain a sample diagram and return it to the first terminal device. Then, the first terminal device may 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 diagram to the MCG.

[0200] 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 according to 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, a sample graph is obtained and returned 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 the threshold, it can be determined that the media generation prompt words are successfully verified; then a corresponding verification mark 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 the threshold, it can be determined that the media generation prompt words are failed to be verified; then a corresponding verification mark can be generated. Among them, the threshold can be set as required.

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

[0202] 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 the media generation prompt words are input into the target media generation model to obtain a sample image and a verification mark indicating successful verification, and the sample image and the verification mark indicating successful verification are returned 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 image, and the verification mark of the media generation prompt words to MCG.

[0203] In one possible manner, 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 image can be generated by the server of the media generation model platform and sent to the MCG.

[0204] 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; 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 consider 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.

[0205] S402, encrypt the second data in the media generation prompt word to obtain third data.

[0206] S403, generating an identity identifier of the target data.

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

[0208] S404, signing 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.

[0209] 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.

[0210] When the second intermediate hash value is obtained by connecting 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 all the items in the sample diagram and performing a hash calculation, 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.

[0211] When the second intermediate hash value is obtained by connecting and performing a hash calculation on 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 hash calculation can be performed based on 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 to obtain a second hash value.

[0212] Exemplarily, a hash tree can be used to perform hash calculation on the first data, the third data, the verification identifier of the media generation prompt, the identity identifier of the target data, the usage strategy of the media generation prompt, 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 to obtain a second hash value. Among them, a hash tree is a data structure, and a hash tree can include but is not limited to a binary tree, a ternary tree, a Merkle Tree, etc., and this application does not limit this.

[0213] In one possible manner, the second hash value is the value of the root node of the hash tree, and 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 the sample diagram are respectively the values ​​of the leaf nodes of the hash tree.

[0214] Figure 4B FIG. 1 is a schematic diagram of an exemplary second hash value generation process.

[0215] exist Figure 4B In the example, the hash tree is a Merkle Tree, and the second hash value is the value of the root node (Merkle TreeRoot, 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 word, the identity identifier (ID) of the target data, the usage policy (Policy) of the media generation prompt word, the model identifier (TargetModel) of the media generation model, the model version information (Verion) of the media generation model, and the sample picture (Sample Pic) are the values ​​of the leaf nodes of the Merkle Tree respectively.

[0216] Reference Figure 4B For example, the connected Keyword and Fixture can be hashed to obtain HashX1 (that is, the second intermediate hash value), the connected Verified and ID can be hashed to obtain Hash X2 (that is, the second intermediate hash value); the connected Policy and TargetModel can be hashed to obtain Hash X3 (that is, the second intermediate hash value); the connected Verion and Sample Pic can be hashed to obtain Hash X4 (that is, the second intermediate hash value). After that, the connected Hash X1 and Hash X2 are hashed to obtain Hash X5; and the connected Hash X3 and Hash X4 are hashed to obtain Hash X6. Then, the connected HashX5 and HashX6 are hashed to obtain MTR.

[0217] It should be understood that Figure 4B This is just an example of Merkle Tree. The Merkle Tree of this application can be other data structures, and this application does not limit this.

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

[0219] In one possible manner, 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.

[0220] Figure 4C FIG. 1 is a schematic diagram of an exemplary second hash value generation process.

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

[0222] Reference Figure 4C, illustratively, the connected Verified and ID can be hashed to obtain HASH X7 (that is, the second intermediate hash value); and the connected Policy and TargetModel can be hashed to obtain HashX8 (that is, the second intermediate hash value); and the connected Verion and Sample Pic can be hashed to obtain HashX9 (that is, the second intermediate hash value); the first data (Keyword) can be hashed to obtain HashX10 (that is, the second intermediate hash value). Afterwards, the connected Hash X7 and Hash X10 are hashed to obtain HashX11; and the connected Hash X8 and Hash X9 are hashed to obtain HashX12. Subsequently, the connected Hash X11 and Hash X12 are hashed to obtain Hash X13; then, the connected Fixture and Hash X13 are hashed to obtain MTR.

[0223] 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 (SamplePic) 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.

[0224] 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.

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

[0226] In one possible manner, the MC may be a software data package, which may include the first data, the third data, a verification identifier of the media generation prompt word, an identity identifier of the target data, a digital signature, a usage policy of the media generation prompt word, a model identifier of the media generation model, model version information of the media generation model, and a sample diagram. In this way, the cost is low and it is convenient for buyers to obtain the MC in a timely manner, thereby improving the buyer experience.

[0227] In one possible way, MC can be a hardware module, which encapsulates 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 and other data. In this way, although the cost is increased, the security of the media generation prompt word can be improved and the interests of the seller can be protected; it is especially suitable for high-value media generation prompt words (such as media generation prompt words used to generate 3D game screens).

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

[0229] In this way, the second data in the media generation prompt is not only invisible to the data trading platform, but also after the buyer purchases the media generation prompt 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 (such as Figure 4E As shown). TEE can also use media generated prompt words according to the use strategy of media generated prompt words, thereby restricting buyers from using media generated prompt words; for example, when the number of uses in the use strategy of media generated prompt words is 1, buyers cannot use media generated prompt words multiple times; thus, the interests of sellers can be guaranteed.

[0230] It should be noted that the present 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.

[0231] 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.

[0232] 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.

[0233] 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 limit 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 limit this.

[0234] It should be noted that the following Figure 5 Examples of Figure 6 Examples and Figure 7 In the embodiments, the method in which the MCG obtains the sample image and the verification mark of the media generated prompt word is different; the corresponding interaction process is also different.

[0235] Figure 5 The figure is a schematic diagram of the data processing process shown as an example.

[0236] 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.

[0237] 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 word, 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.

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

[0239] 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 word into the target media generation model to obtain a sample graph.

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

[0241] 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.

[0242] 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.

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

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

[0245] For example, the seller can open the client of the data trading platform (i.e. PMALL) in the first terminal device and enter the main interface of the data trading platform; then, he can click 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 MC and selling price and other information in the selling interface and performs the confirmation operation, the client of the data trading platform can respond to the seller's operation behavior, generate a sales request and send it to the server of the data trading platform.

[0246] It should be noted that when MC does not include the usage policy of media generation prompt words, the model identification 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 input the usage policy of media generation prompt words, the model identification 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 media generation prompt words, the model identification of the media generation model, the model version information of the media generation model and the sample image sent by the first terminal device.

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

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

[0249] 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 purchase option in the transaction object option corresponding to the prompt word; 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.

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

[0251] For example, after the server of the data trading platform determines that the buyer has successfully paid, 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 server of PMALL.

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

[0253] For example, the buyer can open the MCG client (which can be an application (APP), 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.

[0254] 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.

[0255] Exemplarily, when MCG determines that the receipt in the second request is signed by the data trading platform (i.e., 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; and then the key corresponding to the identity identifier of MC in the second response information is sent to the second terminal device.

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

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

[0258] 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.

[0259] S516, 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.

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

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

[0262] In one possible way, when the second terminal device has 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 invisible 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, obtain AIGC and return AIGC to the second terminal device.

[0263] In one possible way, when the second terminal device does not have 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.

[0264] It should be understood that in one possible way, the MCG can first determine whether TEE exists in the second terminal device. If TEE does not exist in the second terminal device, the key may not be sent to the second terminal device; if TEE exists in the second terminal device, the key is sent to the second terminal device. In one possible way, the MCG can directly send TEE to the second terminal device without determining whether TEE exists in the second terminal device.

[0265] Figure 6 The figure is a schematic diagram of the data processing process shown as an example.

[0266] 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.

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

[0268] 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.

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

[0270] 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.

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

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

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

[0274] S608, 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.

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

[0276] 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.

[0277] 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.

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

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

[0280] 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.

[0281] 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.

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

[0283] Figure 7 The figure is a schematic diagram of the data processing process shown as an example.

[0284] 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.

[0285] 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.

[0286] S703, the server of the media generation model platform sends a sample image and a verification mark of the media generation prompt word to the first terminal device.

[0287] 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.

[0288] S705, MCG generates MC; MC includes: third data, verification identifier of media generation prompt words, identity identifier of target data, digital signature, usage policy of media generation prompt words, 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.

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

[0290] 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.

[0291] S708, 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.

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

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

[0294] 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.

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

[0296] S713, the second terminal device decrypts the third data based on the key to obtain the second data.

[0297] 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.

[0298] S715, 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.

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

[0300] Figure 8The data processing device can be used to execute the data processing method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0301] Reference Figure 8 , exemplarily, the data processing device may include:

[0302] The prompt word acquisition module 801 is used to acquire media generation prompt words, and the media generation prompt words are used to generate artificial intelligence generated content;

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

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

[0305] Exemplarily, the target data also 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 based on at least part of the data in the media-generated prompt word.

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

[0307] 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 a target data, a model identifier of a media generation model, model version information of a media generation model, or a sample of the media.

[0308] 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.

[0309] 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.

[0310] 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.

[0311] Exemplarily, 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 usage area of ​​the media-generated prompt word, or the number of transactions of the media-generated prompt word.

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

[0313] The encapsulation module is used to encapsulate the data encrypted based on 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 of the target data or the digital signature to obtain a magic box.

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

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

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

[0317] 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.

[0318] Fig. 9 The data processing device can be used to execute the data processing method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0319] Reference Fig. 9 , exemplarily, the data processing device may include:

[0320] A data acquisition module 901 is 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 prompt words generated by the media;

[0321] The decryption module 902 is used to use a key to decrypt 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.

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

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

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

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

[0326] Exemplarily, the target data also includes a usage strategy of the media generation prompt word; and the data processing device also includes:

[0327] A judgment module, used for judging whether the use of the media generated prompt word is allowed according to the use policy of the media generated prompt word;

[0328] The media acquisition module is specifically used to acquire 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 the media generated prompt words is allowed.

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

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

[0331] 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.

[0332] Fig.10 The data processing device can be used to execute the data processing method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0333] Reference Fig.10 , the data processing device may include:

[0334] 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;

[0335] The receiving module 1002 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 media generation prompt word.

[0336] Exemplarily, the sending module 1001 is also used to provide target data to the data trading platform.

[0337] In one example, Fig.11 A schematic block diagram of a device 1100 according to an embodiment of the present application is shown. The device 1100 may include: a processor 1101 and a transceiver / transceiver pin 1102 , and optionally, a memory 1103 .

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

[0339] 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 sending pin to send a signal.

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

[0341] Among them, the electronic equipment may include terminal equipment and servers.

[0342] 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.

[0343] The embodiment of 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 through the one or more interface circuits, and when the one or more processors execute computer instructions, the above-mentioned related method steps implement the steps of the method in the above-mentioned embodiment. The interface circuit is a transceiver / transceiver pin 1102.

[0344] 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.

[0345] 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.

[0346] In addition, an embodiment of the present application also provides a device, which may 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 may execute the computer-executable instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.

[0347] 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.

[0348] 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 assigned to 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.

[0349] In the several embodiments provided in the present 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 only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, 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.

[0350] The units described as separate components may or may not be physically separated, and the 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 different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0351] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0352] Any content of each embodiment of the present 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 the present application.

[0353] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0354] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0355] 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 (ReadOnly 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 disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a 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.

[0356] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with 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 the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0357] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present 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: The digital signature is obtained by processing data obtained by encrypting at least part of the data in the prompt word generated based on the media.

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 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.