curl --request POST \
--url https://api.avidoai.com/v0/inference-steps \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"title": "Moderator",
"description": "Moderator step for input moderation",
"type": "LLM",
"externalId": "input_moderator"
}
'{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"type": "LLM",
"externalId": "input_moderator",
"title": "Moderator",
"description": "Moderator step for input moderation"
}
}curl --request POST \
--url https://api.avidoai.com/v0/inference-steps \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"title": "Moderator",
"description": "Moderator step for input moderation",
"type": "LLM",
"externalId": "input_moderator"
}
'{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"type": "LLM",
"externalId": "input_moderator",
"title": "Moderator",
"description": "Moderator step for input moderation"
}
}Your unique Avido API key
Your unique Avido Application ID
Request body for creating a new inference step
The title of the inference step
1 - 255"Moderator"
The inference step description
"Moderator step for input moderation"
The type of the inference step
LLM, RETRIEVER "LLM"
identifier used in the ai application
1 - 255"input_moderator"
Created
Response containing a single inference step
Show child attributes