POST
/
api
/
internal
/
inference
/
billing-webhook
Billing Webhook
curl --request POST \
  --url https://api.primeintellect.ai/api/internal/inference/billing-webhook \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "events": [
    {
      "user_id": "<string>",
      "wallet_id": "<string>",
      "request_id": "<string>",
      "amount_usd": 1,
      "info": {
        "model": "<string>",
        "loraId": "<string>",
        "provider": "<string>",
        "tokensIn": 123,
        "tokensOut": 123,
        "traceId": "<string>"
      }
    }
  ]
}'
{}

Headers

authorization
string
required

Body

application/json
events
InferenceBillingEvent · object[]
required

Response

Billing events accepted for processing

The response is of type object.