You asked

Canon rf 45mm f 1 2 stm vs canon rf 50mm f 1 2l usm?

The two lenses share a lot. Both are f/1.2 primes for full frame, both use the Canon RF mount, neither is stabilised, both autofocus, and both fit the same Canon cameras, from the EOS R and RP up to the R5 Mark II and R1. The choice comes down to focal length and build.

The Canon RF 45mm f/1.2 STM is the wider of the two. On full frame it gives a 45mm view, which is roomier for groups and street scenes, and it weighs about 350 g, which matters if you carry the camera all day. It is Canon's first f/1.2 lens outside the L series, so it is the more accessible of the pair.

The Canon RF 50mm f/1.2L USM gives a 50mm view, the classic standard framing, and it belongs to Canon's L series. The guide's portraits page explains why a 50mm is the lens most people reach for, since it looks natural on full frame.

At f/1.2 both lenses give the same shallow depth of field, which helps in dim light and separates a subject from a busy background. Neither steadies the subject, so for moving subjects the wide aperture matters more than stabilisation.

On an APS-C body such as the EOS R7 or R10, the 45mm frames like 72mm and the 50mm like 80mm. Both become tight portrait lenses there, and the 50mm is tighter.

For a bright standard lens for portraits and low light, the guide's pick is the 50mm f/1.2L if the L build and tighter view suit you. Choose the 45mm if you want a wider view and a lighter lens. This page does not include current prices, so check the catalogue pages for those.

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}.