Currently, API /api/inventory/v1/hosts?filter[system_profile][cloud_provider]=test returns list of all the hosts. It might be because filter does not support cloud_provider field.
Please add the support for querying the hosts based on cloud_provider, it is required to get the list of hosts which resides on any of the cloud providers.
Plus would be adding the new boolean TAG say "cloud_provider" in inventory.