Heat your oven to 400°F (200°C).
Cut the pumpkin in half and scoop out the seeds. Slice into thick wedges.
Place pumpkin, onion, and garlic on a baking tray.
Drizzle with olive oil. Sprinkle with salt and black pepper.
Roast for 35–40 minutes, flipping once, until soft and lightly browned.
Let cool slightly. Peel off the pumpkin skin.
Add pumpkin, onion, and squeezed garlic to a blender.
Add smoked paprika, cumin, and 2 cups warm stock.
Blend until smooth. Add more stock if needed.
Taste and adjust salt. Add cream or coconut milk if using.
Serve warm as a bowl or thin it further for soup.