POST
/
v1
/
metrics
/
modelIO
curl --request POST \
  --url https://api.lytix.co/v1/metrics/modelIO \
  --header 'Content-Type: application/json' \
  --header 'lx-api-key: <api-key>' \
  --data '{
  "modelName": "<string>",
  "modelInput": "<string>",
  "modelOutput": "<string>",
  "metricMetadata": {},
  "userIdentifier": "<string>",
  "sessionId": "<string>",
  "workflowName": "<string>",
  "inputTokens": 123,
  "outputTokens": 123,
  "latency": 123
}'
This response has no body data.

Authorizations

lx-api-key
string
header
required

Body

application/json
Model IO event to log
modelName
string
required

Name of the identifier to use on the Lytix platform

modelInput
string
required

Input to the model

modelOutput
string
required

Output of the model

metricMetadata
object

Metadata to associate with the metric

userIdentifier
string

User identifier to associate with the IO event

sessionId
string

Session Id to associate with the IO event

workflowName
string

Workflow name to associate with the IO event

inputTokens
number

Input tokens to associate with the IO event

outputTokens
number

Output tokens to associate with the IO event

latency
number

Latency in milliseconds to associate with the IO event