POST
/
v1
/
chat
/
{app_id}
curl --location 'https://api.llmrails.com/v1/chat/{app_id}' \
--header 'X-API-KEY: {token}' \
--header 'Content-Type: application/json' \
--data '{   
    "stream":false,
    "text":"What is LLM Rails?"
}
'
{
    "text": "Test Content",
    "id": "3733bd45-ca5c-42a3-b69d-a472bf272ca1",
    "session_id": "6d94aa27-d23a-42d2-a1d0-ec004d9568fc",
    "docs": [
        {
            "type": "text",
            "url": "",
            "name": "",
            "score": 0.008196721
        },
        {
            "type": "file",
            "url": "{file_url}",
            "name": "Test File",
            "score": 0.008196721
        },
        {
            "type": "website",
            "url": "https://llmrails.com/",
            "name": "https://llmrails.com/",
            "score": 0.008064516
        }
    ]
}
curl --location 'https://api.llmrails.com/v1/chat/{app_id}' \
--header 'X-API-KEY: {token}' \
--header 'Content-Type: application/json' \
--data '{   
    "stream":false,
    "text":"What is LLM Rails?"
}
'
{
    "text": "Test Content",
    "id": "3733bd45-ca5c-42a3-b69d-a472bf272ca1",
    "session_id": "6d94aa27-d23a-42d2-a1d0-ec004d9568fc",
    "docs": [
        {
            "type": "text",
            "url": "",
            "name": "",
            "score": 0.008196721
        },
        {
            "type": "file",
            "url": "{file_url}",
            "name": "Test File",
            "score": 0.008196721
        },
        {
            "type": "website",
            "url": "https://llmrails.com/",
            "name": "https://llmrails.com/",
            "score": 0.008064516
        }
    ]
}

Path Parameters

app_id
string
required

Body

application/json
stream
boolean
required
text
string
required

Text input

prompt
string

Prompt for Conversation AI

session_id
string
default:
user_id
string
default:

Response

200 - application/json

The response is of type any.