Chromoendoscopy with the use of indigo carmine (IC) dye is a crucial endoscopic technique to identify gastrointestinal neoplasms. However, its performance is limited by the endoscopist's skill, and no standards are available for lesion identification. Thus, we developed an artificial intelligence (AI) model to replace chromoendoscopy. This pilot study assessed the feasibility of our novel AI model in the conversion of white-light images (WLI) into virtual IC-dyed images based on a generative adversarial network. The predictions of our AI model were evaluated against the assessments of five endoscopic experts who were blinded to the purpose of this study with a staining quality rating from 1 (unacceptable) to 4 (excellent). The AI model successfully transformed the WLI of polyps with different morphologies and different types of lesions in the gastrointestinal tract into virtual IC-dyed images. The quality ratings of the real IC-dyed and AI images did not significantly differ concerning surface structure (AI vs IC: 3.08 vs 3.00), lesion border (3.04 vs 2.98), and overall contrast (3.14 vs 3.02) from 10 sets of images (10 AI images and 10 real IC-dyed images). Although the score depended significantly on the evaluator, the staining methods (AI or real IC) and evaluators had no significant interaction (P>0.05) with each other. Our results demonstrated the feasibility of employing AI model's virtual IC staining, increasing the possibility of being employed in daily practice. This novel technology may facilitate gastrointestinal lesion identification in the future.