AI

Log External Usage

Log AI token usage from external services (chat-api, agent-service).

This endpoint is for internal service-to-service use.

post/api/ai/usage

Request

  • Base URL: https://api.ruzora.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.ruzora.com/api/ai/usage
  • Auth: none declared

Request body

servicestring required
operationstring required
modelstring required
input_tokensinteger required
output_tokensinteger required
cache_creation_input_tokensinteger
cache_read_input_tokensinteger
session_idstring nullable
metadata_jsonstring nullable

Response

Successful Response

unknown required

Changes

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