Gall-inducing insects often contain high concentrations of phytohormones, such as auxin and cytokinin, which are suggested to be involved in gall induction, but no conclusive evidence has yet been obtained. There are two possible approaches to investigating the importance of phytohormones in gall induction: demonstrating either that high phytohormone productivity can induce gall-inducing ability in non-gall-inducing insects or that the gall-inducing ability is inhibited when phytohormone productivity in galling insects is suppressed. In this study, we show that the overexpression of PonAAS2, which encodes an aromatic aldehyde synthase (AAS) responsible for the rate-limiting step in indoleacetic acid (IAA) biosynthesis in a galling sawfly (Pontania sp.) that contains high levels of endogenous IAA, conferred high IAA productivity on Caenorhabditis elegans, as the model system. This result strongly suggests that PonAAS2 can also confer high IAA productivity on low-IAA-producing insects. We also successfully identified an inhibitor of PonAAS2 in a chemical library. This highly selective inhibitor showed stronger inhibitory activity against AAS than against aromatic amino acid decarboxylase, which belongs to the same superfamily as AAS. We also confirm that this inhibitor clearly inhibited IAA productivity in the high-IAA-producing C. elegans engineered here.