I created a landscape material and i want to add grass to that material using grass output it's worked but grass spawned under the landscape

If all your grass in under the landscape, it means that the pivot point of your grass mesh it too high. If only some of it is under it probably means the mesh is large enough not to be able to cope with inclines correctly. If that’s the case, under the details in the foliage tool, you need to check the ‘align to normal’ box.