Monitor and analyze user-level LLM costs across 1600+ models using Portkey’s metadata and analytics API.
key:value
pair. Each metadata value should be a string (max length: 128 characters). Here’s how to implement it:
>Meta
_user = customer_12345
_user
+ env
) and adjust the time range for historical cost tracking.
x-portkey-api-key
header.{metadataKey}
with the metadata key you want to track costs for.page_size
parameter to control the number of results per responsemetadata
field