Metering Events
Ingest metering events
Ingests an event or batch of events following the CloudEvents specification.
post/openmeter/events
Request body
Example request
{
"specversion": "1.0",
"id": "5c10fade-1c9e-4d6c-8275-c52c36731d3c",
"source": "service-name",
"type": "prompt",
"subject": "customer-id",
"time": "2023-01-01T01:01:01.001Z",
"data": {
"prompt": "Hello, world!",
"tokens": 100,
"model": "gpt-4o",
"type": "input"
}
}Response
The events have been ingested and are being processed asynchronously.