POST
/
log-request

Log a request to the system. This is useful for logging requests from custom LLM providers.

Headers

X-API-KEY
string
required

API key to authorize the operation.

Body

application/json
input
object
required
model
string
required
output
object
required
provider
string
required
request_end_time
string
required
request_start_time
string
required
function_name
string
default:
input_tokens
integer
default:
0
Required range: x > 0
metadata
object
output_tokens
integer
default:
0
Required range: x > 0
parameters
object
price
number
default:
0
Required range: x > 0
prompt_input_variables
object
prompt_name
string | null
prompt_version_number
integer | null
Required range: x > 0
score
integer
default:
0
Required range: 0 < x < 100
tags
string[]

Response

201 - application/json
id
integer
required
prompt_version
object
required