You asked

Sony fe 40mm f 2 5 g vs viltrox af 40mm f 2 5 air?

The two lenses are closely matched. Both are 40mm f/2.5 primes for full-frame cameras, both have autofocus, and neither is stabilised. On full frame each frames as 40mm, and on APS-C both act like 60mm with about the depth of field of f/3.8. The choice comes down to your camera mount and what you want from the lens.

The Sony FE 40mm f/2.5 G is made for Sony E mount only. Its page calls it tiny and sharp, which makes it a natural everyday lens for compact Sony bodies such as the Sony a7 III. If you already shoot Sony, it is the simpler, more obvious choice.

The Viltrox AF 40mm f/2.5 Air fits Sony E, Nikon Z and L-Mount. That matters if you shop across systems or might switch later. It also covers Nikon bodies such as the Nikon Z6 II, which the Sony cannot. The site's material does not describe its sharpness or handling, so the guide can't say how the two compare in image quality.

Neither lens is stabilised, and f/2.5 is not especially wide. The Lenses guide explains that a wider aperture gives faster shutter speeds in dim light, so for dim interiors or moving subjects, a faster lens or a larger sensor will help more than stabilisation would. This material does not include prices, so check the current price on each lens page before deciding.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.