AI Gateway Usage
get/ai/usage/conversations/{conversation_id}

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/usage/conversations/{conversation_id}
  • Auth: HTTP bearer

Path parameters

conversation_idstring required

Conversation ID

Query parameters

limitinteger

Max results (defaults to 100)

Response

Invocations within a conversation

conversation_idstring nullable
estimated_cost_microcentsinteger required
idinteger required
input_tokensinteger required
is_byokboolean required
is_streamingboolean required
latency_msinteger required
modelstring required
output_tokensinteger required
providerstring required
request_idstring nullable
statusinteger required
tagsstring[] required
timestampstring required
trace_idstring nullable

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status