The OpenAI API operates on a token system which has a variety of pricing options. These range from $0.0004/1K tokens using Ada, to $0.0200/1K tokens using Davinci. There is a full break-down of the pricing options available for OpenAI API on the OpenAI pricing page.