Embodiments of the present disclosure provide an
interactive media data generation method and apparatus, an electronic device, and a storage medium. The
interactive media data generation method comprises: in response to a first operation, loading a reference
label in a multi-
modal input box, wherein the first operation is at least used for selecting one media file, and the reference
label is used for representing a reference mode for the media file in the process of generating target media data with reference to the media file; generating a prompt text on the basis of the reference
label and at least one basic prompt in the multi-
modal input box; and generating the target media data on the basis of the prompt text. By means of an interactive operation, a media file is mapped into a multi-
modal input box to form a reference label, and a prompt text is generated on the basis of the reference label corresponding to the media file and a basic prompt in the multi-modal input box, so as to generate target media data, thereby replacing a description text with the media file to generate a prompt text so that the generated prompt text can accurately describe user requirements, avoiding the problems of unstable
image quality and large
image content deviations caused by a prompt input by a user being inaccurate and being unable to accurately describe user requirements, and improving the
image quality and the accuracy of image contents.