Properly set the api_key option.