Endpoints

Read request records

Look up a request’s charge or page through this key’s usage.

GET/v1/usage/requests

Send your API key in the Authorization: Bearer YOUR_BEEFAPI_KEY header. Get an API key →

Request example

Use your key. Replace sample task IDs and image URLs.

curl -X GET "https://global.beefapi.com/v1/usage/requests" \  -H "Authorization: Bearer YOUR_BEEFAPI_KEY"

Response examples

Illustrative values. Select a status code.

A page of usage records.

{  "currency": "USD",  "data": [    {      "usage_estimated": true,      "id": "string",      "request_id": "string",      "created_at": 0,      "model": "string",      "result": "completed",      "billing_status": "settled",      "amount": "string",      "reserved_amount": "string",      "refunded_amount": "string",      "input_tokens": 0,      "output_tokens": 0,      "cache_read_tokens": 0,      "cache_write_tokens": 0,      "pricebook_id": "string",      "pricing_version": "string"    }  ],  "next_cursor": "string",  "has_more": true,  "start_time": 0,  "end_time": 0}

Query Parameters

ParameterDescription
start_timeintegerOptional

Inclusive Unix timestamp. Defaults to 30 days before end_time.

Minimum: 1

Format: int64

ParameterDescription
end_timeintegerOptional

Exclusive Unix timestamp. Defaults to now. Maximum window: 31 days.

Minimum: 1

Format: int64

ParameterDescription
modelstringOptional

Exact model ID.

Max. characters: 191

ParameterDescription
request_idstringOptional

Match a recorded request or its linked funding receipt.

Max. characters: 64

ParameterDescription
limitintegerOptional

Default: 50

Minimum: 1

Maximum: 100

ParameterDescription
beforestringOptional

next_cursor from the previous page. Keep the same time window and filters.

Response fields & status codes

Response fields

application/json

application/json

application/json

application/json

application/json