ai

AI

0.05 credits per request

Call

POST /v1/ai/Call

Make a request to the AI

Request

textstring

text to pass in

Response

textstring

text returned

Request

Response

{
    "text": "\n\nLeonardo da Vinci was an Italian Renaissance architect, musician, inventor, engineer, and painter."
}

0.05 credits per request

Check

POST /v1/ai/Check

Check or edit text/code

Request

instructionstring

instruction hint e.g check the grammar

textstring

text/code to check

Response

textstring

response output

Request

Response

{
    "text": "What is the day of the week?\n"
}

0.05 credits per request

Moderate

POST /v1/ai/Moderate

Moderate hate speech

Request

textstring

text to check

Response

categoriesobject

categories tested and identified

flaggedboolean

whether it was flagged or not

scoresobject

related scores

Request

Response

{
    "flagged": true,
    "categories": {
        "hate": false,
        "hate/threatening": false,
        "self-harm": false,
        "sexual": false,
        "sexual/minors": false,
        "violence": true,
        "violence/graphic": false
    },
    "scores": {
        "hate": 0.013155348598957062,
        "hate/threatening": 0.0037288155872374773,
        "self-harm": 0.0002420183882350102,
        "sexual": 0.0005528798210434616,
        "sexual/minors": 0.00009280459198635072,
        "violence": 0.9706985354423523,
        "violence/graphic": 0.0022974952589720488
    }
}