Budget & Spend Tracking

Ui View Spend Logs

View spend logs with pagination support. Available at both /spend/logs/v2 (public API) and /spend/logs/ui (internal UI).

Returns paginated response with data, total, page, page_size, and total_pages.

Example:

curl -X GET "http://0.0.0.0:8000/spend/logs/v2?start_date=2025-11-25%2000:00:00&end_date=2025-11-26%2023:59:59&page=1&page_size=50" -H "Authorization: Bearer sk-1234"
get/spend/logs/v2

Request

  • Base URL: https://api.vibebrowser.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.vibebrowser.app/spend/logs/v2
  • Auth: one of:
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key

Query parameters

api_keystring nullable

Get spend logs based on api key

user_idstring nullable

Get spend logs based on user_id

request_idstring nullable

request_id to get spend logs for specific request_id

team_idstring nullable

Filter spend logs by team_id

min_spendnumber nullable

Filter logs with spend greater than or equal to this value

max_spendnumber nullable

Filter logs with spend less than or equal to this value

start_datestring nullable

Time from which to start viewing key spend

end_datestring nullable

Time till which to view key spend

pageinteger

Page number for pagination

page_sizeinteger

Number of items per page

status_filterstring nullable

Filter logs by status (e.g., success, failure)

modelstring nullable

Filter logs by model

model_idstring nullable

Filter logs by model ID (litellm model deployment id)

key_aliasstring nullable

Filter logs by key alias

end_userstring nullable

Filter logs by end user

error_codestring nullable

Filter logs by error code (e.g., '404', '500')

error_messagestring nullable

Filter logs by error message (partial string match)

sort_bystring

Sort logs by field: spend, total_tokens, startTime, or endTime

sort_orderstring nullable

Sort order: asc or desc

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.