Last I knew, the bare minimum to apply for a patent was about $1000. But that was if you did all the work yourself. Lawyers and patent draftsmen (Patent drawings are a of certain style) run the price up. There may be different fees for certain technologies to help limit patent trolls. But I may wrong on this.