add the way to set api key.