As a new product resulting from the deep integration of the financial industry and artificial intelligence (AI) technology, financial technology (fintech) has a significant impact on the progress of green total factor productivity (GTFP). Based on city-level data from 2011 to 2021 in China, this paper used the super-efficiency SBM model with embedded non-expected output and the GML index method to measure the GTFP levels of 283 prefecture-level and above cities and to empirically test the impact of fintech on GTFP and its underlying mechanisms. The empirical results showed that the development of fintech had significantly promoted the improvement of GTFP, and the effect was dynamically stable. Specifically, fintech had a stronger and more significant incentive effect on GTFP in its more mature stage of development. By decomposing fintech into two dimensions, it was found that the depth of fintech development had a stronger impact on GTFP with dynamic superimposed characteristics. Mechanism analysis showed that fintech development can drive the progress of GTFP by improving resource allocation efficiency, optimizing human capital, and incentivizing technological innovation channels. Moderating effect analysis revealed that financial regulation and environmental regulation have a positive moderating effect on the baseline relationship between fintech and GTFP. Further research found that the moderating effects of financial regulation and environmental regulation exhibit significant nonlinear threshold characteristics, and the driving effect of fintech on GTFP can only reach its maximum when both are within the optimal range. This study provides valuable insights for the development and optimization of fintech, the green transformation of the real economy, and high-quality development.