You asked
Is the pentax k 1 mark ii still a good used buy for landscape and portrait work?
The Pentax K-1 Mark II suits both landscape and portrait work. It has a 36.4-megapixel full-frame sensor, which gives landscapes plenty of detail to crop and print, and the camera's page confirms in-body stabilisation. The guide's landscape page notes that landscape shooting is slow and often done on a tripod, so the sensor and lens matter more than stabilisation there.
For landscapes, the guide would start with a wide lens. The Pentax HD D FA 15-30mm f/2.8 covers the range most landscape work needs, and the Laowa 12mm f/2.8 Zero-D goes wider if you want more sky and foreground.
For portraits, the guide's portrait lens list favours longer focal lengths, because standing further away flatters faces. The Pentax HD D FA* 85mm f/1.4 ED SDM AW is the classic choice for this, and the Pentax HD FA 77mm f/1.8 Limited is a slightly smaller-aperture alternative. For a cheaper start, the Pentax smc FA 50mm f/1.4 is a natural, slightly tight full-frame view, as the guide's first lenses suggests.
I can't tell from the site whether it's a good used buy today. The guide's pages don't give used prices or condition advice for this camera, and I can't estimate what it costs now. Check current listings and compare them with the older Pentax K-1, which is the same full-frame sensor from 2016.
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}.