Provide backwards compatibility for api_key option