In Cycle render engine you have an option to disable direct visibility of the objects to the camera.
Open Object Data tab and in Ray Visiility section disable this option on all the objects that you want to be invisible in render.
You can do the same with the background in World tab.