Abstract: A method for generating electric power from natural gas or the like that has a low Btu value and a high nitrogen content. The method involves a membrane separation step to remove a portion of the nitrogen from the gas. The upgraded gas is used as fuel for a turbine or other driver, which provides mechanical power to drive an electric power generator.