You asked
Is the viltrox af 50mm f 1 8 good for portraits?
Yes, for most portraits the Viltrox AF 50mm f/1.8 is a good choice. The portraits guide calls a 50mm f/1.8 a natural, slightly tight view on full frame, and it suggests this focal length if you buy one lens for people. The lens fits Sony E mounts only, so it pairs with Sony bodies.
On full frame, the lens gives the natural perspective the guide describes. Good full-frame pairings include the Sony a7 III, a full-frame body that suits this lens. The Sony a7 IV is the newer full-frame option. If you want a smaller, lighter setup, the Sony a6400 is APS-C. On that sensor the lens frames like 75mm, which the guide notes is a classic portrait length, and f/1.8 gives about the depth of field of f/2.7.
The lens gives up some things. It isn't stabilised, so you'll rely on a fast shutter speed for sharp handheld shots. Stabilisation steadies the camera, not a moving subject, so for portraits a fast enough shutter and good light help more. The f/1.8 aperture gives soft backgrounds, but the aperture guide warns that at f/1.4 and wider, depth can be thinner than a face. For two people at different distances, stop down to about f/2.8. Moving your subject away from the background also helps more than a faster lens.
Prices for this lens aren't covered in this answer, so check the lens page for current figures.
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}.