Skip to main content
POST
/
v1
/
request-costs
Get Request Costs
curl --request POST \
  --url https://api.example.com/v1/request-costs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requestIds": [
    "<string>"
  ]
}
'
{
  "requests": [
    {
      "requestId": "<string>",
      "costNanoUsd": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

xi-api-key
string | null

Body

application/json
requestIds
string[]
required

Response

Successful Response

requests
RequestCostItem · object[]
required