You can't have a text box to choose membership amount but there are two ways as a workaround
Create a price set with required pricefields
a) Select or Radio button with Membership as 0 fees
b) Add text price field with $1 amount.
Make membership type fee as 0 and include contribution amount section on contribution page