allow to set api_key via attribute in api#initialize