hey @giblix, yes you can filter using metadata and export the logs using the analytics API (it's in BETA, you can ping @Vrushank | Portkey or @Manjot | Portkey for access), you'd have to sum up the costs yourself though I'm afraid.
https://portkey.ai/docs/api-reference/admin-api/control-plane/analytics/groups-paginated-data/get-metadata-grouped-dataIf you're on the enterprise version, there's also a prometheus dashboard exposed at
metrics
where you can execute your own queries on the analytics data